/* ============================================================
   AXORE — Feuille de style principale
   ============================================================ */

:root {
  --axora-navy: #0D1B2A;
  --axora-navy-light: #1B2A3E;
  --axora-navy-lighter: #2A3B52;
  --axora-orange: #F59E0B;
  --axora-orange-dark: #D97706;
  --axora-orange-light: #FBBF24;
  --axora-gray-dark: #475569;
  --axora-gray: #94A3B8;
  --axora-gray-light: #D1D5DB;
  --axora-gray-bg: #F1F5F9;
  --axora-bg: #F8FAFC;
  --axora-white: #FFFFFF;
  --axora-success: #10B981;
  --axora-warning: #F59E0B;
  --axora-danger: #EF4444;
  --axora-info: #3B82F6;
}

/* ---------- BASE ---------- */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--axora-bg);
  color: var(--axora-navy);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* ---------- SCROLLBARS ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--axora-gray-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--axora-gray);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  background: linear-gradient(180deg, var(--axora-navy) 0%, #0a1623 100%);
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Container nav scrollable */
#sidebarNav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 16px;
}
/* Scrollbar discrète dans la sidebar sombre */
#sidebarNav::-webkit-scrollbar { width: 6px; }
#sidebarNav::-webkit-scrollbar-track { background: transparent; }
#sidebarNav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
#sidebarNav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

.sidebar-collapsed { transform: translateX(-100%); }

.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--axora-white);
  letter-spacing: 0.18em;
}

.sidebar-logo-accent {
  color: var(--axora-orange);
}

.sidebar-tagline {
  font-size: 10px;
  color: var(--axora-gray);
  letter-spacing: 0.25em;
  margin-top: 4px;
  text-transform: uppercase;
}

.sidebar-section-title {
  padding: 18px 24px 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--axora-gray);
  text-transform: uppercase;
  font-weight: 600;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: #CBD5E1;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
  background: rgba(245, 158, 11, 0.06);
  color: var(--axora-white);
}

.sidebar-nav-item.active {
  background: rgba(245, 158, 11, 0.10);
  color: var(--axora-white);
  border-left-color: var(--axora-orange);
}

.sidebar-nav-item.active svg {
  color: var(--axora-orange);
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.sidebar-user {
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--axora-orange) 0%, var(--axora-orange-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* ---------- HEADER ---------- */
.top-header {
  background: var(--axora-white);
  border-bottom: 1px solid #E2E8F0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--axora-gray-dark);
  font-size: 13px;
}

.breadcrumb-active {
  color: var(--axora-navy);
  font-weight: 600;
}

/* ---------- PAGE CONTENT ---------- */
.page-content {
  padding: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--axora-navy);
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--axora-gray-dark);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- KPI CARDS ---------- */
.kpi-card {
  background: var(--axora-white);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #E2E8F0;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--axora-orange) 0%, var(--axora-orange-light) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(13, 27, 42, 0.12);
  border-color: #CBD5E1;
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--axora-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-top: 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.kpi-value-small {
  font-size: 22px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.10);
  color: var(--axora-orange);
}

.kpi-icon.navy { background: rgba(13, 27, 42, 0.08); color: var(--axora-navy); }
.kpi-icon.success { background: rgba(16, 185, 129, 0.10); color: var(--axora-success); }
.kpi-icon.danger { background: rgba(239, 68, 68, 0.10); color: var(--axora-danger); }
.kpi-icon.warning { background: rgba(245, 158, 11, 0.10); color: var(--axora-orange); }

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 20px;
}

.kpi-trend.positive { color: var(--axora-success); background: rgba(16, 185, 129, 0.10); }
.kpi-trend.negative { color: var(--axora-danger); background: rgba(239, 68, 68, 0.10); }
.kpi-trend.neutral { color: var(--axora-gray-dark); background: var(--axora-gray-bg); }

/* ---------- CHART CARDS ---------- */
.chart-card {
  background: var(--axora-white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #E2E8F0;
}

.chart-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 4px;
}

.chart-card-subtitle {
  font-size: 12px;
  color: var(--axora-gray-dark);
  margin-bottom: 20px;
}

.chart-container {
  position: relative;
  height: 280px;
}

.chart-container-sm { height: 200px; }
.chart-container-lg { height: 340px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--axora-orange);
  color: var(--axora-white);
}
.btn-primary:hover {
  background: var(--axora-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: var(--axora-navy);
  color: var(--axora-white);
}
.btn-secondary:hover {
  background: var(--axora-navy-light);
}

.btn-outline {
  background: var(--axora-white);
  color: var(--axora-navy);
  border: 1px solid #E2E8F0;
}
.btn-outline:hover {
  border-color: var(--axora-navy);
  background: var(--axora-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--axora-gray-dark);
}
.btn-ghost:hover {
  background: var(--axora-gray-bg);
  color: var(--axora-navy);
}

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

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}

/* ---------- TABLES ---------- */
.data-table {
  width: 100%;
  background: var(--axora-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}

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

.data-table thead {
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--axora-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* V20 Vague 20 — Tables MoM (actions) et Réception : forcer le wrap dans les cellules longues
   (responsable, document, description) pour que le tableau fitte la largeur d'écran sans scroll horizontal */
.actions-table td,
.data-table.actions-table td {
  vertical-align: top;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.actions-table th {
  white-space: normal;
}
.actions-table select.action-inline-select,
.actions-table input.action-inline-input {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
}
/* Réception : pareil */
table.data-table td input[list],
table.data-table td select.form-input-sm,
table.data-table td select.form-select {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--axora-navy);
  border-bottom: 1px solid #F1F5F9;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #F8FAFC;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #B45309; }
.badge-danger  { background: rgba(239, 68, 68, 0.12);  color: #B91C1C; }
.badge-info    { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.badge-neutral { background: var(--axora-gray-bg); color: var(--axora-gray-dark); }
.badge-navy    { background: rgba(13, 27, 42, 0.08); color: var(--axora-navy); }

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--axora-navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--axora-white);
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  color: var(--axora-navy);
  font-family: inherit;
  transition: all 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--axora-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.form-input::placeholder {
  color: #94A3B8;
}

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

/* ---------- CARD ---------- */
.card {
  background: var(--axora-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--axora-navy);
}

/* ---------- DOCUMENT TREE ---------- */
.doc-category {
  background: var(--axora-white);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.doc-category-header {
  padding: 14px 18px;
  background: linear-gradient(90deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.doc-category-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  letter-spacing: 0.02em;
}

.doc-subcategory {
  padding: 10px 18px 10px 36px;
  border-bottom: 1px solid #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--axora-gray-dark);
  cursor: pointer;
  transition: background 0.15s ease;
}

.doc-subcategory:hover {
  background: #F8FAFC;
  color: var(--axora-navy);
}

.doc-subcategory:last-child { border-bottom: none; }

.doc-count {
  font-size: 11px;
  color: var(--axora-gray);
  background: var(--axora-gray-bg);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ---------- DROPZONE ---------- */
.dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  background: #FAFBFC;
  transition: all 0.2s ease;
  cursor: pointer;
}

.dropzone:hover, .dropzone.active {
  border-color: var(--axora-orange);
  background: rgba(245, 158, 11, 0.04);
}

/* ---------- PROPERTY CARDS ---------- */
.property-card {
  background: var(--axora-white);
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(13, 27, 42, 0.15);
  border-color: #CBD5E1;
}

.property-card-image {
  height: 130px;
  background: linear-gradient(135deg, var(--axora-navy) 0%, var(--axora-navy-light) 50%, var(--axora-navy-lighter) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0.1em;
  overflow: hidden;
}

.property-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 60%);
}

.property-card-ref {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--axora-orange);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 1;
}

.property-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
}

.property-card-body {
  padding: 18px;
}

.property-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.property-stat {
  text-align: center;
}

.property-stat-label {
  font-size: 9px;
  color: var(--axora-gray-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.property-stat-value {
  font-size: 14px;
  color: var(--axora-navy);
  font-weight: 700;
  margin-top: 2px;
}

/* ---------- MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.55);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--axora-white);
  border-radius: 14px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

.modal-header {
  padding: 20px 26px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--axora-navy);
}

.modal-body { padding: 24px 26px; }
.modal-footer {
  padding: 16px 26px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50%   { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}

.fade-in { animation: fadeIn 0.3s ease; }
.live-dot {
  width: 8px; height: 8px;
  background: var(--axora-success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-gray-dark);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s ease;
}

.tab:hover { color: var(--axora-navy); }
.tab.active {
  color: var(--axora-orange);
  border-bottom-color: var(--axora-orange);
}

/* ---------- PROGRESS ---------- */
.progress-bar {
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--axora-orange) 0%, var(--axora-orange-light) 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ---------- SEARCH ---------- */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--axora-white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.search-box input:focus {
  outline: none;
  border-color: var(--axora-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--axora-gray);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .top-header { padding: 12px 16px; }
  .page-content { padding: 16px; }
  .kpi-value { font-size: 22px; }
  .modal { max-height: 95vh; }
}

/* ---------- UTILITIES ---------- */
.text-axora-navy { color: var(--axora-navy); }
.text-axora-orange { color: var(--axora-orange); }
.text-axora-gray { color: var(--axora-gray-dark); }
.bg-axora-navy { background-color: var(--axora-navy); }
.bg-axora-orange { background-color: var(--axora-orange); }
.bg-axora-bg { background-color: var(--axora-bg); }

.divider {
  height: 1px;
  background: #E2E8F0;
  margin: 20px 0;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--axora-orange);
  border-radius: 2px;
}

/* ---------- MOBILE MENU TOGGLE ---------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--axora-navy);
}

@media (max-width: 1024px) {
  .mobile-menu-toggle { display: block; }
}

/* ---------- LOADING ---------- */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 0%, #E2E8F0 50%, #F1F5F9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   V2 ADDITIONS — Fiche complète, cartes, toasts
   ============================================ */

/* ---------- LARGE MODAL (fiche complète éditable) ---------- */
.modal-large {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(13, 27, 42, 0.35);
  animation: slideUp 0.25s ease;
}

.modal-large .modal-header {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
  color: white;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--axora-orange);
}

.modal-large .modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: white;
  margin: 0;
}

.modal-large .modal-header .modal-subtitle {
  font-size: 12px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.modal-large .modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-large .modal-close:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--axora-orange);
}

.modal-large .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
}
/* Si la modale contient des tabs, on enlève le padding du body (les tabs gèrent leur propre padding) */
.modal-large .modal-body:has(.modal-tabs) {
  padding: 0;
}

.modal-large .modal-tabs {
  display: flex;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
  padding: 0 28px;
  overflow-x: auto;
}

.modal-large .modal-tab {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-gray-dark);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-large .modal-tab:hover { color: var(--axora-navy); }
.modal-large .modal-tab.active {
  color: var(--axora-navy);
  border-bottom-color: var(--axora-orange);
}
.modal-large .modal-tab i { width: 16px; height: 16px; }

.modal-large .modal-tab-content {
  padding: 28px;
  display: none;
}
.modal-large .modal-tab-content.active { display: block; }

.modal-large .modal-footer {
  padding: 16px 28px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ---------- FORM GRID for modal ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span-2 { grid-column: span 2; }

@media (max-width: 768px) {
  .form-grid, .form-grid.cols-3, .form-grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: 1; }
}

.form-section {
  margin-bottom: 28px;
}
.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--axora-orange);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title i { width: 16px; height: 16px; }

/* ---------- ADDRESS AUTOCOMPLETE ---------- */
.address-autocomplete {
  position: relative;
}
/* Le parent direct d'un input avec autocomplete devient positionné */
.form-group:has(.address-autocomplete-input) {
  position: relative;
}
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.address-suggestions.visible { display: block; }
.address-suggestion-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--axora-navy);
  cursor: pointer;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.15s;
}
.address-suggestion-item:last-child { border-bottom: none; }
.address-suggestion-item:hover { background: #FEF3C7; }
.address-suggestion-item i {
  width: 16px;
  height: 16px;
  color: var(--axora-orange);
  flex-shrink: 0;
  margin-top: 2px;
}
.address-suggestion-text {
  flex: 1;
  line-height: 1.4;
}
.address-suggestion-secondary {
  font-size: 11px;
  color: var(--axora-gray-dark);
  margin-top: 2px;
}

/* ---------- MAPS ---------- */
.map-container {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  background: #F1F5F9;
}
.map-container.small { height: 180px; }
.map-container.large { height: 420px; }

.leaflet-container {
  font-family: 'Montserrat', sans-serif !important;
}
.leaflet-popup-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}
.leaflet-popup-content strong {
  color: var(--axora-navy);
  font-weight: 700;
}

.map-marker-axora {
  background: var(--axora-orange);
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% 50% 50% 0;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transform: rotate(-45deg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-left: -14px !important;
  margin-top: -28px !important;
}
.map-marker-axora span {
  transform: rotate(45deg);
  color: white;
  font-weight: 800;
  font-size: 11px;
  font-family: 'Montserrat', sans-serif;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: white;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 10px 40px rgba(13, 27, 42, 0.2);
  border-left: 4px solid var(--axora-orange);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: #10B981; }
.toast.error { border-left-color: #EF4444; }
.toast.info { border-left-color: #3B82F6; }
.toast i { flex-shrink: 0; }
.toast.success i { color: #10B981; }
.toast.error i { color: #EF4444; }
.toast.info i { color: #3B82F6; }
.toast .toast-content {
  flex: 1;
  font-size: 13px;
  color: var(--axora-navy);
  font-weight: 500;
}
.toast .toast-title {
  font-weight: 700;
  margin-bottom: 2px;
}
.toast.fade-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* ---------- CONFIRM DIALOG ---------- */
.confirm-dialog {
  width: 100%;
  max-width: 460px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  animation: slideUp 0.2s ease;
}
.confirm-dialog .confirm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 0;
}
.confirm-dialog .confirm-icon.danger {
  background: #FEE2E2;
  color: #DC2626;
}
.confirm-dialog .confirm-icon.warning {
  background: #FEF3C7;
  color: #D97706;
}
.confirm-dialog .confirm-body {
  padding: 16px 28px 24px;
  text-align: center;
}
.confirm-dialog h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-bottom: 6px;
}
.confirm-dialog p {
  font-size: 14px;
  color: var(--axora-gray-dark);
  line-height: 1.5;
}
.confirm-dialog .confirm-footer {
  padding: 14px 28px;
  background: #F8FAFC;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ---------- DOCUMENT VIEWER (Inline preview) ---------- */
.doc-preview {
  width: 100%;
  height: 70vh;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.doc-empty-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  color: var(--axora-gray-dark);
  background: #F8FAFC;
  border-radius: 10px;
  text-align: center;
  padding: 40px;
}
.doc-empty-preview i {
  width: 64px;
  height: 64px;
  color: var(--axora-gray-light);
  margin-bottom: 16px;
}

/* ---------- BIEN SELECTOR (documents page) ---------- */
.bien-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.bien-selector-card {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bien-selector-card:hover {
  border-color: var(--axora-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 27, 42, 0.08);
}
.bien-selector-card.active {
  border-color: var(--axora-orange);
  background: linear-gradient(135deg, #FFFBEB 0%, white 100%);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.15);
}
.bien-selector-card .ref-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--axora-navy) 0%, #1B263B 100%);
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bien-selector-card.active .ref-badge {
  background: linear-gradient(135deg, var(--axora-orange) 0%, #D97706 100%);
}
.bien-selector-card .info {
  flex: 1;
  min-width: 0;
}
.bien-selector-card .info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bien-selector-card .info-sub {
  font-size: 11px;
  color: var(--axora-gray-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- ARBORESCENCE STYLE ---------- */
.arbo-tree {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
}
.arbo-node {
  margin-bottom: 4px;
}
.arbo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-navy);
  transition: background 0.15s;
}
.arbo-header:hover { background: #F1F5F9; }
.arbo-header.active { background: #FEF3C7; color: var(--axora-navy); }
.arbo-header .chevron {
  transition: transform 0.2s;
  width: 14px;
  height: 14px;
}
.arbo-header.open .chevron { transform: rotate(90deg); }
.arbo-header .arbo-code {
  background: var(--axora-navy);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}
.arbo-header .arbo-count {
  margin-left: auto;
  background: #E2E8F0;
  color: var(--axora-gray-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.arbo-children {
  padding-left: 20px;
  display: none;
  border-left: 1px dashed #CBD5E1;
  margin-left: 12px;
  margin-top: 4px;
}
.arbo-children.open { display: block; }
.arbo-child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--axora-gray-dark);
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 2px;
}
.arbo-child:hover { background: #F8FAFC; color: var(--axora-navy); }
.arbo-child.active { background: #FEF3C7; color: var(--axora-navy); font-weight: 600; }
.arbo-child .child-code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--axora-orange);
  font-size: 11px;
}

/* ---------- DOC LIST ITEM (improved) ---------- */
.doc-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.doc-card:hover {
  border-color: var(--axora-orange);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.06);
}
.doc-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #FEE2E2;
  color: #DC2626;
}
.doc-card-icon.pdf { background: #FEE2E2; color: #DC2626; }
.doc-card-icon.image { background: #DBEAFE; color: #2563EB; }
.doc-card-icon.doc { background: #E0E7FF; color: #4F46E5; }
.doc-card-icon.sheet { background: #D1FAE5; color: #059669; }
.doc-card-info { flex: 1; min-width: 0; }
.doc-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-navy);
  font-family: 'Courier New', monospace;
  margin-bottom: 2px;
  word-break: break-all;
}
.doc-card-meta {
  font-size: 11px;
  color: var(--axora-gray-dark);
  display: flex;
  gap: 12px;
}
.doc-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.doc-card-actions button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid #E2E8F0;
  color: var(--axora-gray-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.doc-card-actions button:hover {
  background: var(--axora-navy);
  color: white;
  border-color: var(--axora-navy);
}
.doc-card-actions button.danger:hover {
  background: #DC2626;
  border-color: #DC2626;
}

/* ---------- KEBAB MENU ---------- */
.kebab-menu {
  position: relative;
  display: inline-block;
}
.kebab-trigger {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--axora-gray-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.kebab-trigger:hover {
  background: #F1F5F9;
  color: var(--axora-navy);
}
.kebab-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.15);
  min-width: 180px;
  padding: 6px;
  z-index: 50;
  display: none;
}
.kebab-dropdown.open { display: block; }
.kebab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--axora-navy);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.kebab-item:hover { background: #F1F5F9; }
.kebab-item.danger { color: #DC2626; }
.kebab-item.danger:hover { background: #FEE2E2; }
.kebab-item i { width: 14px; height: 14px; }
.kebab-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 4px 0;
}

/* ---------- FILE UPLOAD ZONE (improved) ---------- */
.upload-progress {
  margin-top: 10px;
  background: #F1F5F9;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--axora-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.upload-progress-bar {
  flex: 1;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: var(--axora-orange);
  transition: width 0.3s;
}

/* ---------- LOCATAIRE CARD ENHANCED ---------- */
.locataire-card {
  cursor: pointer;
  transition: all 0.2s;
}
.locataire-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--axora-gray-dark);
}
.empty-state i {
  width: 64px;
  height: 64px;
  color: var(--axora-gray-light);
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   HOME — Landing 3 univers
   ============================================================ */
.home-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 50%, #0D1B2A 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.home-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%);
  pointer-events: none;
}
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  position: relative;
  z-index: 1;
}
.home-brand {
  display: flex;
  flex-direction: column;
}
.home-logo {
  color: white;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 4px;
}
.home-logo span { color: var(--axora-orange); }
.home-tagline {
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.home-user-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.home-content {
  flex: 1;
  padding: 40px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.home-intro {
  text-align: center;
  margin-bottom: 48px;
}
.home-intro h1 {
  font-size: 38px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.home-intro p {
  color: #94A3B8;
  font-size: 16px;
}
.home-univers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.univers-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.univers-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--axora-orange);
  opacity: 0.5;
}
.univers-card.pmo::before  { background: linear-gradient(90deg, #6366F1, #8B5CF6); }
.univers-card.asset::before { background: linear-gradient(90deg, #10B981, #06B6D4); }
.univers-card.immo::before  { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.univers-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}
.univers-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--axora-orange);
  margin-bottom: 20px;
}
.univers-card.pmo .univers-icon  { background: rgba(99, 102, 241, 0.2); color: #818CF8; }
.univers-card.asset .univers-icon { background: rgba(16, 185, 129, 0.2); color: #34D399; }
.univers-icon i { width: 28px; height: 28px; }
.univers-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 6px;
}
.univers-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.univers-card p {
  color: #CBD5E1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}
.univers-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.univ-stat {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.univ-stat strong {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 800;
}
.univ-stat span {
  color: #94A3B8;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.univers-arrow {
  position: absolute;
  bottom: 24px;
  right: 28px;
  color: var(--axora-orange);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.univers-card:hover .univers-arrow {
  background: var(--axora-orange);
  color: white;
  transform: translateX(4px);
}

.home-transverse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.transverse-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.25s;
}
.transverse-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--axora-orange);
}
.transverse-card i {
  color: var(--axora-orange);
  width: 22px;
  height: 22px;
}
.transverse-title { color: white; font-weight: 600; font-size: 14px; }
.transverse-sub   { color: #94A3B8; font-size: 11px; margin-top: 2px; }

/* App screen wrapper */
.app-screen { min-height: 100vh; }

/* Sidebar home button */
.sidebar-home-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 6px 12px 12px;
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #FBBF24;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sidebar-home-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--axora-orange);
}
.sidebar-home-btn i { width: 16px; height: 16px; }

/* Breadcrumb univers */
.breadcrumb-univers {
  cursor: pointer;
  color: var(--axora-orange);
  font-weight: 600;
}
.breadcrumb-univers:hover { text-decoration: underline; }

/* ============================================================
   FIX MODAL Z-INDEX (au-dessus de la carte Leaflet)
   ============================================================ */
.modal-overlay { z-index: 9000 !important; }
.modal-large   { z-index: 9001 !important; }
.toast-container { z-index: 9500 !important; }
/* Leaflet z-index par défaut: 400-700 pour panes, 1000 pour controls */
.leaflet-pane,
.leaflet-control,
.leaflet-top,
.leaflet-bottom { z-index: 400 !important; }

/* ============================================================
   PMO — Projets, planning, jalons, REX
   ============================================================ */
.criticite-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.criticite-haute  { background: #FEE2E2; color: #B91C1C; }
.criticite-moyenne{ background: #FEF3C7; color: #B45309; }
.criticite-basse  { background: #DBEAFE; color: #1E40AF; }

.statut-pmo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}
.statut-pmo.en-cours    { background: #DBEAFE; color: #1E40AF; }
.statut-pmo.en-attente  { background: #F1F5F9; color: #475569; }
.statut-pmo.termine     { background: #D1FAE5; color: #065F46; }
.statut-pmo.suspendu    { background: #FEE2E2; color: #B91C1C; }

/* Carte projet PMO */
.projet-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.projet-card:hover {
  border-color: var(--axora-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(13, 27, 42, 0.2);
}
.projet-card-header {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--axora-navy), #1B2A3E);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.projet-card-header .projet-code {
  background: var(--axora-orange);
  color: white;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.projet-card-body { padding: 18px; }
.projet-card-title {
  font-weight: 700;
  font-size: 15px;
  color: white;
  flex: 1;
  line-height: 1.3;
}
.projet-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}
.projet-card-row:last-child { border-bottom: none; }
.projet-card-row .label { color: #64748B; }
.projet-card-row .value { color: var(--axora-navy); font-weight: 600; }

/* Planning — kanban par phase */
.planning-grid {
  display: grid;
  /* N1 Vague 9 — grid-template-columns peut être overridden inline pour s'adapter au nombre de phases du type */
  grid-template-columns: 220px repeat(12, 1fr);
  gap: 4px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px;
  overflow-x: auto;
  min-width: 100%;
}

/* N1 Vague 9 — Section par type de projet dans le tableau des phases */
.planning-group-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(13, 27, 42, 0.06);
  overflow: hidden;
}
.planning-group-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.planning-cell {
  padding: 10px 8px;
  font-size: 11px;
  text-align: center;
  background: white;
  border-radius: 6px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.planning-cell.header {
  background: var(--axora-navy);
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: default;
}
.planning-cell.projet-name {
  background: white;
  font-weight: 700;
  color: var(--axora-navy);
  text-align: left;
  padding-left: 14px;
  justify-content: flex-start;
  font-size: 12px;
  cursor: default;
}
.planning-cell.todo   { background: #F1F5F9; color: #94A3B8; }
.planning-cell.current{ background: #FBBF24; color: #1E293B; font-weight: 700; box-shadow: 0 0 0 2px var(--axora-orange); }
.planning-cell.done   { background: #10B981; color: white; font-weight: 700; }
.planning-cell.warn   { background: #F59E0B; color: white; font-weight: 700; }
.planning-cell:not(.header):not(.projet-name):hover {
  transform: scale(1.02);
  z-index: 2;
}

/* Phase fiche modale */
.phase-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
@media (max-width: 700px) {
  .phase-info-grid { grid-template-columns: 1fr; }
}
.phase-info-card {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px;
}
.phase-info-card .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  font-weight: 700;
  margin-bottom: 6px;
}
.phase-info-card .value {
  font-size: 16px;
  font-weight: 800;
  color: var(--axora-navy);
}

/* Liste de jalons */
.jalon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jalon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
}
.jalon-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}
.jalon-checkbox.checked {
  background: #10B981;
  border-color: #10B981;
  color: white;
}
.jalon-checkbox.checked i { width: 14px; height: 14px; }
.jalon-text { flex: 1; font-size: 13px; }
.jalon-text.done { text-decoration: line-through; color: #94A3B8; }

/* Actions résiduelles */
.actions-residuelles {
  background: #FEF3C7;
  border: 1px solid #FBBF24;
  border-radius: 10px;
  padding: 14px;
  margin: 12px 0;
}
.actions-residuelles-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #92400E;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.action-residuelle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 6px;
  font-size: 12px;
}
.action-residuelle:last-child { margin-bottom: 0; }
.action-residuelle .responsable {
  background: var(--axora-navy);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* REX modal sections */
.rex-section {
  margin: 14px 0;
  padding: 14px;
  border-radius: 10px;
}
.rex-section.positive { background: #D1FAE5; border-left: 4px solid #10B981; }
.rex-section.negative { background: #FEE2E2; border-left: 4px solid #EF4444; }
.rex-section.neutral  { background: #F1F5F9; border-left: 4px solid #64748B; }
.rex-section-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rex-section.positive .rex-section-title { color: #065F46; }
.rex-section.negative .rex-section-title { color: #B91C1C; }
.rex-section.neutral  .rex-section-title { color: #334155; }

/* ============================================================
   ASSET MGMT — Arborescence cellules
   ============================================================ */
.tree-asset {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px;
  font-size: 13px;
}
.tree-node {
  margin: 2px 0;
}
.tree-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.tree-node-header:hover { background: #F1F5F9; }
.tree-node.level-0 > .tree-node-header { background: var(--axora-navy); color: white; }
.tree-node.level-0 > .tree-node-header:hover { background: #1B2A3E; }
.tree-node.level-1 > .tree-node-header { background: #F8FAFC; font-weight: 600; padding-left: 26px; }
.tree-node.level-2 > .tree-node-header { padding-left: 46px; font-size: 12px; color: #475569; }
.tree-node.level-3 > .tree-node-header { padding-left: 66px; font-size: 12px; color: #64748B; }
.tree-node-children {
  display: none;
  padding-left: 0;
}
.tree-node.open > .tree-node-children { display: block; }
.tree-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.tree-node.open > .tree-node-header .tree-chevron { transform: rotate(90deg); }
.tree-code {
  font-family: 'Courier New', monospace;
  background: rgba(245, 158, 11, 0.15);
  color: #92400E;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.tree-node.level-0 .tree-code {
  background: var(--axora-orange);
  color: white;
}
.tree-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.tree-node-header:hover .tree-actions { opacity: 1; }
.tree-actions button {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  display: flex;
  align-items: center;
}
.tree-actions button:hover { background: rgba(255, 255, 255, 0.2); }
.tree-actions button.danger:hover { background: rgba(220, 38, 38, 0.2); color: #DC2626; }

/* Tâche de maintenance */
.tache-maint {
  display: grid;
  grid-template-columns: 110px 1fr 110px 80px 130px 36px;
  gap: 10px;
  background: white;
  padding: 10px 14px;
  border-bottom: 1px solid #F1F5F9;
  align-items: center;
  font-size: 12px;
}
.tache-maint:last-child { border-bottom: none; }
.tache-maint .tache-type {
  background: #DBEAFE;
  color: #1E40AF;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.3px;
}
.tache-maint .tache-type.Métrologie { background: #FCE7F3; color: #9F1239; }
.tache-maint .tache-type.Inspection { background: #E0E7FF; color: #3730A3; }
@media (max-width: 700px) {
  .tache-maint { grid-template-columns: 1fr; }
}

/* Stat ruptures stock */
.alert-rupture {
  background: #FEE2E2;
  border-left: 4px solid #EF4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-rupture i { color: #B91C1C; width: 20px; height: 20px; }
.alert-rupture .titre {
  font-weight: 800;
  font-size: 13px;
  color: #B91C1C;
}

/* Client card */
.client-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.client-card:hover {
  border-color: var(--axora-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(13, 27, 42, 0.2);
}
.client-logo {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Chef projet card */
.cdp-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  transition: all 0.2s;
  cursor: pointer;
}
.cdp-card:hover { border-color: var(--axora-orange); }
.cdp-card-charge {
  height: 6px;
  background: #F1F5F9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}
.cdp-card-charge-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.charge-low { background: #10B981; }
.charge-med { background: #F59E0B; }
.charge-high{ background: #EF4444; }

/* PMO Doc tree par phase (variation pour PMO) */
.pmo-phase-section {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.pmo-phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.pmo-phase-header:hover { background: #F8FAFC; }
.pmo-phase-code {
  background: var(--axora-orange);
  color: white;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.pmo-phase-title {
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  color: var(--axora-navy);
}
.pmo-phase-count {
  background: #F1F5F9;
  color: #475569;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.pmo-phase-body {
  border-top: 1px solid #E2E8F0;
  padding: 14px 18px;
  background: #F8FAFC;
  display: none;
}
.pmo-phase-section.open .pmo-phase-body { display: block; }
.pmo-phase-section.open .pmo-phase-chevron { transform: rotate(90deg); }
.pmo-phase-chevron { width: 16px; height: 16px; transition: transform 0.15s; }

/* Univers : couleur d'accent dynamique sur sidebar active */
body.univers-pmo   .sidebar-nav-item.active { border-left-color: #6366F1; background: rgba(99, 102, 241, 0.15); color: white; }
body.univers-asset .sidebar-nav-item.active { border-left-color: #10B981; background: rgba(16, 185, 129, 0.15); color: white; }


/* ============================================================
   DASHBOARD SAFRAN-STYLE (Portfolio dashboard)
   ============================================================ */
.dashboard-safran { background: #F8FAFC; padding: 0; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-title-block h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--axora-navy);
  margin: 0;
}
.dashboard-subtitle {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.dashboard-header-stats {
  display: flex;
  gap: 14px;
  align-items: center;
}
.header-stat {
  background: #F1F5F9;
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 90px;
  text-align: center;
}
.header-stat-label {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1.1;
  margin-top: 2px;
}

/* Bloc indicateurs */
.indicators-block {
  background: linear-gradient(135deg, var(--axora-navy), #1B2A3E);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  color: white;
}
.indicators-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.indicators-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) {
  .indicators-grid { grid-template-columns: 1fr; }
}
.indicator-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.indicator-label {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  margin-bottom: 6px;
}
.indicator-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1;
}
.indicator-value.good { color: #10B981; }
.indicator-value.warn { color: #F59E0B; }
.indicator-value.bad  { color: #EF4444; }

/* Grid 2 colonnes */
.dashboard-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* Portfolio block (Valeur portfolio / Engagé / Payé) */
.portfolio-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
}
.portfolio-stat {
  background: white;
  padding: 14px 16px;
  text-align: center;
}
.portfolio-stat:not(:first-child) {
  box-shadow: -1px 0 0 #E2E8F0;
}
.portfolio-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 4px;
}
.portfolio-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1.1;
}

/* Tables compactes */
.data-table-compact th,
.data-table-compact td {
  padding: 6px 10px !important;
  font-size: 12px;
}
.data-table-compact th {
  font-size: 10px !important;
  text-transform: uppercase;
  background: #F8FAFC;
  color: #475569;
  font-weight: 700;
}

/* Cellules KPI colorées (vert/jaune/rouge) */
.kpi-cell-green  { background: #D1FAE5; color: #065F46; font-weight: 700; }
.kpi-cell-yellow { background: #FEF3C7; color: #92400E; font-weight: 700; }
.kpi-cell-red    { background: #FEE2E2; color: #B91C1C; font-weight: 700; }

/* Pill KPI (dans fiche projet) */
.kpi-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
}
.kpi-pill.green  { background: #D1FAE5; color: #065F46; }
.kpi-pill.yellow { background: #FEF3C7; color: #92400E; }
.kpi-pill.red    { background: #FEE2E2; color: #B91C1C; }

/* ============================================================
   GANTT CHART
   ============================================================ */
.gantt-container {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  /* N5 Vague 7 — Le container doit avoir overflow auto pour permettre le scroll
     ET pour que position:sticky sur la colonne projet fonctionne correctement.
     overflow:hidden cassait totalement le sticky horizontal. */
  overflow: auto;
  position: relative;
  max-height: calc(100vh - 280px);
}
.gantt-header {
  display: flex;
  background: var(--axora-navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  /* N5 — Le header doit faire la largeur totale du contenu pour que la 1ère colonne reste sticky */
  width: max-content;
  min-width: 100%;
}
.gantt-projet-col {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 2px solid #E2E8F0;
  background: var(--axora-navy);
  /* N5 — Sticky horizontal */
  position: sticky !important;
  left: 0 !important;
  z-index: 15;
  flex-shrink: 0;
  box-shadow: 2px 0 6px rgba(13, 27, 42, 0.08);
  /* V22b — Forcer box-sizing border-box pour que width:240px inclue padding + border */
  box-sizing: border-box !important;
  /* V44 — Wrap sur 2 lignes : titres longs comme "Four cuisson émaillé 850°C..." passent à la ligne */
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  line-height: 1.3 !important;
}
/* V44 — Wrap des labels dans la colonne projet (couvre <span>, <div>, etc.) */
.gantt-projet-col span,
.gantt-projet-col div,
.gantt-projet-col a {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-header .gantt-projet-col {
  z-index: 25; /* au-dessus de l'header et des rows */
}
.gantt-body .gantt-projet-col {
  background: white;
  color: var(--axora-navy);
  font-weight: 600;
}

/* V13 Vague 13 — Colonnes Date début / Date fin (2 colonnes figées en plus) */
.gantt-date-col {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #E2E8F0;
  background: white;
  color: var(--axora-navy);
  flex-shrink: 0;
  /* V22 Vague 22 — Sticky position forcé pour éviter tout conflit de stacking */
  position: sticky !important;
  z-index: 14;
  font-family: monospace;
  box-sizing: border-box;
}
.gantt-header .gantt-date-col {
  background: var(--axora-navy);
  color: white;
  font-weight: 700;
  z-index: 24 !important;
}
/* V21 Vague 21 — Bug fix : les colonnes Durée et Nom se décollaient lors du scroll horizontal.
   V28 Vague 28 — Les positions `left` ne sont PLUS codées en dur ici : elles sont pilotées
   dynamiquement par setupGanttFreezeColumns() (JS) pour rester synchronisées avec la largeur
   réelle de la colonne projet (redimensionnable). Le CSS ne définit que le sticky de base. */

/* Date début = 2e colonne figée */
.gantt-row .gantt-date-col-1,
.gantt-header .gantt-date-col-1 {
  position: sticky !important;
}
/* Date fin = 3e colonne figée */
.gantt-row .gantt-date-col-2,
.gantt-header .gantt-date-col-2 {
  position: sticky !important;
}
/* Durée = 4ème colonne figée */
.gantt-row .gantt-date-col-3,
.gantt-header .gantt-date-col-3 {
  position: sticky !important;
  border-right: 2px solid #CBD5E1;
  box-shadow: 2px 0 6px rgba(13, 27, 42, 0.08);
}
/* Cellule éditable au double-clic */
.gantt-date-editable {
  cursor: pointer;
  transition: background 0.15s;
}
.gantt-date-editable:hover {
  background: #FEF3C7 !important;
  color: #92400E !important;
}
.gantt-date-editable::after {
  content: "✎";
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.3;
}
.gantt-date-editable:hover::after {
  opacity: 1;
  color: #F59E0B;
}
.gantt-date-readonly {
  color: #94A3B8 !important;
  font-style: italic;
  font-size: 10px !important;
}
.gantt-date-empty {
  color: #CBD5E1;
}
.gantt-timeline {
  position: relative;
  height: 36px;
  overflow: hidden;
}
.gantt-month-label {
  position: absolute;
  top: 0;
  font-size: 10px;
  padding: 10px 6px;
  font-weight: 600;
  white-space: nowrap;
  color: white;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  box-sizing: border-box;
}
.gantt-body {
  position: relative;
  /* N5 — Pas d'overflow ici : le scroll est sur .gantt-container.
     overflow-x: auto ici cassait le sticky de la 1ère colonne. */
  overflow: visible;
  width: max-content;
  min-width: 100%;
}
.gantt-row {
  display: flex;
  border-bottom: 1px solid #F1F5F9;
  min-height: 38px;
  /* N5 — Chaque ligne doit faire la largeur totale du contenu */
  width: max-content;
  min-width: 100%;
}
.gantt-row:hover { background: #F8FAFC; }
.gantt-bars {
  position: relative;
  height: 38px;
  background-image: linear-gradient(to right, #F8FAFC 0, transparent 1px);
  background-size: 120px 100%;
}
.gantt-bar {
  position: absolute;
  top: 8px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s;
  z-index: 2;
}
.gantt-bar:hover {
  transform: scaleY(1.15);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.gantt-bar-label {
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
}
.gantt-bar.done {
  background: #10B981 !important;
  color: white;
}
.gantt-bar.warn {
  background: #F59E0B !important;
  color: white;
  border: 2px solid #DC2626;
}
.gantt-bar.current {
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
  z-index: 4;
}
.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #DC2626;
  z-index: 5;
  pointer-events: none;
}
.gantt-today-line span {
  position: absolute;
  top: -16px;
  left: -25px;
  background: #DC2626;
  color: white;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}

/* ============================================================
   TEMPLATES — Cards style Safran SharePoint
   ============================================================ */
.templates-intro {
  background: linear-gradient(135deg, #5B21B6, #7C3AED);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: white;
}
.templates-intro-text {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
}
.templates-intro-text i {
  color: #FBBF24;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.template-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -10px rgba(13, 27, 42, 0.2);
  border-color: var(--axora-orange);
}
.template-preview {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.template-preview-mock {
  background: white;
  width: 80%;
  height: 80%;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.template-preview-mock-large {
  width: 60%;
  height: 220px;
  margin: 0 auto;
}
.template-mock-bar {
  height: 8px;
  width: 100%;
}
.template-mock-content {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.template-mock-title {
  height: 6px;
  width: 60%;
  border-radius: 2px;
  margin-bottom: 4px;
}
.template-mock-line {
  height: 3px;
  background: #E2E8F0;
  border-radius: 2px;
  width: 100%;
}
.template-mock-line.short { width: 70%; }
.template-mock-block {
  height: 30px;
  border-radius: 3px;
  margin: 3px 0;
}
.template-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.template-icon-overlay {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.template-icon-overlay i { width: 18px; height: 18px; }
.template-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.template-code {
  background: var(--axora-orange);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
}
.template-id {
  color: #94A3B8;
  font-family: monospace;
}
.template-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--axora-navy);
  margin: 0;
  line-height: 1.3;
}
.template-description {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  margin-top: 4px;
}
.template-usage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.template-usage-label {
  color: #94A3B8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.template-usage-phases {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.template-usage-phase {
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}

.template-detail-preview {
  border-radius: 10px;
  padding: 20px;
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   RESPONSIVE — tablet & mobile pour v5
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  /* Dashboard Safran */
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .dashboard-header { padding: 14px 16px; }
  .dashboard-header-stats { gap: 8px; flex-wrap: wrap; }
  .header-stat { min-width: 70px; padding: 6px 10px; }
  .header-stat-value { font-size: 18px; }
  .indicators-grid { grid-template-columns: 1fr 1fr; }
  .indicator-value { font-size: 24px; }
  .portfolio-block { grid-template-columns: 1fr; }
  .portfolio-stat { padding: 12px; }
  .portfolio-value { font-size: 18px; }

  /* Modales */
  .modal-large { width: 96% !important; max-width: 96% !important; max-height: 92vh; }
  .modal-large .modal-body { padding: 18px 20px; }
  .modal-large .modal-header { padding: 16px 20px; }
  .modal-large .modal-footer { padding: 12px 20px; flex-direction: column; gap: 8px; align-items: stretch; }
  .modal-large .modal-footer > div { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }

  /* Home screen */
  .home-content { padding: 30px 24px 60px; }
  .home-univers-grid { gap: 16px; }
  .univers-card { padding: 24px; }
  .home-intro h1 { font-size: 28px; }

  /* Cards */
  .card-body { padding: 14px; }

  /* Tables */
  .data-table th, .data-table td { padding: 8px 10px !important; font-size: 12px; }

  /* Top header */
  .top-header { padding: 12px 16px; gap: 8px; }
  .breadcrumb { font-size: 12px; }
  .search-box { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Home */
  .home-header { padding: 18px 20px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .home-content { padding: 20px 16px 40px; }
  .home-intro h1 { font-size: 22px; }
  .home-intro p { font-size: 13px; }
  .home-univers-grid { grid-template-columns: 1fr; gap: 12px; }
  .univers-card { padding: 20px; min-height: auto; }
  .univers-card h2 { font-size: 20px; }
  .univers-card p { font-size: 12px; }
  .home-transverse { grid-template-columns: 1fr; gap: 8px; }
  .transverse-card { padding: 14px 16px; }

  /* Dashboard */
  .dashboard-title-block h1 { font-size: 18px; }
  .dashboard-subtitle { font-size: 11px; }
  .indicators-grid { grid-template-columns: 1fr; }
  .indicator-value { font-size: 22px; }
  .header-stat { min-width: 60px; }
  .header-stat-value { font-size: 16px; }

  /* Planning kanban */
  .planning-grid { grid-template-columns: 140px repeat(12, 56px); min-width: 0; }
  .planning-cell.projet-name { padding-left: 10px; }
  .planning-cell { padding: 8px 4px; font-size: 10px; min-height: 48px; }

  /* Gantt */
  .gantt-projet-col { width: 140px; min-width: 140px; padding: 8px 10px; font-size: 10px; }
  .gantt-month-label { font-size: 9px; }

  /* KPI grid */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 12px; }
  .kpi-value { font-size: 20px; }

  /* Templates */
  .templates-grid { grid-template-columns: 1fr; }
  .template-card { max-width: 100%; }

  /* Modal */
  .modal-large { width: 100% !important; max-width: 100% !important; max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-large .modal-body { padding: 14px 16px; }
  .modal-large .modal-header { padding: 14px 16px; }
  .modal-large .modal-header h2 { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }

  /* Buttons */
  .btn { padding: 8px 14px; font-size: 12px; }
  .btn-sm { padding: 6px 10px; font-size: 11px; }
  .btn-icon { width: 32px; height: 32px; }

  /* Sidebar mobile : on garde le toggle, ajustement padding */
  .sidebar { width: 280px; }

  /* Trees */
  .tree-node.level-1 > .tree-node-header { padding-left: 18px; }
  .tree-node.level-2 > .tree-node-header { padding-left: 28px; }
  .tree-node.level-3 > .tree-node-header { padding-left: 38px; }

  /* Top header sans search */
  .top-header { padding: 10px 14px; }
  .breadcrumb-univers + i { display: none; }
}

/* Très petits écrans */
@media (max-width: 380px) {
  .home-intro h1 { font-size: 18px; }
  .univers-card h2 { font-size: 18px; }
  .indicator-card { padding: 10px; }
  .indicator-value { font-size: 18px; }
}

/* Améliorations tactiles */
@media (hover: none) {
  /* Sur les écrans tactiles, les tree-actions sont toujours visibles */
  .tree-actions { opacity: 1 !important; }
  /* Boutons un peu plus grands pour le tactile */
  .btn { min-height: 38px; }
  .btn-icon { min-height: 36px; min-width: 36px; }
}

/* ============================================================
   FILTER PANEL — Filtres déroulants en haut des modules
   ============================================================ */
.filter-panel {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.filter-panel-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  height: 38px;
  font-size: 13px;
}
.filter-select {
  height: 38px;
  font-size: 12px;
  padding: 0 32px 0 12px;
  min-width: 140px;
  flex-shrink: 0;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}
.filter-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  margin-right: 8px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}
.filter-chip.active {
  background: var(--axora-navy);
  border-color: var(--axora-navy);
  color: white;
}
.filter-chip-count {
  background: rgba(0,0,0,0.1);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
}
.filter-chip.active .filter-chip-count {
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   ÉQUIPE PROJET — Grille de membres
   ============================================================ */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.equipe-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.equipe-member:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
}
.equipe-member-empty {
  background: white;
  border: 1px dashed #CBD5E1;
  opacity: 0.7;
  cursor: default;
}
.equipe-member-empty:hover { transform: none; }
.equipe-autres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.equipe-autre-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.equipe-autre-chip:hover {
  background: #E2E8F0;
}

/* ============================================================
   TIMELINE HISTORIQUE
   ============================================================ */
.timeline-historique {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
}
.timeline-historique::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #E2E8F0;
}
.timeline-item {
  position: relative;
  padding-bottom: 14px;
  display: flex;
  gap: 10px;
}
.timeline-dot {
  position: absolute;
  left: -22px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--axora-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  z-index: 2;
}
.timeline-dot i {
  width: 10px;
  height: 10px;
  color: white;
}
.timeline-content {
  flex: 1;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 8px;
}

/* ============================================================
   PHASE INFO GRID (fiche phase header)
   ============================================================ */
.phase-info-grid {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 800px) {
  .phase-info-grid { grid-template-columns: 1fr; }
}
.phase-info-card {
  background: #F8FAFC;
  border-radius: 8px;
  padding: 10px 12px;
}
.phase-info-card .label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.phase-info-card .value {
  font-size: 13px;
  color: #0D1B2A;
}
.phase-dates-editor {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.form-input-sm {
  font-size: 11px;
  padding: 4px 8px;
  height: auto;
}

/* ============================================================
   JALON LIST (cases à cocher interactives)
   ============================================================ */
.jalon-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jalon-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  transition: all 0.15s;
}
.jalon-item:hover {
  background: #F8FAFC;
}
.jalon-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid #CBD5E1;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  padding: 0;
}
.jalon-checkbox.interactive:hover {
  border-color: var(--axora-orange);
  background: #FEF3C7;
}
.jalon-checkbox.checked {
  background: #10B981;
  border-color: #10B981;
}
.jalon-checkbox.checked i {
  color: white;
  width: 14px;
  height: 14px;
}
.jalon-checkbox.auto-done {
  background: #94A3B8;
  border-color: #94A3B8;
  cursor: default;
}
.jalon-checkbox.auto-done i {
  color: white;
}
.jalon-text {
  flex: 1;
  font-size: 13px;
}
.jalon-text.done {
  text-decoration: line-through;
  opacity: 0.7;
}

/* ============================================================
   PMO DOC SECTION & sous-dossiers
   ============================================================ */
.pmo-phase-section {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pmo-phase-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  background: #F8FAFC;
  user-select: none;
  border-bottom: 1px solid transparent;
}
.pmo-phase-header:hover {
  background: #F1F5F9;
}
.pmo-phase-section.open .pmo-phase-header {
  border-bottom-color: #E2E8F0;
}
.pmo-phase-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
  color: #94A3B8;
}
.pmo-phase-section.open .pmo-phase-chevron {
  transform: rotate(90deg);
}
.pmo-phase-code {
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
}
.pmo-phase-title {
  flex: 1;
  font-weight: 600;
  color: #0D1B2A;
  font-size: 13px;
}
.pmo-phase-count {
  font-size: 11px;
  color: #94A3B8;
}
.pmo-phase-body {
  padding: 14px;
  display: none;
}
.pmo-phase-section.open .pmo-phase-body {
  display: block;
}

.doc-folder-section {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.doc-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}
.doc-folder-header:hover {
  background: #FEF3C7;
}
.folder-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  color: #B45309;
}
.doc-folder-section.open .folder-chevron {
  transform: rotate(90deg);
}
.doc-folder-body {
  padding: 8px 12px 10px 32px;
  display: none;
  background: white;
  border-top: 1px solid #FDE68A;
}
.doc-folder-section.open .doc-folder-body {
  display: block;
}

/* ============================================================
   STATUTS PMO
   ============================================================ */
.statut-pmo {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.statut-pmo.en-cours { background: #D1FAE5; color: #065F46; }
.statut-pmo.en-attente { background: #FEF3C7; color: #92400E; }
.statut-pmo.termine { background: #DBEAFE; color: #1E40AF; }
.statut-pmo.suspendu { background: #FEE2E2; color: #B91C1C; }


/* ============================================================
   MAINTENANCE LINK CARD — dans fiche projet PMO
   ============================================================ */
.maintenance-link-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 12px;
  padding: 16px 18px;
}
.maintenance-link-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.maintenance-link-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .maintenance-link-stats { grid-template-columns: repeat(2, 1fr); }
}
.maintenance-stat {
  text-align: center;
  padding: 4px;
}
.maintenance-stat .ms-label {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.maintenance-stat .ms-value {
  font-size: 20px;
  font-weight: 800;
  color: #065F46;
  line-height: 1;
}
.maintenance-link-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   AUTRES CHECKBOX GRID — dans édition équipe projet
   ============================================================ */
.autres-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  padding: 10px;
  background: #F8FAFC;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  max-height: 240px;
  overflow-y: auto;
}
.autres-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 12px;
}
.autres-checkbox:hover {
  border-color: var(--axora-orange);
  background: #FFFBEB;
}
.autres-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 14px;
  height: 14px;
  accent-color: var(--axora-orange);
}
.autres-checkbox input[type="checkbox"]:checked + .user-avatar {
  outline: 2px solid var(--axora-orange);
  outline-offset: 1px;
}

/* Doc folder chevron icon (already covered, but be safe) */
.doc-folder-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.doc-folder.open > .doc-folder-header > .doc-folder-chevron,
.doc-folder-section.open > .doc-folder-header > .folder-chevron {
  transform: rotate(90deg);
}

/* Form input petit format — pour édition dates phase */
.form-input-sm {
  padding: 6px 10px !important;
  font-size: 12px !important;
  height: auto !important;
}

/* Phase dates editor compact */
.phase-dates-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.phase-dates-editor .form-input-sm {
  width: auto;
  min-width: 130px;
  flex: 1;
}

/* Jalon checkbox interactive (clickable button) */
.jalon-checkbox.interactive {
  cursor: pointer;
  border: 2px solid #94A3B8;
  background: white;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0;
  transition: all 0.15s;
  flex-shrink: 0;
}
.jalon-checkbox.interactive:hover {
  border-color: var(--axora-orange);
  background: #FFFBEB;
  transform: scale(1.08);
}
.jalon-checkbox.interactive.checked {
  background: #10B981;
  border-color: #10B981;
  color: white;
}
.jalon-checkbox.auto-done {
  background: #94A3B8;
  border: 2px solid #94A3B8;
  color: white;
  cursor: not-allowed;
  opacity: 0.7;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.jalon-checkbox.checked.auto-done {
  background: #10B981;
  border-color: #10B981;
}

/* ============================================================
   TIMELINE HISTORIQUE — dans fiche projet
   ============================================================ */
.timeline-historique {
  position: relative;
  padding-left: 30px;
}
.timeline-historique::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 100%);
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -26px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px white;
  flex-shrink: 0;
}
.timeline-content {
  background: #F8FAFC;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #E2E8F0;
}
.timeline-content:hover { background: #F1F5F9; }

/* ============================================================
   EQUIPE GRID — dans fiche projet
   ============================================================ */
.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .equipe-grid { grid-template-columns: 1fr; }
}
.equipe-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.equipe-member:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}
.equipe-member-empty {
  background: #FAFAFA;
  border-style: dashed;
  cursor: default;
  color: #94A3B8;
}
.equipe-member-empty:hover {
  transform: none;
  box-shadow: none;
}
.equipe-member-empty i {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

.equipe-autres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.equipe-autre-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.equipe-autre-chip:hover {
  background: #E0E7FF;
  border-color: #818CF8;
}

/* ============================================================
   FILTER PANEL — barres de filtres dropdowns
   ============================================================ */
.filter-panel {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
}
.filter-panel-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 7px 12px !important;
  font-size: 13px !important;
}
.filter-select {
  width: auto;
  min-width: 130px;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

/* ============================================================
   FILTER BAR — chips (pour ressources)
   ============================================================ */
.filter-bar {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s;
}
.filter-chip:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
}
.filter-chip.active {
  background: var(--axora-navy);
  color: white;
  border-color: var(--axora-navy);
}
.filter-chip-count {
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.filter-chip:not(.active) .filter-chip-count {
  background: white;
  color: #475569;
}

/* ============================================================
   DOC FOLDER — sous-dossiers dans documents PMO
   ============================================================ */
.doc-folder,
.doc-folder-section {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #FAFAFA;
  overflow: hidden;
}
.doc-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.doc-folder-header:hover { background: #F1F5F9; }
.doc-folder-body {
  padding: 8px 14px 12px 14px;
  display: none;
  background: white;
  border-top: 1px solid #E2E8F0;
}
.doc-folder.open > .doc-folder-body,
.doc-folder-section.open > .doc-folder-body {
  display: block;
}


/* ============================================================
   SIMULATION TRAVAUX — Lignes libres
   ============================================================ */
.sim-travaux-line {
  display: grid;
  grid-template-columns: 1fr 160px 36px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
@media (max-width: 640px) {
  .sim-travaux-line { grid-template-columns: 1fr 100px 32px; }
}
.sim-travaux-nom {
  padding: 8px 12px !important;
  font-size: 13px !important;
}
.sim-travaux-montant {
  padding: 8px 12px !important;
  font-size: 13px !important;
  text-align: right;
}
.sim-travaux-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   PROJECT CHARTER — Édition + Aperçu (Safran-style → AXORA)
   ============================================================ */

/* Edit grid : 2 colonnes côte à côte */
.charter-edit-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) {
  .charter-edit-grid { grid-template-columns: 1fr; }
}
.charter-col-left,
.charter-col-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.charter-col-left .form-section,
.charter-col-right .form-section { margin-bottom: 0; }

/* Carte résumé dans la fiche projet */
.charter-summary-card {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #F59E0B;
  border-radius: 10px;
  padding: 14px 18px;
}
.charter-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.charter-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
}

/* ============================================================
   PROJECT CHARTER PREVIEW — Layout Safran adapté AXORA
   Format A4 paysage (1123 × 794 px à 96 DPI, on travaille en 1080 max)
   ============================================================ */
.charter-preview {
  background: white;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 26px 18px;
  font-family: 'Montserrat', sans-serif;
  color: #0D1B2A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 740px;
  position: relative;
}
.charter-preview.for-pdf {
  box-shadow: none;
  border-radius: 0;
  width: 1080px;
  max-width: 1080px;
}

/* En-tête : titre + dates */
.charter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0D1B2A;
}
.charter-title-block {
  flex: 1;
}
.charter-projet-titre {
  font-size: 26px;
  font-weight: 800;
  color: #0D1B2A;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.charter-projet-code {
  display: inline-block;
  background: #F59E0B;
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: 1px;
}
.charter-dates {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.charter-date-block {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #0D1B2A;
}
.charter-date-label {
  background: #0D1B2A;
  color: white;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.charter-date-value {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #0D1B2A;
  background: white;
}

/* Grille principale 2 colonnes */
.charter-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  flex: 1;
}
.charter-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sections (boîtes encadrées style Safran) */
.charter-section {
  border: 1.5px solid #0D1B2A;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.charter-section-title {
  background: #0D1B2A;
  color: white;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.charter-section-body {
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #1E293B;
  flex: 1;
  background: white;
}
.charter-subsection {
  margin-bottom: 6px;
}
.charter-subsection:last-child { margin-bottom: 0; }
.charter-subsection-label {
  display: inline-block;
  font-weight: 700;
  color: #0D1B2A;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 1px;
}
.charter-line {
  margin: 1px 0;
  white-space: pre-wrap;
}
.charter-line.empty { color: #94A3B8; font-style: italic; }

/* Info-block (Sponsor/Type/Budget/Équipe) — style tableau gauche-droite */
.charter-info-block {
  display: grid;
  grid-template-columns: 110px 1fr;
  border: 1.5px solid #0D1B2A;
  border-radius: 5px;
  overflow: hidden;
}
.charter-info-row {
  display: contents;
}
.charter-info-row .charter-info-label {
  background: #0D1B2A;
  color: white;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.charter-info-row:last-child .charter-info-label,
.charter-info-row:last-child .charter-info-value {
  border-bottom: none;
}
.charter-info-row .charter-info-value {
  padding: 8px 12px;
  font-size: 11.5px;
  color: #1E293B;
  background: white;
  border-bottom: 1px solid #E2E8F0;
  font-weight: 500;
}
.charter-equipe .charter-line {
  font-size: 11px;
  line-height: 1.45;
}

/* Footer (bandeau bas) */
.charter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 12px;
  border-top: 2px solid #F59E0B;
  font-size: 10px;
}
.charter-footer-phase {
  background: #F59E0B;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-right: 10px;
}
.charter-footer-meta {
  color: #475569;
  font-weight: 500;
}
.charter-footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #0D1B2A;
  letter-spacing: 3px;
}
.charter-footer-brand span {
  color: #F59E0B;
}

/* Optim impression PDF : tailles plus serrées */
.charter-preview.for-pdf .charter-projet-titre { font-size: 24px; }
.charter-preview.for-pdf .charter-section-body { font-size: 10.5px; }
.charter-preview.for-pdf .charter-info-row .charter-info-value { font-size: 11px; }


/* ============================================================
   SIMULATION RENTABILITÉ IMMO — Module avancé multi-scénarios
   Charte AXORA navy/orange · dense · pro
   ============================================================ */

.sim-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* HEADER */
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sim-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--axora-navy);
  margin: 0;
  letter-spacing: -0.3px;
}
.sim-subtitle {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.sim-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.sim-horizon-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sim-horizon-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sim-horizon-buttons {
  display: flex;
  gap: 2px;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 3px;
}
.sim-horizon-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.15s;
}
.sim-horizon-btn:hover { background: white; color: var(--axora-navy); }
.sim-horizon-btn.active {
  background: var(--axora-navy);
  color: white;
}

/* KPI strip (4 KPIs en haut) */
.sim-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 900px) {
  .sim-kpi-strip { grid-template-columns: 1fr 1fr; }
}
.sim-kpi-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
}
.sim-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.sim-kpi-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.sim-kpi-mini {
  background: #F8FAFC;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.sim-kpi-mini.best {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-color: var(--axora-orange);
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}
.sim-kpi-mini-name {
  font-size: 9px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}
.sim-kpi-mini.best .sim-kpi-mini-name { color: #92400E; }
.sim-kpi-mini-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-top: 1px;
}
.sim-kpi-mini.best .sim-kpi-mini-val { color: #78350F; }

/* Champ partagé Prix de vente */
.sim-shared-bar {
  display: grid;
  grid-template-columns: 1fr auto 2fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, var(--axora-navy), #1B2A3E);
  color: white;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .sim-shared-bar { grid-template-columns: 1fr; gap: 6px; }
}
.sim-shared-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.sim-shared-input {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  max-width: 220px;
}
.sim-shared-input input {
  border: none !important;
  background: white !important;
  color: var(--axora-navy) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-align: right;
  padding: 7px 4px 7px 12px !important;
  height: auto !important;
  flex: 1;
  min-width: 0;
}
.sim-input-suffix {
  padding: 0 12px 0 6px;
  color: #64748B;
  font-weight: 600;
  font-size: 14px;
}
.sim-shared-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Wrapper + scroll horizontal pour le tableau */
.sim-scenarios-wrapper {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.sim-scenarios-scroll {
  overflow-x: auto;
}

/* Tableau */
.sim-scenarios-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
  font-size: 12px;
}

/* Header colonnes scénarios — sticky en haut */
.sim-scenarios-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  border-bottom: 2px solid #0D1B2A;
  padding: 0;
}
.sim-header-cell {
  background: white !important;
  padding: 12px 14px !important;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  width: 38%;
}
.sim-scenario-header {
  padding: 10px 12px !important;
  width: 20.6%;
  text-align: center;
  vertical-align: top;
}
.sim-scenario-col-1 { background: linear-gradient(180deg, rgba(13, 27, 42, 0.04) 0%, transparent 100%); }
.sim-scenario-col-2 { background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, transparent 100%); }
.sim-scenario-col-3 { background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, transparent 100%); }
.sim-scenario-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-bottom: 3px;
}
.sim-scenario-col-2 .sim-scenario-title { color: #B45309; }
.sim-scenario-col-3 .sim-scenario-title { color: #065F46; }
.sim-scenario-subtitle {
  border: none;
  background: transparent;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  width: 100%;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
}
.sim-scenario-subtitle:hover,
.sim-scenario-subtitle:focus {
  background: #F8FAFC;
  color: var(--axora-navy);
}

/* Sections de séparation */
.sim-section-row td {
  background: var(--axora-navy);
  color: white;
  padding: 6px 14px !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-section-row td i { width: 13px; height: 13px; }
.sim-subsection-row td {
  background: #F1F5F9;
  color: #475569;
  padding: 5px 14px !important;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #E2E8F0;
}

/* Rows */
.sim-row td {
  padding: 6px 12px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
.sim-row:hover td:not(.sim-section-row td):not(.sim-subsection-row td) {
  background: rgba(245, 158, 11, 0.04);
}
.sim-row-label {
  font-size: 12px;
  color: #1E293B;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-row-unit {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  padding-left: 4px;
}
.sim-row-tooltip {
  color: #94A3B8;
  display: inline-flex;
  cursor: help;
}
.sim-row-tooltip:hover { color: var(--axora-orange); }
.sim-row-computed .sim-row-label { color: #475569; font-weight: 600; }
.sim-row-total td { background: #F8FAFC; }
.sim-row-emphasis td {
  background: #FEF3C7;
  font-weight: 700;
}
.sim-row-emphasis .sim-row-label { color: #78350F !important; font-weight: 700; }

/* Cellules d'input */
.sim-cell {
  text-align: center;
  padding: 5px 8px !important;
}
.sim-input {
  width: 100%;
  border: 1px solid #E2E8F0;
  background: white;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--axora-navy);
  text-align: right;
  border-radius: 5px;
  font-family: inherit;
  outline: none;
  transition: all 0.15s;
}
.sim-input:focus {
  border-color: var(--axora-orange);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}
select.sim-input {
  text-align: center;
  padding: 4px 6px;
  cursor: pointer;
}

/* Cellules computed */
.sim-cell-computed {
  font-size: 12px;
  font-weight: 700;
  color: var(--axora-navy);
  text-align: right;
  padding-right: 14px !important;
}
.sim-cell-computed.sim-pos { color: #065F46; }
.sim-cell-computed.sim-neg { color: #B91C1C; }
.sim-cell-computed.sim-neu { color: #B45309; }

.sim-row-emphasis .sim-cell-computed { color: #78350F !important; }
.sim-row-emphasis .sim-cell-computed.sim-pos { color: #065F46 !important; }
.sim-row-emphasis .sim-cell-computed.sim-neg { color: #B91C1C !important; }

/* Section AIDE À LA DÉCISION */
.sim-decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sim-decision-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
}
.sim-decision-icon {
  width: 36px;
  height: 36px;
  background: var(--axora-navy);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sim-decision-icon i { width: 16px; height: 16px; }
.sim-decision-text { flex: 1; min-width: 0; }
.sim-decision-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sim-decision-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-top: 1px;
}
.sim-decision-winner {
  background: linear-gradient(135deg, var(--axora-orange) 0%, #D97706 100%);
  color: white;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sim-decision-winner span {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.sim-recommendation {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--axora-navy) 0%, #1B2A3E 100%);
  color: white;
  border-radius: 10px;
  padding: 14px 16px;
}
.sim-recommendation i {
  width: 24px;
  height: 24px;
  color: var(--axora-orange);
}
.sim-reco-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sim-reco-text {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-top: 2px;
}
.sim-reco-text strong { color: var(--axora-orange); }

/* Responsive */
@media (max-width: 640px) {
  .sim-title { font-size: 18px; }
  .sim-header-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .sim-horizon-buttons { justify-content: center; flex-wrap: wrap; }
  .sim-kpi-strip { grid-template-columns: 1fr; }
  .sim-kpi-values { grid-template-columns: repeat(3, 1fr); }
  .sim-scenarios-table { font-size: 11px; }
  .sim-row td { padding: 5px 8px; }
}


/* ============================================================
   RESPONSIVE GLOBAL — Audit final v5
   Objectif : usage fluide sur PC, tablette, téléphone
   ============================================================ */

/* === TABLETTE (≤ 1024px) === */
@media (max-width: 1024px) {
  /* Simulation : 4 KPI strip → 2 colonnes */
  .sim-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  /* Charter : passe en 1 col */
  .charter-edit-grid { grid-template-columns: 1fr; }
  .charter-main-grid { grid-template-columns: 1fr; }
  /* Project preview : reset min-height pour éviter trop de blanc */
  .charter-preview { min-height: auto; padding: 18px 20px; }
  /* Form grids deviennent plus serrés */
  .form-grid { grid-template-columns: 1fr 1fr; }
  /* Equipe grid : 3 → 1 col à 800px (déjà fait), forcer ici */
}

/* === TABLETTE PORTRAIT / MOBILE LARGE (≤ 768px) === */
@media (max-width: 768px) {
  /* Sidebar : fixe + overlay, accès via menu hamburger */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); }
  .main-content { margin-left: 0 !important; }
  .mobile-menu-toggle { display: flex !important; }
  /* Backdrop quand sidebar ouverte */
  body.sidebar-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 39;
  }

  /* Page content : padding réduit */
  .page-content { padding: 16px 14px; }

  /* Header top : compact */
  .top-header { padding: 10px 14px; }
  .breadcrumb { font-size: 11px; }
  .search-box { display: none; }

  /* KPI grid : 1 col */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .kpi-card { padding: 12px; }
  .kpi-value { font-size: 18px !important; }
  .kpi-label { font-size: 10px !important; }

  /* Cards : padding réduit */
  .card-body { padding: 12px; }
  .card-header { padding: 10px 12px; }
  .card-title { font-size: 13px; }

  /* Forms : 1 col */
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important; /* Évite le zoom auto iOS */
  }

  /* Modal en plein écran sur mobile */
  .modal-overlay { padding: 0; }
  .modal-large {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .modal-large .modal-header { padding: 12px 14px; }
  .modal-large .modal-header h2 { font-size: 16px; }
  .modal-large .modal-body { padding: 12px 14px; }
  .modal-large .modal-footer {
    padding: 10px 14px;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    border-top: 1px solid #E2E8F0;
  }
  .modal-large .modal-footer > div { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
  .modal-large .modal-footer .btn { flex: 1; min-width: 0; padding: 8px 10px; font-size: 12px; }

  /* Tables : police plus petite, padding réduit */
  .data-table th, .data-table td { padding: 6px 8px !important; font-size: 11px; }
  .data-table-compact th, .data-table-compact td { padding: 4px 6px !important; font-size: 10px; }

  /* Boutons : touch friendly */
  .btn { padding: 9px 14px; font-size: 13px; min-height: 38px; }
  .btn-sm { padding: 7px 11px; font-size: 11px; min-height: 32px; }
  .btn-icon { width: 38px; height: 38px; min-width: 38px; }

  /* Univers cards (home) */
  .home-univers-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .univers-card { padding: 18px; }
  .univers-card h2 { font-size: 18px; }
  .univers-card p { font-size: 12px; }
  .home-content { padding: 18px 14px 30px; }
  .home-header { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .home-intro h1 { font-size: 20px; line-height: 1.2; }
  .home-intro p { font-size: 12px; }
  .home-transverse { grid-template-columns: 1fr; gap: 8px; }
  .transverse-card { padding: 12px 14px; }

  /* SIMULATION — adaptation mobile */
  .sim-title { font-size: 17px; }
  .sim-subtitle { font-size: 11px; }
  .sim-header-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .sim-horizon-buttons { justify-content: center; flex-wrap: wrap; }
  .sim-horizon-btn { padding: 6px 12px; font-size: 12px; min-width: 38px; }
  .sim-kpi-strip { grid-template-columns: 1fr; gap: 8px; }
  .sim-kpi-values { grid-template-columns: repeat(3, 1fr); }
  .sim-shared-bar { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .sim-shared-input { max-width: 100%; }
  .sim-scenarios-wrapper { border-radius: 8px; }
  .sim-scenarios-table { min-width: 580px; font-size: 11px; }
  .sim-scenarios-table .sim-row td { padding: 5px 6px; }
  .sim-scenarios-table .sim-input { font-size: 11px; padding: 4px 5px; }
  .sim-header-cell { width: 42%; padding: 10px 8px !important; font-size: 10px; }
  .sim-scenario-header { width: 19.3%; padding: 8px 4px !important; }
  .sim-scenario-title { font-size: 11px; }
  .sim-scenario-subtitle { font-size: 10px; }
  .sim-decision-grid { grid-template-columns: 1fr; }
  .sim-recommendation { padding: 12px; }
  .sim-reco-text { font-size: 13px; }

  /* PLANNING PMO — Kanban compact sur mobile */
  .planning-grid { grid-template-columns: 120px repeat(12, 45px); }
  .planning-cell { padding: 6px 4px; font-size: 9px; min-height: 44px; }
  .planning-cell.projet-name { padding-left: 8px; font-size: 10px; }

  /* GANTT */
  .gantt-projet-col { width: 120px; min-width: 120px; padding: 6px 8px; font-size: 10px; }
  .gantt-month-label { font-size: 8px; padding: 8px 4px; }
  .gantt-bar-label { font-size: 8px; }

  /* TEMPLATES */
  .templates-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .template-preview { height: 130px; }

  /* DOCUMENTS PMO */
  .pmo-phase-header { padding: 10px 12px; }
  .pmo-phase-title { font-size: 11px; }
  .pmo-phase-count { font-size: 9px; }

  /* FILTRES */
  .filter-panel { padding: 8px 10px; }
  .filter-panel-row { gap: 6px; }
  .filter-search { min-width: 100%; padding: 8px 10px !important; }
  .filter-select { min-width: 100%; flex: 1; padding: 8px 10px !important; font-size: 11px !important; }
  .filter-bar { padding: 8px 10px; gap: 6px; }
  .filter-chip { padding: 4px 9px; font-size: 11px; }

  /* DASHBOARD : grid responsive */
  .grid.grid-cols-1.lg\:grid-cols-2,
  .grid.grid-cols-1.lg\:grid-cols-3,
  .grid.grid-cols-1.lg\:grid-cols-4 { grid-template-columns: 1fr !important; gap: 12px !important; }
  .grid.grid-cols-1.xl\:grid-cols-3 { grid-template-columns: 1fr !important; }
  .grid.grid-cols-1.md\:grid-cols-2 { grid-template-columns: 1fr !important; }

  /* DASHBOARD SAFRAN-STYLE */
  .dashboard-header { padding: 12px 14px; gap: 8px; }
  .dashboard-title-block h1 { font-size: 16px; }
  .dashboard-header-stats { gap: 6px; width: 100%; }
  .header-stat { flex: 1; min-width: 0; padding: 6px 8px; }
  .header-stat-value { font-size: 14px; }
  .indicators-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .indicator-value { font-size: 18px; }
  .portfolio-block { grid-template-columns: 1fr; gap: 1px; }
  .portfolio-value { font-size: 16px; }

  /* CHARTER */
  .charter-preview { padding: 14px 12px; min-height: auto; }
  .charter-projet-titre { font-size: 18px; }
  .charter-projet-code { font-size: 9px; }
  .charter-header { flex-direction: column; gap: 10px; padding-bottom: 8px; }
  .charter-dates { width: 100%; flex-direction: column; gap: 4px; }
  .charter-date-block { width: 100%; }
  .charter-main-grid { grid-template-columns: 1fr; gap: 8px; }
  .charter-section-title { font-size: 11px; padding: 5px 10px; }
  .charter-section-body { font-size: 10px; padding: 6px 10px; }

  /* EQUIPE PROJET */
  .equipe-grid { grid-template-columns: 1fr; gap: 8px; }
  .equipe-member { padding: 10px; }
  .autres-checkbox-grid { grid-template-columns: 1fr; max-height: 200px; }

  /* TIMELINE HISTORIQUE */
  .timeline-historique { padding-left: 24px; }
  .timeline-dot { left: -22px; width: 16px; height: 16px; }
  .timeline-historique::before { left: 7px; }
  .timeline-content { padding: 8px 10px; font-size: 11px; }

  /* MAINTENANCE LINK */
  .maintenance-link-stats { grid-template-columns: repeat(2, 1fr) !important; padding: 8px; }
  .maintenance-stat .ms-value { font-size: 16px; }
  .maintenance-link-actions { flex-direction: column; }
  .maintenance-link-actions .btn { width: 100%; }

  /* JALON CHECKBOX */
  .jalon-checkbox.interactive, .jalon-checkbox.auto-done { width: 28px; height: 28px; }

  /* Phase dates editor compact */
  .phase-dates-editor { flex-direction: column; align-items: stretch; }
  .phase-dates-editor .form-input-sm { width: 100%; min-width: 0; }
}

/* === MOBILE STRICT (≤ 480px) === */
@media (max-width: 480px) {
  .page-content { padding: 12px 10px; }
  .home-logo { font-size: 22px; }
  .home-intro h1 { font-size: 18px; }
  .home-intro p { font-size: 11px; }
  .univers-card { padding: 14px; }
  .univers-card h2 { font-size: 16px; }
  .univ-stats { gap: 6px; flex-wrap: wrap; }
  .univ-stat strong { font-size: 14px; }
  .univ-stat span { font-size: 9px; }

  /* KPI : 1 col strict */
  .kpi-grid { grid-template-columns: 1fr !important; }

  /* Modal header */
  .modal-large .modal-header h2 { font-size: 14px; }
  .modal-large .modal-subtitle { font-size: 11px; }

  /* Simulation : KPI mini values plus serrés */
  .sim-kpi-mini-val { font-size: 10px; }
  .sim-kpi-mini-name { font-size: 8px; }

  /* Cards titles */
  .card-title { font-size: 12px; }

  /* Top header : breadcrumb plus court */
  .breadcrumb-univers + i + .breadcrumb-active { font-size: 12px; }
}

/* === MODE TACTILE (hover désactivé) === */
@media (hover: none) and (pointer: coarse) {
  /* Touch targets plus grands */
  .btn, .btn-sm, button { min-height: 38px; }
  .btn-icon { min-width: 38px; min-height: 38px; }
  .filter-chip { min-height: 34px; }

  /* Actions toujours visibles (pas de hover) */
  .tree-actions, .doc-folder-actions { opacity: 1 !important; }

  /* Liens et cartes : feedback visuel au tap */
  .card, .univers-card, .transverse-card, .projet-card,
  .client-card, .cdp-card, .equipe-member,
  .template-card, .sim-decision-card {
    -webkit-tap-highlight-color: rgba(245, 158, 11, 0.15);
  }
  .card:active, .univers-card:active, .projet-card:active,
  .client-card:active, .cdp-card:active, .equipe-member:active,
  .template-card:active, .sim-decision-card:active {
    transform: scale(0.985);
    transition: transform 0.1s;
  }

  /* Boutons : feedback tactile */
  .btn:active { transform: scale(0.96); }

  /* Inputs : éviter zoom iOS sur focus (font-size >= 16px déjà géré) */
  input, select, textarea {
    font-size: 16px !important;
  }
  .sim-input { font-size: 14px !important; } /* exception pour table dense */
}

/* === ORIENTATION LANDSCAPE MOBILE === */
@media (max-width: 900px) and (orientation: landscape) {
  /* Sur mobile en paysage : on garde le sidebar fermé par défaut, plus de hauteur dispo */
  .modal-large { max-height: 100vh; height: 100vh; }
}

/* === SAFE AREA (iPhone notch) === */
@supports (padding: max(0px)) {
  .top-header { padding-top: max(10px, env(safe-area-inset-top)); }
  .home-header { padding-top: max(14px, env(safe-area-inset-top)); }
  .sidebar { padding-top: env(safe-area-inset-top); }
  .modal-large { padding-bottom: env(safe-area-inset-bottom); }
}


/* ============================================================
   PROJETS IMMO — Pipeline d'acquisition (modale détail)
   ============================================================ */
.immo-phases-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.immo-phase-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 8px;
  transition: background 0.15s;
}
.immo-phase-step:hover { background: #F1F5F9; }
.immo-phase-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.immo-phase-info {
  flex: 1;
  min-width: 0;
}
.immo-phase-titre {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  line-height: 1.2;
}
.immo-phase-desc {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.4;
}
.immo-phase-livrable {
  font-size: 10px;
  color: #065F46;
  margin-top: 4px;
  font-weight: 600;
}
.immo-phase-state {
  flex-shrink: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.immo-phase-state i { width: 22px; height: 22px; }

/* Actions disponibles dans la modale projet immo */
.immo-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .immo-actions-grid { grid-template-columns: 1fr; }
}
.immo-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  font-family: inherit;
}
.immo-action-card:hover {
  border-color: var(--axora-orange);
  background: #FFFBEB;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}
.immo-action-card i {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.immo-action-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
}
.immo-action-desc {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}


/* ============================================================
   PHOTOS — Upload, drag&drop, caméra, galerie
   ============================================================ */
.photos-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photos-uploader {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photos-drop-zone {
  border: 2px dashed #CBD5E1;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  cursor: default;
}
.photos-drop-zone:hover {
  border-color: var(--axora-orange);
  background: #FFFBEB;
}
.photos-drop-zone.dragover {
  border-color: var(--axora-orange);
  background: #FEF3C7;
  transform: scale(1.005);
}
.photos-drop-zone i {
  width: 36px;
  height: 36px;
  color: #94A3B8;
}
.photos-drop-zone.dragover i { color: var(--axora-orange); }
.photos-drop-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photos-drop-text strong {
  font-size: 13px;
  color: var(--axora-navy);
}

.photos-actions-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.photos-gallery-wrap {
  min-height: 50px;
}

.photos-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #FAFAFA;
  border: 1px dashed #E2E8F0;
  border-radius: 10px;
}
.photos-empty i {
  width: 36px;
  height: 36px;
  color: #CBD5E1;
  flex-shrink: 0;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
@media (max-width: 480px) {
  .photos-grid { grid-template-columns: 1fr 1fr; }
}

.photo-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.15s;
}
.photo-card:hover {
  border-color: var(--axora-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.photo-thumb {
  height: 140px;
  background: #F1F5F9;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.photo-thumb:hover img { transform: scale(1.03); }
.photo-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #CBD5E1;
}
.photo-broken i { width: 36px; height: 36px; }

.photo-meta {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-legende-input {
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--axora-navy);
  padding: 3px 5px;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  outline: none;
}
.photo-legende-input:focus,
.photo-legende-input:hover {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
.photo-date {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 500;
}
.photo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px 6px;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFA;
}

/* Plein écran d'une photo */
.photo-fullscreen-overlay {
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 9999;
}
.photo-fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10000;
}
.photo-fullscreen-close:hover { background: rgba(255, 255, 255, 0.2); }
.photo-fullscreen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}
.photo-fullscreen-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.photo-fullscreen-caption {
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 6px;
  max-width: 600px;
}
.photo-fullscreen-actions {
  display: flex;
  gap: 8px;
}
.photo-fullscreen-actions .btn {
  background: white;
  color: var(--axora-navy);
}

/* ============================================================
   FICHE D'IDENTITÉ ÉQUIPEMENT — Asset Management
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
}
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}
.contact-card-header i {
  width: 18px;
  height: 18px;
  color: var(--axora-orange);
}
.contact-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
}
.contact-card .form-group {
  margin-bottom: 8px;
}
.contact-card .form-group:last-child {
  margin-bottom: 0;
}
.contact-card .form-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.contact-card .form-input {
  padding: 6px 10px !important;
  font-size: 12px !important;
  background: white;
}


/* ============================================================
   LOGIN SCREEN — Authentification AXORA
   ============================================================ */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 60%, #1E293B 100%);
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  font-family: 'Montserrat', sans-serif;
}

/* Décorations background subtiles */
.login-bg-decor {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.login-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  z-index: 1;
}

.login-card {
  background: white;
  border-radius: 16px;
  padding: 36px 36px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-card.shake {
  animation: login-shake 0.4s ease-in-out;
}
@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F1F5F9;
}
.login-logo {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--axora-navy);
}
.login-logo span { color: var(--axora-orange); }
.login-tagline {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-welcome {
  text-align: center;
  margin-bottom: 6px;
}
.login-welcome h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--axora-navy);
  margin: 0;
}
.login-welcome p {
  font-size: 12px;
  color: #64748B;
  margin: 4px 0 0;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.login-field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  transition: all 0.15s;
}
.login-input-wrap:focus-within {
  background: white;
  border-color: var(--axora-orange);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.login-input-wrap i {
  width: 18px;
  height: 18px;
  margin-left: 12px;
  color: #94A3B8;
  flex-shrink: 0;
}
.login-input-wrap input {
  border: none;
  background: transparent;
  padding: 12px 12px;
  font-size: 14px;
  color: var(--axora-navy);
  font-weight: 500;
  flex: 1;
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.login-input-wrap input::placeholder {
  color: #94A3B8;
}

.login-pwd-toggle {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #94A3B8;
  display: flex;
  align-items: center;
}
.login-pwd-toggle:hover { color: var(--axora-orange); }

.login-error {
  background: #FEE2E2;
  border-left: 3px solid #DC2626;
  color: #991B1B;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.login-submit {
  background: linear-gradient(135deg, var(--axora-orange) 0%, #D97706 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  font-family: inherit;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.login-submit:active { transform: translateY(0); }
.login-submit i { width: 16px; height: 16px; }

.login-hint {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
}
.login-hint i {
  width: 16px;
  height: 16px;
  color: #3B82F6;
  flex-shrink: 0;
  margin-top: 1px;
}
.login-hint-title {
  font-size: 10px;
  font-weight: 700;
  color: #1E40AF;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}
.login-hint-text {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}
.login-hint-text code {
  background: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-family: 'Monaco', monospace;
  color: #B45309;
}

.login-footer {
  text-align: center;
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: 0.3px;
}

/* Home logout button */
.home-logout-btn, .home-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  margin-left: 6px;
}
.home-logout-btn:hover, .home-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.home-icon-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FBBF24;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 24px 22px 22px; border-radius: 14px; }
  .login-logo { font-size: 26px; letter-spacing: 4px; }
  .login-welcome h1 { font-size: 16px; }
}


/* ============================================================
   USER MENU — Dropdown en haut à droite
   ============================================================ */
.user-menu-wrap {
  position: relative;
}
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #E2E8F0;
  padding: 4px 8px 4px 4px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.15s;
}
.user-menu-btn:hover {
  border-color: var(--axora-orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.user-menu-chevron {
  width: 14px;
  height: 14px;
  color: #64748B;
  transition: transform 0.2s;
}
.user-menu-wrap.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.12);
  z-index: 100;
  display: none;
  overflow: hidden;
}
.user-menu-wrap.open .user-menu-dropdown {
  display: block;
}
.user-menu-header {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #F8FAFC, white);
}
.user-menu-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  line-height: 1.2;
}
.user-menu-role {
  font-size: 11px;
  font-weight: 600;
  color: var(--axora-orange);
  margin-top: 2px;
}
.user-menu-email {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-divider {
  height: 1px;
  background: #F1F5F9;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1E293B;
  text-align: left;
  transition: background 0.12s;
}
.user-menu-item:hover {
  background: #F1F5F9;
  color: var(--axora-navy);
}
.user-menu-item i {
  width: 16px;
  height: 16px;
  color: #64748B;
}
.user-menu-item:hover i {
  color: var(--axora-orange);
}
.user-menu-danger {
  color: #B91C1C;
}
.user-menu-danger:hover {
  background: #FEF2F2;
  color: #991B1B;
}
.user-menu-danger i, .user-menu-danger:hover i {
  color: #DC2626;
}

@media (max-width: 640px) {
  .user-menu-dropdown { width: 270px; right: -10px; }
}

/* ============================================================
   CAMERA CAPTURE
   ============================================================ */
.camera-capture-modal .modal-body {
  background: #000;
  padding: 0;
}
.camera-preview-wrap {
  position: relative;
  width: 100%;
  background: #000;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-preview-wrap video {
  width: 100%;
  max-height: 70vh;
  display: block;
}
.camera-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  color: white;
  text-align: center;
  font-size: 13px;
  max-width: 400px;
}
.camera-error i {
  width: 36px;
  height: 36px;
  color: #F59E0B;
}


/* ============================================================
   KPI GRID — Layout horizontal 4 colonnes par défaut
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PROJET CARD — Mini timeline 4 dots (Lancement / Commande / Livraison / Réception)
   Ultra compact : juste 4 dots reliés par une ligne, labels en tooltip
   ============================================================ */
.projet-dots-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 8px;
  padding: 6px 4px 4px 4px;
  border-top: 1px solid #F1F5F9;
}
.projet-dot-jalon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #E2E8F0;
  border: 2px solid #CBD5E1;
  flex-shrink: 0;
  cursor: help;
  transition: transform 0.15s;
  position: relative;
}
.projet-dot-jalon:hover { transform: scale(1.5); }
/* Labels supprimés — l'attribut title= du HTML sert de tooltip natif */
.projet-dot-jalon::after { display: none; }
.projet-dot-jalon.done {
  background: #10B981;
  border-color: #10B981;
}
.projet-dot-jalon.late {
  background: #EF4444;
  border-color: #EF4444;
  animation: pulse-dot 1.5s infinite;
}
.projet-dot-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, #CBD5E1 50%, transparent 50%);
  background-size: 6px 100%;
  margin: 0 4px;
}
  background-size: 6px 2px;
  margin: 0 2px;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Adjust card body padding-bottom to make room for dot labels */
.projet-card-body { padding-bottom: 22px; }


/* ============================================================
   CONFIGURATION MÉTIER
   ============================================================ */
.config-phase-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-areas: "badge fields" "badge desc";
  gap: 8px 12px;
  padding: 10px;
  border-bottom: 1px solid #F1F5F9;
  align-items: start;
}
.config-phase-row:last-child { border-bottom: none; }
.config-phase-badge {
  grid-area: badge;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 13px;
}
.config-phase-fields {
  grid-area: fields;
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 8px;
  align-items: center;
}
@media (max-width: 720px) {
  .config-phase-fields { grid-template-columns: 1fr; }
}
.config-color-input {
  width: 48px !important;
  height: 32px !important;
  padding: 2px !important;
  cursor: pointer;
}
.config-phase-desc {
  grid-area: desc;
  font-size: 11px !important;
  padding: 6px 10px !important;
  min-height: 36px;
  resize: vertical;
}
.config-list-item {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
}
.config-list-item .form-input { flex: 1; }

/* ============================================================
   CONFIG · Phases + Libellés (admin)
   ============================================================ */
.config-phases-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.config-phase-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.config-phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: white;
}
.config-phase-code {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.25);
  padding: 4px 10px;
  border-radius: 5px;
  flex-shrink: 0;
}
.config-phase-titre-edit {
  flex: 1;
}
.config-phase-titre-edit .form-input {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: white !important;
  font-weight: 700;
  font-size: 14px;
}
.config-phase-titre-edit .form-input::placeholder { color: rgba(255,255,255,0.6); }
.config-phase-body {
  padding: 16px 18px;
}

.sous-jalons-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 4px;
}
.sous-jalon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #F8FAFC;
  border-radius: 6px;
}
.sous-jalon-idx {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--axora-navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.sous-jalon-input {
  flex: 1;
  padding: 6px 10px !important;
  font-size: 12px !important;
  background: white;
}

.libelle-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.libelle-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.libelle-input {
  flex: 1;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

/* ============================================================
   SIMULATIONS IMMO ARCHIVE — Cards
   ============================================================ */
.sim-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.sim-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--axora-orange);
}
.sim-card-header {
  padding: 14px 16px;
  color: white;
}
.sim-card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sim-card-addr {
  font-size: 11px;
  opacity: 0.9;
}
.sim-card-body {
  padding: 12px 16px;
  flex: 1;
}
.sim-card-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
}
.sim-card-row .label { color: #64748B; font-weight: 600; }
.sim-card-row .value { color: var(--axora-navy); font-weight: 700; }
.sim-card-footer {
  padding: 10px 12px;
  border-top: 1px solid #F1F5F9;
  background: #FAFAFA;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Étiquettes QR */
.etiquette-axora {
  background: white;
  border: 2px solid #0D1B2A;
  border-radius: 8px;
  overflow: hidden;
}

/* Vue araignée */
.spider-container {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 100%);
  position: relative;
  overflow: hidden;
}
.spider-container svg {
  display: block;
}
.spider-legend {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: white;
  font-size: 11px;
}
.spider-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spider-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}
.spider-node:hover circle {
  stroke-width: 3;
  filter: brightness(1.2);
}

/* ============================================================
   ISO 9001 / 9100 — Processus, Manuel, NC, Journal d'audit
   ============================================================ */
.iso-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 20px;
}
.iso-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 13px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}
.iso-tab:hover {
  color: var(--axora-navy);
  background: #F8FAFC;
}
.iso-tab.active {
  color: var(--axora-orange);
  border-bottom-color: var(--axora-orange);
  background: #FEF3C7;
}
.iso-tab-content { display: none; }
.iso-tab-content.active { display: block; }

.processus-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.processus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--axora-orange);
}
.processus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.processus-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: #0D1B2A;
  padding: 3px 10px;
  border-radius: 4px;
}
.processus-card-code {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  font-family: monospace;
}
.processus-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--axora-navy);
  margin: 0;
  line-height: 1.3;
}
.processus-card-pilote {
  font-size: 11px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.processus-card-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 4px 0;
}
.processus-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
  border-top: 1px solid #F1F5F9;
  padding-top: 8px;
  margin-top: 6px;
}
.processus-card-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.processus-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.processus-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #F8FAFC;
  border-left: 4px solid var(--axora-orange);
  border-radius: 8px;
}
.processus-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--axora-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 13px;
}
.processus-step-content {
  flex: 1;
}
.processus-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 4px;
}
.processus-step-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #475569;
  flex-wrap: wrap;
}
.processus-step-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.iso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iso-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}
.iso-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.iso-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}
.iso-tag-blue { background: #DBEAFE; color: #1E40AF; }
.iso-tag-orange { background: #FED7AA; color: #9A3412; }

/* Manuel */
.manuel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #F8FAFC, white);
  border: 1px solid #E2E8F0;
  border-radius: 12px 12px 0 0;
}
.manuel-chapitres {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manuel-chapitre {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.manuel-chapitre-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: #F8FAFC;
  transition: background 0.15s;
}
.manuel-chapitre-header:hover { background: #F1F5F9; }
.manuel-chapitre-icon {
  width: 20px;
  height: 20px;
  color: var(--axora-orange);
}
.manuel-chapitre-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--axora-orange);
}
.manuel-chapitre-titre {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--axora-navy);
  margin: 0;
}
.manuel-chapitre-chevron {
  width: 16px;
  height: 16px;
  color: #94A3B8;
  transition: transform 0.2s;
}
.manuel-chapitre-body {
  display: none;
  padding: 16px 18px 20px;
  border-top: 1px solid #F1F5F9;
}
.manuel-chapitre-body.open { display: block; }
.manuel-chapitre-body.open ~ .manuel-chapitre-chevron { transform: rotate(180deg); }
.manuel-section {
  margin-bottom: 14px;
}
.manuel-section:last-child { margin-bottom: 0; }
.manuel-section-titre {
  font-size: 12px;
  font-weight: 700;
  color: var(--axora-navy);
  margin: 0 0 4px 0;
}
.manuel-section-contenu {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   ISO 9001 / 9100 — Processus, Manuel, NC, Audit
   ============================================================ */
.iso-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.iso-tab {
  background: transparent;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}
.iso-tab:hover { color: var(--axora-navy); }
.iso-tab.active {
  color: var(--axora-navy);
  border-bottom-color: var(--axora-orange);
}
.iso-tab i { width: 16px; height: 16px; }

/* Process cards */
.process-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.process-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-color: var(--axora-orange);
}
.process-card-header {
  padding: 14px 16px;
  color: white;
}
.process-card-title {
  font-size: 15px;
  font-weight: 800;
  margin-top: 8px;
}
.process-card-pilote {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
}
.process-card-body { padding: 14px 16px; }
.process-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}
.process-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Process detail - timeline */
.process-etapes-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.etape-card {
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 12px;
  border-left: 4px solid var(--axora-orange);
}
.etape-num {
  width: 32px;
  height: 32px;
  background: var(--axora-navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.etape-content { flex: 1; }
.etape-nom {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 4px;
}
.etape-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748B;
}
.etape-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.iso-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.iso-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #1E293B;
  padding: 4px 0;
}
.iso-list li i { flex-shrink: 0; margin-top: 3px; }

/* Manuel */
.manuel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}
.manuel-chapitres {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.manuel-chapitre {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.manuel-chapitre-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #F8FAFC, white);
  transition: background 0.15s;
}
.manuel-chapitre-header:hover { background: #F1F5F9; }
.manuel-icon {
  width: 22px;
  height: 22px;
  color: var(--axora-orange);
  flex-shrink: 0;
}
.manuel-chapitre-num {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.manuel-chapitre-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-top: 2px;
}
.manuel-chevron {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  transition: transform 0.2s;
}
.manuel-chapitre.open .manuel-chevron { transform: rotate(180deg); }
.manuel-chapitre-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
}
.manuel-chapitre.open .manuel-chapitre-body {
  max-height: 2000px;
  padding: 0 18px 14px;
}
.manuel-section {
  padding: 12px 0;
  border-top: 1px solid #F1F5F9;
}
.manuel-section:first-child { border-top: none; padding-top: 4px; }
.manuel-section-titre {
  font-size: 12px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 6px;
}
.manuel-section-contenu {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

/* NC cards */
.nc-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #B91C1C;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.nc-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(185,28,28,0.1);
}
.nc-card-header { margin-bottom: 10px; }
.nc-card-titre {
  font-size: 14px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-top: 8px;
}
.nc-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nc-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.nc-card-row .label { color: #64748B; font-weight: 600; }
.nc-card-row .value { color: var(--axora-navy); font-weight: 700; }
.nc-ac {
  margin-top: 10px;
  padding: 8px 10px;
  background: #FEF3C7;
  border-radius: 6px;
  font-size: 11px;
  color: #78350F;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.nc-ac strong { color: #B45309; }

/* ============================================================
   ISO DASHBOARD — Tuiles pédagogiques
   ============================================================ */
.iso-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.iso-tile {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.iso-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.1);
  border-color: var(--axora-orange);
}
.iso-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.iso-tile-icon i {
  width: 22px;
  height: 22px;
}
.iso-tile-body {
  flex: 1;
  min-width: 0;
}
.iso-tile-iso {
  display: inline-block;
  background: #F1F5F9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.iso-tile-titre {
  font-size: 14px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-bottom: 6px;
}
.iso-tile-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 8px;
}
.iso-tile-stats {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
}


/* ============================================================
   GANTT ÉVOLUÉ — Sous-tâches modulables (drag&drop)
   ============================================================ */
.gantt-row-projet {
  background: linear-gradient(to right, #F8FAFC, white);
  border-bottom: 1px solid #E2E8F0;
  /* N5 Vague 7 — Largeur du contenu pour sticky en bout de scroll */
  width: max-content;
  min-width: 100%;
}
.gantt-row-projet .gantt-projet-col {
  font-weight: 700;
  background: #F1F5F9;
  border-right: 2px solid #CBD5E1;
}
.gantt-add-btn {
  background: transparent;
  border: 1px dashed #CBD5E1;
  color: #64748B;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 4px;
  flex-shrink: 0;
}
.gantt-add-btn:hover {
  background: var(--axora-orange);
  border-color: var(--axora-orange);
  color: white;
  transform: scale(1.1);
}

.gantt-subtasks {
  background: #FAFBFC;
  border-bottom: 1px solid #E2E8F0;
}

.gantt-row-subtask {
  display: flex;
  border-bottom: 1px solid #F1F5F9;
  /* N5 Vague 7 — Largeur du contenu pour sticky */
  width: max-content;
  min-width: 100%;
  transition: background 0.15s;
  cursor: grab;
}
.gantt-row-subtask:hover {
  background: #F1F5F9;
}
.gantt-row-subtask.gantt-dragging {
  opacity: 0.5;
  cursor: grabbing;
}
.gantt-row-subtask.gantt-drop-target {
  background: #DBEAFE;
  border-top: 2px solid #3B82F6;
}

.gantt-subtask-name {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 24px !important;
  /* V22 Vague 22 — Fond OPAQUE obligatoire pour que la colonne sticky cache la timeline en défilement */
  background: white !important;
  font-weight: 500 !important;
  /* La règle .gantt-projet-col impose déjà position:sticky;left:0;z-index:15
     Ces propriétés sont héritées car .gantt-subtask-name partage la même classe parent */
}
.gantt-row-subtask:hover .gantt-subtask-name {
  background: #F1F5F9 !important;
}
.gantt-drag-handle {
  width: 12px !important;
  height: 12px !important;
  color: #CBD5E1;
  cursor: grab;
  flex-shrink: 0;
}
.gantt-row-subtask:hover .gantt-drag-handle {
  color: #64748B;
}

.gantt-jalon-icon {
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.gantt-tache-icon {
  font-size: 12px;
  color: #8B5CF6;
  flex-shrink: 0;
}

.gantt-edit-btn {
  background: transparent;
  border: none;
  padding: 2px;
  border-radius: 3px;
  cursor: pointer;
  color: #94A3B8;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.gantt-row-subtask:hover .gantt-edit-btn {
  opacity: 1;
}
.gantt-edit-btn:hover {
  background: #F1F5F9;
  color: var(--axora-navy);
}

/* Jalon marker (losange ◆) */
.gantt-jalon-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 5;
  user-select: none;
}
.gantt-jalon-marker:hover {
  transform: translateY(-50%) scale(1.4);
}
.gantt-jalon-marker.late {
  color: #B91C1C !important;
  animation: pulse-jalon 1.5s infinite;
}
.gantt-jalon-marker.done {
  opacity: 0.6;
}
@keyframes pulse-jalon {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

.gantt-jalon-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: #64748B;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 600;
}

/* Sous-tâche barre */
.gantt-subtask-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
  overflow: hidden;
}
.gantt-subtask-bar:hover {
  transform: translateY(-50%) scaleY(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.gantt-subtask-bar.done {
  opacity: 0.65;
}

/* Modal d'ajout tâche projet — radio cards */
.tache-type-radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: white;
}
.tache-type-radio:hover {
  border-color: #94A3B8;
}
.tache-type-radio.active {
  border-color: var(--axora-orange);
  background: #FEF3C7;
}
.tache-type-radio input {
  margin: 0;
}
.tache-type-icon {
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Couleur picker */
.couleur-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.couleur-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
}
.couleur-option:hover {
  transform: scale(1.15);
}
.couleur-option.active {
  border-color: var(--axora-navy);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--axora-navy);
}

/* ============================================================
   BUDGET & DÉPENSES — Section dans fiche projet (3 niveaux)
   ============================================================ */
.budget-depenses-section {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}

.budget-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 1024px) {
  .budget-kpis { grid-template-columns: repeat(2, 1fr); }
}
.budget-kpi {
  background: linear-gradient(135deg, #F8FAFC, white);
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
  position: relative;
}
.budget-kpi.inactive {
  opacity: 0.55;
}
.budget-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.budget-kpi-val {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.budget-kpi-sub {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 6px;
  font-weight: 500;
}

.commande-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FEF3C7, #FED7AA);
  border: 1px solid #F59E0B;
  border-radius: 8px;
  margin-bottom: 16px;
}

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

.tranches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tranche-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  align-items: center;
  transition: all 0.15s;
}
.tranche-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.tranche-card.tranche-paid {
  background: linear-gradient(to right, #F0FDF4, white);
  border-color: #BBF7D0;
}

.tranche-card-left {
  flex: 1;
  min-width: 0;
}
.tranche-card-titre {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}
.tranche-jalon-pill {
  background: #F1F5F9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.tranche-card-dates {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: #64748B;
  flex-wrap: wrap;
}
.tranche-card-dates span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tranche-card-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tranche-card-amounts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}
.tranche-amount-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 1px 0;
}
.tranche-amount-row.dim {
  opacity: 0.4;
}
.tranche-amount-row.paid {
  font-weight: 700;
  color: #065F46;
}
.tranche-amount-label {
  font-weight: 600;
  color: #64748B;
}
.tranche-amount-val {
  font-weight: 700;
  color: var(--axora-navy);
}

.tranche-card-actions {
  display: flex;
  gap: 4px;
}

.tranches-total {
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  background: #F8FAFC;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  align-items: center;
}

.supplements-list {
  margin-top: 16px;
  padding: 12px;
  background: #FEF2F2;
  border-left: 3px solid #DC2626;
  border-radius: 6px;
}
.supplement-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #FECACA;
}
.supplement-mini-row:last-of-type {
  border-bottom: none;
}
.supplement-dot {
  color: #DC2626;
  font-size: 16px;
  animation: pulse-jalon 2s infinite;
}

/* Mobile */
@media (max-width: 768px) {
  .tranche-card {
    flex-direction: column;
    align-items: stretch;
  }
  .tranche-card-right {
    flex-direction: column;
    align-items: stretch;
  }
  .tranche-card-actions {
    justify-content: flex-end;
  }
}

/* ============================================================
   COMPTEUR D'ENRICHISSEMENT LIVE
   ============================================================ */
.enrichment-counter-card {
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 50%, #0D9488 100%);
  border-radius: 14px;
  padding: 24px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.25);
}
.enrichment-counter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.enrichment-counter-card.enrichment-empty {
  background: #F8FAFC;
  color: #475569;
  border: 1px dashed #CBD5E1;
  box-shadow: none;
}

.enrichment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  gap: 16px;
}

.enrichment-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.enrichment-title i {
  width: 20px;
  height: 20px;
}

.enrichment-subtitle {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.enrichment-rate {
  text-align: right;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.enrichment-rate-label {
  font-size: 9px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.enrichment-rate-val {
  font-size: 18px;
  font-weight: 800;
  color: #F59E0B;
  line-height: 1.2;
  margin: 2px 0;
}

.enrichment-total {
  text-align: center;
  padding: 18px 0;
  margin-bottom: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}
.enrichment-total-label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.enrichment-total-val {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #FBBF24, #F59E0B, #FBBF24);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.enrichment-streams {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .enrichment-streams {
    grid-template-columns: 1fr;
  }
}

.enrichment-stream {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}
.enrichment-stream:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.enrichment-stream-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.enrichment-stream-icon i {
  width: 16px;
  height: 16px;
  color: white;
}
.stream-capital .enrichment-stream-icon { background: rgba(59, 130, 246, 0.3); }
.stream-plusvalue .enrichment-stream-icon { background: rgba(16, 185, 129, 0.3); }
.stream-cashflow .enrichment-stream-icon { background: rgba(245, 158, 11, 0.3); }

.enrichment-stream-body {
  flex: 1;
  min-width: 0;
}
.enrichment-stream-label {
  font-size: 10px;
  opacity: 0.75;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.3;
}
.enrichment-stream-val {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: 2px;
}
.enrichment-stream-rate {
  font-size: 10px;
  opacity: 0.65;
  font-weight: 600;
}

.enrichment-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

.enrichment-pulse {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================================
   DÉPENSES & TRAVAUX SUR BIEN IMMOBILIER
   ============================================================ */
.depense-kpi {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.depense-kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.depense-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1;
}
.depense-kpi-sub {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
}

.depenses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.depense-card {
  display: flex;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.depense-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.depense-card-cat {
  width: 5px;
  flex-shrink: 0;
}

.depense-card-body {
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
}

.depense-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.depense-card-titre {
  font-size: 14px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.depense-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
}
.depense-card-meta i {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-right: 2px;
}

.depense-cat-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.depense-card-amount {
  text-align: right;
  flex-shrink: 0;
}
.depense-card-amount-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1.1;
}
.depense-card-amount-date {
  font-size: 10px;
  color: #10B981;
  margin-top: 2px;
  font-weight: 600;
}

.depense-card-notes {
  margin-top: 8px;
  padding: 6px 8px;
  background: #F8FAFC;
  border-radius: 4px;
  font-size: 11px;
  color: #64748B;
  font-style: italic;
  line-height: 1.4;
}

.depense-card-delete {
  align-self: center;
  margin-right: 8px;
  opacity: 0;
  color: #DC2626;
  transition: opacity 0.15s;
}
.depense-card:hover .depense-card-delete {
  opacity: 1;
}

/* Mobile */
@media (max-width: 640px) {
  .depense-card-top {
    flex-direction: column;
  }
  .depense-card-amount {
    text-align: left;
  }
}

/* PDF dans la galerie photos */
.photo-pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #FEF2F2;
  padding: 12px;
  border-radius: 6px;
}

/* Loading spinner pour les thumbnails async */
.photo-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #F8FAFC;
  color: #94A3B8;
}
.photo-loading i, .spin {
  animation: spin 1s linear infinite;
  width: 18px;
  height: 18px;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   ALERTES — Badge home + panneau
   ============================================================ */
.home-alerts-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white;
  padding: 10px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
  z-index: 100;
  transition: all 0.2s;
  animation: alertPulse 2s infinite;
}
.home-alerts-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.4);
}
.home-alerts-badge .alerts-count {
  background: white;
  color: #B91C1C;
  border-radius: 20px;
  padding: 1px 7px;
  font-weight: 800;
}
.home-alerts-badge .alerts-label {
  font-size: 11px;
  font-weight: 600;
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: 0 6px 28px rgba(220, 38, 38, 0.55), 0 0 0 8px rgba(220, 38, 38, 0.1); }
}

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-left: 4px solid;
  border-radius: 8px;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.alert-item:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  transform: translateX(2px);
}
.alert-icon { flex-shrink: 0; }
.alert-icon i { width: 22px; height: 22px; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { font-size: 13px; font-weight: 700; color: var(--axora-navy); margin-bottom: 2px; }
.alert-desc { font-size: 11px; color: #64748B; }
.alert-chevron { width: 16px; height: 16px; color: #CBD5E1; flex-shrink: 0; }

/* ============================================================
   ONBOARDING — Modal de bienvenue
   ============================================================ */
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .onboarding-grid { grid-template-columns: 1fr; }
}
.onboarding-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  align-items: flex-start;
}
.onboarding-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.onboarding-icon i {
  color: white;
  width: 20px;
  height: 20px;
}
.onboarding-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 4px;
}
.onboarding-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* ============================================================
   PITCH MARKETING — Animation de présentation
   Storytelling 50s : Problème → Solution → Preuve → CTA
   ============================================================ */

/* Split-screen login : pitch à gauche, formulaire à droite */
.login-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(380px, 0.9fr);
  gap: 0;
  max-width: 1200px;
  width: 95%;
  max-height: 96vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

@media (max-width: 880px) {
  .login-split {
    grid-template-columns: 1fr;
    max-height: none;
    border-radius: 16px;
  }
  .login-pitch {
    min-height: 380px;
  }
}

.login-pitch {
  position: relative;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 40%, #0D9488 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
}

/* Effet lumière en arrière-plan */
.login-pitch::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  pointer-events: none;
  animation: pitchFloat 12s ease-in-out infinite;
}
.login-pitch::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 60%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
  animation: pitchFloat 14s ease-in-out infinite reverse;
}
@keyframes pitchFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

.pitch-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.pitch-stage.fading {
  opacity: 0;
}

/* Toutes les scènes */
.pitch-scene {
  width: 100%;
  max-width: 540px;
  text-align: center;
  animation: pitchSceneIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes pitchSceneIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCÈNE 1 — Hook */
.pitch-logo-big {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: white;
  line-height: 1;
  animation: pitchLogoIn 1.2s ease-out;
}
.pitch-logo-big span {
  color: #F59E0B;
  display: inline-block;
  animation: pitchLogoO 1.5s ease-out 0.3s both;
}
@keyframes pitchLogoIn {
  from { opacity: 0; transform: scale(0.7); letter-spacing: 0.3em; }
  to { opacity: 1; transform: scale(1); letter-spacing: -0.04em; }
}
@keyframes pitchLogoO {
  0% { transform: rotateY(180deg) scale(2); color: white; }
  100% { transform: rotateY(0) scale(1); color: #F59E0B; }
}
.pitch-tagline-1 {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pitchFadeIn 1s ease 0.8s both;
}
.pitch-sub-1 {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  color: white;
  animation: pitchFadeIn 1s ease 1.5s both;
}

@keyframes pitchFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCÈNE 2 — Chaos */
.pitch-q {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  color: white;
}
.pitch-q-solution {
  color: #F59E0B;
  font-size: 26px;
}

.pitch-chaos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}
.chaos-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(8px);
}
.chaos-item i {
  width: 24px;
  height: 24px;
  color: #F59E0B;
}
.chaos-1 { animation: chaosShake 4s ease 0.5s both; }
.chaos-2 { animation: chaosShake 4s ease 0.7s both; }
.chaos-3 { animation: chaosShake 4s ease 0.9s both; }
.chaos-4 { animation: chaosShake 4s ease 1.1s both; }
.chaos-5 { animation: chaosShake 4s ease 1.3s both; }
.chaos-6 { animation: chaosShake 4s ease 1.5s both; }
@keyframes chaosShake {
  0% { opacity: 0; transform: scale(0) rotate(-15deg); }
  30% { opacity: 1; transform: scale(1) rotate(2deg); }
  40% { transform: rotate(-2deg); }
  50% { transform: rotate(1deg); }
  60% { transform: rotate(-1deg); }
  85% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0.3; transform: scale(0.85) rotate(8deg); filter: blur(2px); }
}

.pitch-stop {
  margin-top: 18px;
  font-size: 18px;
  color: white;
  animation: pitchFadeIn 0.6s ease 4.5s both;
}
.pitch-stop strong {
  color: #F59E0B;
}

/* SCÈNE 3 — Les 3 univers */
.pitch-universes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .pitch-universes { grid-template-columns: 1fr; }
}
.universe-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 20px 14px;
  backdrop-filter: blur(8px);
  text-align: center;
  opacity: 0;
}
.universe-card:nth-child(1) { animation: cardSlide 0.6s ease 0.3s forwards; }
.universe-card:nth-child(2) { animation: cardSlide 0.6s ease 0.8s forwards; }
.universe-card:nth-child(3) { animation: cardSlide 0.6s ease 1.3s forwards; }
@keyframes cardSlide {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.universe-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.3);
}
.universe-card.universe-immo .universe-icon { background: rgba(16, 185, 129, 0.35); }
.universe-card.universe-pmo .universe-icon { background: rgba(59, 130, 246, 0.35); }
.universe-card.universe-asset .universe-icon { background: rgba(245, 158, 11, 0.35); }
.universe-icon i {
  width: 26px;
  height: 26px;
  color: white;
}
.universe-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.universe-desc {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 600;
  line-height: 1.4;
}

/* SCÈNE 4 — Compteur live */
.pitch-counter-block {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
}
.counter-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 12px;
}
.counter-val {
  font-size: 56px;
  font-weight: 900;
  color: #FBBF24;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}
.counter-sub {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.pitch-mini-kpis {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  animation: pitchFadeIn 1s ease 3s both;
}
.mini-kpi {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mini-kpi-v {
  font-size: 20px;
  font-weight: 800;
  color: #10B981;
}
.mini-kpi-l {
  font-size: 10px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* SCÈNE 5 — Features */
.pitch-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.feature-row {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  opacity: 0;
  transform: translateX(-30px);
}
.feature-1 { animation: featureIn 0.5s ease 0.2s forwards; }
.feature-2 { animation: featureIn 0.5s ease 0.9s forwards; }
.feature-3 { animation: featureIn 0.5s ease 1.6s forwards; }
.feature-4 { animation: featureIn 0.5s ease 2.3s forwards; }
@keyframes featureIn {
  to { opacity: 1; transform: translateX(0); }
}
.feature-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-ico i {
  color: white;
  width: 22px;
  height: 22px;
}
.feature-t {
  font-size: 15px;
  font-weight: 800;
  color: white;
}
.feature-d {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 2px;
}

/* SCÈNE 6 — CTA final */
.pitch-final-logo {
  font-size: 100px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: finalLogo 1.2s ease;
}
.pitch-final-logo span {
  color: #F59E0B;
}
@keyframes finalLogo {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.pitch-final-h {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  opacity: 0.9;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
  animation: pitchFadeIn 1s ease 0.6s both;
}
.pitch-final-arrow {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  color: white;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
  animation: ctaPulse 2s ease 1.2s infinite, pitchFadeIn 1s ease 1.2s both;
}
.pitch-final-arrow i {
  width: 18px;
  height: 18px;
  animation: arrowShake 1.5s ease infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 10px 40px rgba(245, 158, 11, 0.7); transform: translateY(-2px); }
}
@keyframes arrowShake {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Controls bar */
.pitch-controls {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}
.pitch-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.pitch-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.pitch-btn i {
  width: 14px;
  height: 14px;
}

.pitch-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}
.pitch-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  border-radius: 4px;
  transition: width 0.2s linear;
}

/* Overlay pitch sur la home */
.pitch-overlay {
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(8px);
}
.pitch-overlay-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  max-height: 700px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 40%, #0D9488 100%);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.pitch-overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.pitch-overlay-close:hover {
  background: rgba(220, 38, 38, 0.7);
}
.pitch-overlay-close i {
  width: 18px;
  height: 18px;
}
.pitch-overlay-container .pitch-stage {
  flex: 1;
}


/* ============================================================
   JALONS PORTFOLIO — Vue transverse par nature
   ============================================================ */
.jalons-nature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.jalon-nature-tile {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  align-items: center;
}
.jalon-nature-tile:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.jalon-nature-tile.active {
  border-color: var(--axora-orange);
  background: #FFFBEB;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}
.jalon-nature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jalon-nature-icon i {
  color: white;
  width: 18px;
  height: 18px;
}
.jalon-nature-body { flex: 1; min-width: 0; }
.jalon-nature-titre {
  font-size: 12px;
  font-weight: 700;
  color: var(--axora-navy);
  margin-bottom: 2px;
  line-height: 1.2;
}
.jalon-nature-stats { font-size: 11px; color: #64748B; }

.jalon-nature-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}

.text-success { color: #10B981; }
.text-danger { color: #DC2626; font-weight: 700; }
.text-warning { color: #F59E0B; font-weight: 600; }
.text-muted { color: #94A3B8; }

/* ============================================================
   PITCH V2 — ANIMATION ULTRA-DYNAMIQUE
   Mouvement permanent, transitions cinématiques, beat visuel
   ============================================================ */

/* SCÈNE 1 — Logo explosif avec particules */
.pitch-v2-1 {
  position: relative;
  overflow: hidden;
}

.pitch-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.4), transparent 70%);
  animation: pitchFlash 1.4s ease-out;
  pointer-events: none;
}
@keyframes pitchFlash {
  0% { opacity: 0; transform: scale(0); }
  20% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(2.5); }
}

.pitch-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pitch-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #FBBF24, transparent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  animation: particleBurst 2.5s ease-out forwards;
}
.pitch-particles span:nth-child(1) { --angle: 0deg; }
.pitch-particles span:nth-child(2) { --angle: 36deg; animation-delay: 0.05s; }
.pitch-particles span:nth-child(3) { --angle: 72deg; animation-delay: 0.1s; }
.pitch-particles span:nth-child(4) { --angle: 108deg; animation-delay: 0.15s; }
.pitch-particles span:nth-child(5) { --angle: 144deg; animation-delay: 0.2s; }
.pitch-particles span:nth-child(6) { --angle: 180deg; animation-delay: 0.25s; }
.pitch-particles span:nth-child(7) { --angle: 216deg; animation-delay: 0.3s; }
.pitch-particles span:nth-child(8) { --angle: 252deg; animation-delay: 0.35s; }
.pitch-particles span:nth-child(9) { --angle: 288deg; animation-delay: 0.4s; }
.pitch-particles span:nth-child(10) { --angle: 324deg; animation-delay: 0.45s; }
@keyframes particleBurst {
  0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-280px) scale(0); opacity: 0; }
}

.pitch-logo-explode {
  position: relative;
  z-index: 2;
  font-size: clamp(56px, 12vw, 110px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: logoExplode 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pitch-logo-explode .logo-o-spin {
  color: #F59E0B;
  display: inline-block;
  animation: logoOSpin 2.5s ease-in-out;
}
@keyframes logoExplode {
  0% { opacity: 0; transform: scale(0.2); filter: blur(20px); }
  50% { opacity: 1; transform: scale(1.15); filter: blur(0); }
  100% { transform: scale(1); }
}
@keyframes logoOSpin {
  0% { transform: rotateY(0) scale(1); }
  40% { transform: rotateY(720deg) scale(1.4); color: #FBBF24; }
  100% { transform: rotateY(720deg) scale(1); color: #F59E0B; }
}

.pitch-tagline-v2 {
  margin-top: 18px;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #F59E0B);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite, fadeInUp 0.8s ease 1s both;
}
.pitch-strike {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 0.8s ease 1.8s both;
}
.pitch-strike-big {
  margin-top: 20px;
  font-size: clamp(48px, 9vw, 80px);
  font-weight: 900;
  color: #DC2626;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
  animation: strikeBoom 1s ease 3.5s both;
}
@keyframes strikeBoom {
  0% { opacity: 0; transform: scale(2); filter: blur(15px); }
  50% { transform: scale(1.05); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCÈNE 2 — Chaos avec glitch */
.pitch-v2-2 {
  position: relative;
}
.pitch-glitch-q {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: white;
  margin-bottom: 22px;
  animation: glitchIn 0.5s ease;
}
@keyframes glitchIn {
  0% { opacity: 0; transform: translateX(-30px); }
  20% { transform: translateX(30px); opacity: 0.5; }
  40% { transform: translateX(-15px); opacity: 0.8; }
  60% { transform: translateX(8px); opacity: 1; }
  100% { transform: translateX(0); }
}

.pitch-chaos-v2 {
  position: relative;
  height: 220px;
  margin-bottom: 16px;
}
.chaos-bubble {
  position: absolute;
  background: rgba(220, 38, 38, 0.18);
  border: 1.5px solid rgba(220, 38, 38, 0.5);
  border-radius: 50px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: bubblePop 4.2s ease-out forwards;
}
.chaos-bubble i { width: 16px; height: 16px; color: #FCA5A5; }

.bubble-1 { top: 5%; left: 8%; animation-delay: 0.2s; }
.bubble-2 { top: 18%; right: 5%; animation-delay: 0.6s; }
.bubble-3 { top: 38%; left: 25%; animation-delay: 1s; }
.bubble-4 { top: 55%; right: 15%; animation-delay: 1.4s; }
.bubble-5 { bottom: 18%; left: 12%; animation-delay: 1.8s; }
.bubble-6 { bottom: 5%; right: 8%; animation-delay: 2.2s; }

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0) rotate(-15deg); }
  20% { opacity: 1; transform: scale(1.1) rotate(3deg); }
  30% { transform: scale(1) rotate(-2deg); }
  85% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.5) translateY(20px); filter: blur(4px); }
}

/* SCÈNE 3 — UN. SEUL. COCKPIT. */
.pitch-v2-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pitch-bigword-1, .pitch-bigword-2, .pitch-bigword-3 {
  font-size: clamp(48px, 10vw, 86px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
}
.pitch-bigword-1 { animation: bigwordSlam 0.6s ease 0.1s forwards; }
.pitch-bigword-2 { animation: bigwordSlam 0.6s ease 0.9s forwards; color: #F59E0B; }
.pitch-bigword-3 { animation: bigwordSlam 0.6s ease 1.7s forwards; color: #10B981; }
@keyframes bigwordSlam {
  0% { opacity: 0; transform: scale(3) translateY(-100px); filter: blur(20px); }
  50% { opacity: 1; transform: scale(0.9); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.pitch-v2-3 .pitch-strike {
  animation-delay: 2.8s !important;
}

/* SCÈNE 4 — Universes avec gros chiffres */
.pitch-q-v2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: white;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease;
}
.pitch-q-gold {
  background: linear-gradient(90deg, #FBBF24, #F59E0B);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pitch-universes-v2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 460px;
  margin: 0 auto 8px;
}

/* ============================================================
   V37 — Pitch : rupture projet↔maintenance, cycle de vie, mobilité
   ============================================================ */
.pitch-divorce {
  display: flex; align-items: stretch; justify-content: center; gap: 0;
  max-width: 540px; margin: 18px auto; animation: pitchFadeIn 0.7s ease both;
}
.divorce-side {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px; padding: 16px 14px; text-align: center;
}
.divorce-side i { width: 30px; height: 30px; margin-bottom: 8px; }
.divorce-projet i { color: #38BDF8; }
.divorce-maint i { color: #FBBF24; }
.divorce-role { font-weight: 800; font-size: 15px; color: #fff; margin-bottom: 6px; }
.divorce-act { font-size: 11px; line-height: 1.4; color: rgba(255,255,255,0.7); }
.divorce-wall {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 6px; flex-shrink: 0;
}
.divorce-wall-icon { font-size: 26px; animation: wallShake 2s ease-in-out infinite; }
.divorce-wall-text { font-size: 9px; color: #F87171; text-transform: uppercase; font-weight: 700; letter-spacing: 0.04em; margin-top: 4px; }
@keyframes wallShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

.lifecycle-track {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  max-width: 560px; margin: 24px auto; flex-wrap: nowrap;
}
.lc-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 84px; opacity: 0; animation: lcPop 0.5s ease forwards; }
.lc-1 { animation-delay: 0.1s; } .lc-2 { animation-delay: 0.5s; } .lc-3 { animation-delay: 0.9s; } .lc-4 { animation-delay: 1.3s; } .lc-5 { animation-delay: 1.7s; }
.lc-step i { width: 22px; height: 22px; color: #fff; }
.lc-step span { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.85); text-align: center; }
.lc-dot { width: 14px; height: 14px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,0.25); }
.lc-line { flex: 1; height: 3px; background: linear-gradient(90deg, #F59E0B, rgba(245,158,11,0.3)); margin-top: 6px; min-width: 14px; opacity: 0; animation: lcLine 0.4s ease forwards; }
.lifecycle-track .lc-line:nth-of-type(2) { animation-delay: 0.4s; }
.lifecycle-track .lc-line:nth-of-type(4) { animation-delay: 0.8s; }
.lifecycle-track .lc-line:nth-of-type(6) { animation-delay: 1.2s; }
.lifecycle-track .lc-line:nth-of-type(8) { animation-delay: 1.6s; }
@keyframes lcPop { from { opacity: 0; transform: translateY(10px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes lcLine { from { opacity: 0; } to { opacity: 1; } }

.handshake-stage { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 14px; }
.hs-person { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hs-projet { animation: hsLeft 1s ease both; }
.hs-maint { animation: hsRight 1s ease both; }
.hs-avatar { font-size: 40px; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255,255,255,0.2); }
.hs-name { font-weight: 800; font-size: 13px; color: #fff; }
.hs-hands i { width: 40px; height: 40px; color: #FBBF24; animation: hsPulse 1.4s ease-in-out infinite; }
.handshake-flow { max-width: 460px; margin: 0 auto; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); text-align: center; }
.handshake-flow strong { color: #FBBF24; }
@keyframes hsLeft { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hsRight { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hsPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.devices-stage { display: flex; align-items: flex-end; justify-content: center; gap: 22px; margin: 28px auto 16px; }
.device { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; animation: lcPop 0.6s ease forwards; }
.device-desktop { animation-delay: 0.1s; }
.device-tablet { animation-delay: 0.4s; }
.device-phone { animation-delay: 0.7s; }
.device i { color: #38BDF8; }
.device-desktop i { width: 52px; height: 52px; }
.device-tablet i { width: 40px; height: 40px; }
.device-phone i { width: 28px; height: 28px; }
.device span { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.8); }

@media (max-width: 640px) {
  .pitch-universes-v2 { grid-template-columns: 1fr; }
  .lifecycle-track { transform: scale(0.82); }
  .pitch-divorce { flex-direction: column; gap: 8px; }
}

/* ============================================================
   V40 — Pitch : textes plus grands + nouvelles scènes
   (STOP cockpit, tout type de projet, mini-flowchart)
   ============================================================ */
/* Titres et tag de scène — version LARGE */
.pitch-q-mid {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  color: white;
  margin-bottom: 22px;
  line-height: 1.15;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}
.pitch-strike-mid {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 18px;
  line-height: 1.4;
  text-align: center;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.pitch-strike-mid strong { color: #FBBF24; font-weight: 800; }

/* Scène TYPES — 4 cartes XL */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 18px auto;
}
.type-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: typePop 0.55s ease forwards;
}
.type-appro { animation-delay: 0.1s; border-color: rgba(13,27,42,0.6); background: rgba(13,27,42,0.35); }
.type-indus { animation-delay: 0.3s; border-color: rgba(234,88,12,0.6); background: rgba(234,88,12,0.25); }
.type-amelio { animation-delay: 0.5s; border-color: rgba(16,185,129,0.6); background: rgba(16,185,129,0.25); }
.type-maint { animation-delay: 0.7s; border-color: rgba(220,38,38,0.6); background: rgba(220,38,38,0.25); }
.type-icon-big { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.type-name { font-weight: 900; font-size: 13px; color: white; letter-spacing: 0.03em; }
.type-desc { font-size: 11px; color: rgba(255,255,255,0.7); margin-top: 4px; font-family: monospace; font-weight: 700; }
@keyframes typePop { to { opacity: 1; transform: none; } }

/* Mini-flowchart : 5 phases reliées par une ligne continue */
.mini-flowchart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 28px auto;
  padding: 0 6px;
}
.mfc-line {
  position: absolute;
  top: 50%;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, #EA580C, #F59E0B);
  z-index: 1;
  transform: translateY(-50%);
  animation: mfcLine 1.2s ease forwards;
  transform-origin: left;
}
@keyframes mfcLine { from { transform: translateY(-50%) scaleX(0); } to { transform: translateY(-50%) scaleX(1); } }
.mfc-phase {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: mfcPop 0.4s ease forwards;
}
.mfc-1 { animation-delay: 0.2s; } .mfc-2 { animation-delay: 0.6s; }
.mfc-3 { animation-delay: 1.0s; } .mfc-4 { animation-delay: 1.4s; } .mfc-5 { animation-delay: 1.8s; }
.mfc-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #F59E0B;
  color: #0D1B2A;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 4px 10px rgba(0,0,0,0.2);
}
.mfc-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); }
@keyframes mfcPop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* Élargir les autres textes du pitch V37 (poignée de main, devices, etc.) */
.handshake-flow { font-size: clamp(14px, 1.8vw, 17px); }
.divorce-act { font-size: clamp(12px, 1.4vw, 14px); }
.divorce-role { font-size: clamp(15px, 1.8vw, 18px); }
.device span { font-size: 12px; }

@media (max-width: 640px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .mini-flowchart { transform: scale(0.8); }
  .mfc-label { font-size: 9px; }
}
@media (max-width: 640px) {
  .pitch-universes-v2 { grid-template-columns: 1fr; }
}
.univ-card-v2 {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px 12px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px) scale(0.85);
}
.univ-card-v2:nth-child(1) { animation: cardSlamV2 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards; }
.univ-card-v2:nth-child(2) { animation: cardSlamV2 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards; }
.univ-card-v2:nth-child(3) { animation: cardSlamV2 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
@keyframes cardSlamV2 {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.univ-immo-v2 { border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.1); }
.univ-pmo-v2 { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.1); }
.univ-asset-v2 { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.1); }

.univ-emoji-v2 {
  font-size: 36px;
  margin-bottom: 8px;
}
.univ-num {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.univ-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* SCÈNE 5 — Money shot mega */
.pitch-v2-5 {
  text-align: center;
}
.pitch-counter-mega {
  position: relative;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
  border: 3px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  padding: 30px 24px;
  margin: 18px 0;
  overflow: hidden;
}
.counter-mega-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.5);
  animation: counterPulse 1.8s ease-in-out infinite;
}
@keyframes counterPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 80px rgba(245, 158, 11, 0.7); }
}
.counter-mega-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}
.counter-mega-val {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #FBBF24;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
}

.pitch-counter-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.counter-row {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-30px);
}
.counter-row-1 { animation: rowSlide 0.5s ease 0.4s forwards; }
.counter-row-2 { animation: rowSlide 0.5s ease 0.7s forwards; }
.counter-row-3 { animation: rowSlide 0.5s ease 1s forwards; }
@keyframes rowSlide {
  to { opacity: 1; transform: translateX(0); }
}
.cr-ico { font-size: 22px; flex-shrink: 0; }
.cr-lbl { flex: 1; text-align: left; font-size: 12px; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.cr-val { font-size: 16px; font-weight: 800; color: #10B981; font-variant-numeric: tabular-nums; }

/* SCÈNE 6 — Trust cards */
.pitch-trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .pitch-trust-row { grid-template-columns: repeat(2, 1fr); }
}
.trust-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
  opacity: 0;
}
.trust-card i {
  width: 28px;
  height: 28px;
  color: #FBBF24;
  margin-bottom: 8px;
}
.trust-1 { animation: trustFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards; }
.trust-2 { animation: trustFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards; }
.trust-3 { animation: trustFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards; }
.trust-4 { animation: trustFlip 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s forwards; }
@keyframes trustFlip {
  0% { opacity: 0; transform: rotateY(90deg) scale(0.5); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}
.trust-t {
  font-size: 14px;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
}
.trust-d {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* SCÈNE 7 — CTA final */
.pitch-v2-7 {
  text-align: center;
}
.pitch-final-logo-v2 {
  font-size: clamp(70px, 14vw, 120px);
  font-weight: 900;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
  animation: finalSlamV2 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pitch-final-logo-v2 span {
  color: #F59E0B;
  animation: logoOSpin 2s ease-in-out 1s;
  display: inline-block;
}
@keyframes finalSlamV2 {
  0% { opacity: 0; transform: scale(0.3) rotateZ(-20deg); }
  60% { transform: scale(1.1) rotateZ(2deg); }
  100% { opacity: 1; transform: scale(1) rotateZ(0); }
}

.pitch-final-claim {
  margin-top: 20px;
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  color: white;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease 0.8s both;
}
.claim-highlight {
  background: linear-gradient(90deg, #F59E0B, #EF4444, #F59E0B);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 2s linear infinite;
  font-weight: 900;
}

.pitch-final-cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  border-radius: 60px;
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5);
  cursor: pointer;
  animation: ctaMegaPulse 1.5s ease infinite, fadeInUp 0.8s ease 1.5s both;
}
.pitch-final-cta i {
  width: 22px;
  height: 22px;
  animation: arrowShake 1.2s ease infinite;
}
@keyframes ctaMegaPulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5); transform: scale(1); }
  50% { box-shadow: 0 12px 60px rgba(245, 158, 11, 0.9), 0 0 0 12px rgba(245, 158, 11, 0.15); transform: scale(1.03); }
}

/* ============================================================
   CENTRE DE FORMATION — Catalogue de modules
   ============================================================ */
.formation-progress-bar {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
}
.formation-progress-track {
  height: 8px;
  background: #F1F5F9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.formation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 8px;
  transition: width 0.4s ease;
}
.formation-progress-label {
  font-size: 12px;
  color: var(--axora-gray);
}
.formation-progress-label strong { color: #10B981; font-size: 14px; }

.formation-category {
  margin-bottom: 32px;
}
.formation-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cat-color, #94A3B8);
}
.formation-cat-titre {
  font-size: 18px;
  font-weight: 800;
  color: var(--axora-navy);
}
.formation-cat-desc {
  font-size: 12px;
  color: var(--axora-gray);
  margin-top: 2px;
}
.formation-cat-stat {
  font-size: 13px;
  font-weight: 800;
  color: var(--cat-color, #94A3B8);
  background: white;
  border: 2px solid var(--cat-color, #94A3B8);
  padding: 6px 12px;
  border-radius: 50px;
}

.formation-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.formation-module-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.formation-module-card:hover {
  border-color: var(--cat-color, #94A3B8);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.formation-module-card.is-watched {
  background: #F0FDF4;
  border-color: #10B981;
}

.formation-module-thumb {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formation-module-play {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.formation-module-card:hover .formation-module-play {
  transform: scale(1.1);
}
.formation-module-play i {
  width: 22px;
  height: 22px;
  color: var(--cat-color, #1E40AF);
  margin-left: 3px;
}
.formation-module-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.formation-module-check i { width: 14px; height: 14px; }

.formation-module-duree {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.formation-module-body {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.formation-module-titre {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
  line-height: 1.3;
  flex: 1;
  margin-bottom: 8px;
}
.formation-module-meta {
  display: flex;
  gap: 6px;
}
.formation-niveau {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ============================================================
   LECTEUR DE SCREENCAST
   ============================================================ */
.screencast-overlay {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.screencast-container {
  position: relative;
  width: 92%;
  max-width: 760px;
  background: linear-gradient(135deg, #0D1B2A 0%, #1B2A3E 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.screencast-header {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.screencast-title {
  font-size: 17px;
  font-weight: 800;
}
.screencast-subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}
.screencast-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.screencast-close:hover { background: rgba(220, 38, 38, 0.7); }
.screencast-close i { width: 16px; height: 16px; }

.screencast-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  min-height: 320px;
  transition: opacity 0.25s ease;
}
.screencast-stage.fading { opacity: 0; }

.screencast-step {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .screencast-step {
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
  }
}

.screencast-visual {
  background: white;
  border-radius: 12px;
  padding: 16px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.screencast-text {
  padding: 8px;
}
.screencast-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #F59E0B;
  margin-bottom: 8px;
}
.screencast-text-content {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.screencast-bottom {
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.screencast-step-num {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.8;
  min-width: 50px;
}
.screencast-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.screencast-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  width: 0%;
  border-radius: 4px;
}
.screencast-controls {
  display: flex;
  gap: 8px;
}
.screencast-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.screencast-btn:hover { background: rgba(255, 255, 255, 0.2); }
.screencast-btn-primary {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: #10B981;
}
.screencast-btn-primary:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}
.screencast-btn i { width: 14px; height: 14px; }

/* ============================================================
   SCREENCAST MOCK ELEMENTS (visuels animés)
   ============================================================ */
.sc-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #F59E0B 30%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: scCursorPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #F59E0B;
  z-index: 5;
}
@keyframes scCursorPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px white, 0 0 0 4px #F59E0B; }
  50% { transform: scale(1.3); box-shadow: 0 0 0 2px white, 0 0 0 8px rgba(245, 158, 11, 0.4); }
}
.sc-cursor-inline {
  display: inline-block;
  position: relative;
  margin-left: 8px;
  vertical-align: middle;
  width: 14px;
  height: 14px;
}
.sc-cursor-onbtn {
  bottom: -4px;
  right: -4px;
}
.sc-cursor-onform {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

/* Logo burst */
.sc-logo-burst {
  font-size: 56px;
  font-weight: 900;
  color: var(--axora-navy);
  letter-spacing: -0.04em;
  animation: scLogoBurst 1s ease-out;
}
.sc-logo-burst span {
  color: #F59E0B;
  display: inline-block;
  animation: scLogoSpin 1.5s ease-out;
}
@keyframes scLogoBurst {
  0% { opacity: 0; transform: scale(0.3); filter: blur(10px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes scLogoSpin {
  0% { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}

/* Cards 3 univers */
.sc-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.sc-card {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px 10px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.sc-card-active {
  background: #FFFBEB;
  border-color: #F59E0B;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}
.sc-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--axora-navy);
}

/* Sidebar mock */
.sc-mock-sidebar {
  background: var(--axora-navy);
  border-radius: 8px;
  padding: 8px;
  width: 100%;
  max-width: 220px;
}
.sc-sb-logo {
  color: #F59E0B;
  font-weight: 900;
  font-size: 14px;
  padding: 8px 12px;
  letter-spacing: 0.05em;
}
.sc-sb-item {
  color: rgba(255, 255, 255, 0.7);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 2px;
  position: relative;
}
.sc-sb-active {
  background: #F59E0B;
  color: white;
}

/* Button mock */
.sc-mock-btn {
  position: relative;
  display: inline-block;
}
.sc-fake-btn {
  background: #F59E0B;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  cursor: default;
}
.sc-fake-btn-danger {
  background: #DC2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Form mock */
.sc-mock-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.sc-input-mock {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: #94A3B8;
}
.sc-input-label {
  font-weight: 600;
}

/* Tabs mock */
.sc-mock-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 0;
}
.sc-tab {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  position: relative;
}
.sc-tab-active {
  color: #F59E0B;
  border-color: #F59E0B;
  background: #FFFBEB;
}

/* KPI mock */
.sc-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.sc-kpi {
  background: #F8FAFC;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.sc-kpi strong { color: var(--axora-navy); font-size: 14px; }
.sc-kpi-blue { background: #DBEAFE; }
.sc-kpi-blue strong { color: #1E40AF; }
.sc-kpi-orange { background: #FEF3C7; }
.sc-kpi-orange strong { color: #B45309; }
.sc-kpi-green { background: #DCFCE7; }
.sc-kpi-green strong { color: #065F46; }

/* Tuiles natures */
.sc-mock-tuiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}
.sc-tuile {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  color: #475569;
}
.sc-tuile-active {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #B45309;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

/* Matrice P×I */
.sc-mock-matrice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sc-matrice-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 2px;
}
.sc-matrice-cell {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
}
.sc-matrice-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--axora-gray);
}

/* PDF mock */
.sc-mock-pdf {
  background: white;
  border: 1px solid #E2E8F0;
  padding: 14px;
  width: 100%;
  max-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-radius: 4px;
}
.sc-pdf-header {
  background: var(--axora-navy);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 10px;
  margin: -14px -14px 12px;
  border-radius: 4px 4px 0 0;
}
.sc-pdf-line {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  margin-bottom: 6px;
}
.sc-pdf-line.short { width: 60%; }

/* QR mock */
.sc-mock-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sc-qr {
  display: grid;
  grid-template-columns: repeat(8, 8px);
  gap: 0;
  background: white;
  padding: 6px;
  border-radius: 4px;
}
.sc-qr-px { width: 8px; height: 8px; }
.sc-qr-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--axora-navy);
}

/* Gantt mock */
.sc-mock-gantt {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-gantt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.sc-gantt-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--axora-navy);
  width: 70px;
  flex-shrink: 0;
}
.sc-gantt-bar {
  height: 16px;
  border-radius: 3px;
  position: relative;
}

/* Check final */
.sc-check {
  color: #10B981;
}
.sc-check i {
  width: 90px;
  height: 90px;
  animation: scCheckPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes scCheckPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Icons big */
.sc-icon-big i {
  width: 80px;
  height: 80px;
}

/* CTA final */
.sc-cta-final {
  text-align: center;
}
.sc-cta-logo {
  font-size: 48px;
  font-weight: 900;
  color: var(--axora-navy);
  letter-spacing: -0.04em;
}
.sc-cta-text {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #F59E0B;
}

/* Topbar / mobile */
.sc-mock-topbar {
  width: 100%;
  background: var(--axora-navy);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.sc-tb-logo {
  color: #F59E0B;
  font-weight: 900;
  font-size: 14px;
}
.sc-tb-spacer { flex: 1; }
.sc-tb-btn {
  background: rgba(255,255,255,0.15);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.sc-mock-mobile {
  width: 180px;
  background: white;
  border: 2px solid #1E293B;
  border-radius: 18px;
  padding: 6px;
}
.sc-mob-bar {
  background: var(--axora-navy);
  color: white;
  padding: 10px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-mob-burger { font-size: 18px; }
.sc-mob-logo { color: #F59E0B; font-weight: 900; }
.sc-mock-generic {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   SCREENCAST MOCKS — Spécifiques immobilier
   ============================================================ */
.sc-mock-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.sc-scenario {
  border: 2px solid;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.sc-scenario-cons { background: #F0FDF4; border-color: #10B981; }
.sc-scenario-cible { background: #FFFBEB; border-color: #F59E0B; transform: scale(1.05); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2); }
.sc-scenario-aud { background: #FEE2E2; border-color: #DC2626; }
.sc-sc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}
.sc-sc-val {
  font-size: 22px;
  font-weight: 900;
  margin: 4px 0;
}
.sc-scenario-cons .sc-sc-val { color: #10B981; }
.sc-scenario-cible .sc-sc-val { color: #F59E0B; }
.sc-scenario-aud .sc-sc-val { color: #DC2626; }
.sc-sc-sub {
  font-size: 9px;
  color: #94A3B8;
  font-weight: 600;
}

.sc-mock-counter {
  background: linear-gradient(135deg, #0D1B2A, #0D9488);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: white;
  width: 100%;
}
.sc-counter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 8px;
}
.sc-counter-val {
  font-size: 36px;
  font-weight: 900;
  color: #FBBF24;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  animation: scCounterPulse 1.5s ease infinite;
}
@keyframes scCounterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.sc-counter-sub {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 600;
}

.sc-mock-credit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-credit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-credit-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--axora-navy);
  width: 130px;
  flex-shrink: 0;
}
.sc-credit-bar {
  flex: 1;
  height: 12px;
  background: #F1F5F9;
  border-radius: 6px;
  overflow: hidden;
}
.sc-credit-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 6px;
}
.sc-credit-pct {
  font-size: 11px;
  font-weight: 800;
  color: #10B981;
  width: 36px;
  text-align: right;
}

.sc-mock-indexation {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.sc-idx-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
}
.sc-idx-new {
  background: #DCFCE7;
  border-color: #10B981;
}
.sc-idx-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
}
.sc-idx-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--axora-navy);
}
.sc-idx-new .sc-idx-val { color: #065F46; }
.sc-idx-arrow {
  color: #94A3B8;
  font-size: 18px;
}
.sc-idx-formula {
  font-size: 11px;
  color: #F59E0B;
  font-weight: 700;
  font-style: italic;
}

/* ============================================================
   ACTIONS PROJET (MoM) — Suivi de réunions
   ============================================================ */

/* Mini-grille KPI dans la fiche projet */
.actions-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .actions-summary-grid { grid-template-columns: repeat(2, 1fr); }
}
.action-kpi {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.action-kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--axora-navy);
  line-height: 1;
  margin-bottom: 4px;
}
.action-kpi-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Table des actions */
.actions-table tbody tr {
  transition: background 0.15s;
}
.actions-table tbody tr:hover {
  background: #F8FAFC;
}

/* V14 Vague 14 — Cellule Commentaires & suivis (multilignes, éditable au double-clic) */
.action-suivis-cell {
  cursor: pointer;
  padding: 6px 8px !important;
  transition: background 0.15s;
  min-width: 260px;
  max-width: 360px;
  position: relative;
}
.action-suivis-cell:hover {
  background: #FEF3C7 !important;
  outline: 2px dashed #F59E0B;
  outline-offset: -2px;
}
.suivis-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.suivi-line {
  background: #F8FAFC;
  border-left: 2px solid #0D9488;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.35;
}
.suivi-meta {
  display: block;
  color: #0D9488;
  font-weight: 700;
  font-size: 9px;
  font-family: monospace;
  margin-bottom: 1px;
}
.suivi-text {
  color: #0D1B2A;
  white-space: pre-wrap;
  word-break: break-word;
}
.suivi-add-btn {
  display: none;
}
.action-suivis-cell:hover .suivi-add-btn {
  display: inline-flex;
}

.action-row-closed {
  background: #F8FAFC !important;
  opacity: 0.55;
}
.action-row-closed td {
  color: #94A3B8;
}
.action-row-closed .badge {
  opacity: 0.7;
}
.action-row-closed td:nth-child(4) > div:first-child {
  text-decoration: line-through;
}

.action-row-overdue {
  background: #FEF2F2 !important;
}
.action-row-overdue:hover {
  background: #FEE2E2 !important;
}

.action-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #10B981;
}

.action-circonstance-pill {
  display: inline-block;
  background: #E0F2FE;
  color: #075985;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================================
   LICENCE & ABONNEMENT
   ============================================================ */
.license-status-card {
  border-left: 5px solid;
  margin-bottom: 24px;
}
.license-status-card.license-demo { border-color: #F59E0B; }
.license-status-card.license-active { border-color: #10B981; }

.license-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .license-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.license-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.license-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--axora-navy);
  line-height: 1;
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
}
.alert-banner i { width: 18px; height: 18px; flex-shrink: 0; }
.alert-banner-danger { background: #FEE2E2; color: #991B1B; border-left: 4px solid #DC2626; }
.alert-banner-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid #F59E0B; }

/* PRICING PLANS */
.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
  padding-top: 16px;
}
@media (max-width: 900px) {
  .pricing-plans-grid { grid-template-columns: 1fr; }
}

.pricing-plan {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
}
.pricing-plan-header {
  border-radius: 10px 10px 0 0;
}
.pricing-plan:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.pricing-plan-featured {
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}
.pricing-plan-current {
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.pricing-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 14px;
  letter-spacing: 0.05em;
  z-index: 5;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.pricing-plan-header {
  padding: 20px;
  color: white;
  text-align: center;
}
.pricing-plan-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.pricing-plan-tagline {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 4px;
  font-weight: 500;
}
.pricing-plan-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pricing-price {
  text-align: center;
  margin-bottom: 6px;
}
.pricing-amount {
  font-size: 36px;
  font-weight: 900;
  color: var(--axora-navy);
  letter-spacing: -0.03em;
}
.pricing-period {
  font-size: 13px;
  color: #64748B;
  font-weight: 600;
}
.pricing-setup {
  text-align: center;
  font-size: 12px;
  color: #64748B;
  background: #F8FAFC;
  padding: 6px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--axora-navy);
  border-bottom: 1px solid #F1F5F9;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-feature-muted {
  opacity: 0.5;
}
.pricing-feature-muted i { color: #94A3B8 !important; }

.pricing-current-badge {
  background: linear-gradient(135deg, #10B981, #34D399);
  color: white;
  text-align: center;
  font-weight: 800;
  padding: 10px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
}

.pricing-addons {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 16px;
  border-left: 4px solid #0D9488;
}
.pricing-addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .pricing-addons-grid { grid-template-columns: 1fr; }
}
.pricing-addon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  font-size: 13px;
}
.pricing-addon i {
  width: 22px;
  height: 22px;
  color: #0D9488;
  flex-shrink: 0;
}

/* BANDEAU MODE DÉMO */
.demo-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  z-index: 999;
  max-width: 95%;
  animation: demoBannerSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes demoBannerSlideUp {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.demo-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}
.demo-banner-content > i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.demo-banner-btn {
  background: white;
  color: #B45309;
  border: none;
  padding: 6px 12px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s;
}
.demo-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.demo-banner-btn i { width: 13px; height: 13px; }
.demo-banner-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.demo-banner-close:hover { background: rgba(0,0,0,0.2); }
.demo-banner-close i { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .demo-banner-content { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* ============================================================
   MODE VIEWER (lecture seule)
   ============================================================ */

/* Bandeau permanent en haut de page */
.viewer-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #3B82F6, #60A5FA);
  color: white;
  padding: 10px 20px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  animation: viewerBannerSlideDown 0.4s ease-out;
}
@keyframes viewerBannerSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.viewer-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  max-width: 1400px;
  margin: 0 auto;
}
.viewer-banner-content > i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.viewer-banner-content > span {
  flex: 1;
}
.viewer-banner-btn {
  background: white;
  color: #1E40AF;
  border: none;
  padding: 7px 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.viewer-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.viewer-banner-btn i { width: 14px; height: 14px; }

/* Décale le contenu pour ne pas être masqué par le bandeau */
body.is-viewer-mode {
  padding-top: 50px;
}
body.is-viewer-mode .demo-banner {
  display: none;  /* le viewer voit déjà le bandeau viewer */
}

/* ============================================================
   MASQUAGE DES BOUTONS DE MODIFICATION POUR LES VIEWERS
   On cible tous les boutons "+ Nouveau", "Modifier", "Supprimer",
   "Enregistrer" via leur texte et/ou icône Lucide
   ============================================================ */
body.is-viewer-mode .btn-primary[onclick*="open"][onclick*="Modal"],
body.is-viewer-mode .btn-primary[onclick*="add"],
body.is-viewer-mode .btn-primary[onclick*="new"],
body.is-viewer-mode .btn-primary[onclick*="create"],
body.is-viewer-mode .btn-primary[onclick*="save"],
body.is-viewer-mode .btn-primary[onclick*="Save"],
body.is-viewer-mode .btn[onclick*="delete"],
body.is-viewer-mode .btn[onclick*="Delete"],
body.is-viewer-mode .btn[onclick*="remove"],
body.is-viewer-mode .btn[onclick*="confirmDelete"],
body.is-viewer-mode .btn-primary[onclick*="franchirJalon"],
body.is-viewer-mode .btn-primary[onclick*="valider"],
body.is-viewer-mode .btn[onclick*="marquerPay"],
body.is-viewer-mode .btn-icon[onclick*="edit"],
body.is-viewer-mode .btn-icon[onclick*="Edit"],
body.is-viewer-mode .btn-ghost[onclick*="delete"],
body.is-viewer-mode .btn-ghost[onclick*="Delete"] {
  display: none !important;
}

/* Désactive les inputs sauf ceux de connexion et changement de mot de passe */
body.is-viewer-mode .modal-body input:not([type="password"]):not([type="search"]),
body.is-viewer-mode .modal-body textarea,
body.is-viewer-mode .modal-body select {
  pointer-events: none;
  background: #F8FAFC !important;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Garder pleinement actifs : recherche, filtres, mot de passe, login */
body.is-viewer-mode input[type="search"],
body.is-viewer-mode .filter-select,
body.is-viewer-mode input[type="password"],
body.is-viewer-mode #loginScreen input,
body.is-viewer-mode #changePasswordModal input {
  pointer-events: auto !important;
  background: white !important;
  cursor: text !important;
  opacity: 1 !important;
}

/* Badge "MODE LECTURE" en filigrane sur les fiches */
body.is-viewer-mode .modal-large::before {
  content: '👁 LECTURE SEULE';
  position: absolute;
  top: 12px;
  right: 60px;
  background: rgba(59, 130, 246, 0.1);
  color: #1E40AF;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  z-index: 10;
}

/* Modale upgrade : pas le badge LECTURE dessus */
body.is-viewer-mode .modal-large.no-viewer-badge::before {
  display: none;
}

/* ============================================================
   FORMULAIRE — Sélecteur de niveau d'accès (3 cartes)
   ============================================================ */
.access-level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .access-level-grid { grid-template-columns: 1fr; }
}
.access-level-card {
  position: relative;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.access-level-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.access-level-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}
.access-level-card.is-selected,
.access-level-card:has(input:checked) {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.access-level-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.access-level-icon i { width: 22px; height: 22px; }
.access-level-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-bottom: 2px;
}
.access-level-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.access-level-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* ============================================================
   CARTE D'IDENTITÉ DES ÉQUIPEMENTS
   ============================================================ */
.identite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.identite-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.identite-card:hover {
  border-color: #F59E0B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.identite-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
}
.identite-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--axora-navy);
  line-height: 1.3;
  margin-bottom: 2px;
}
.identite-card-sub {
  font-size: 12px;
  color: #64748B;
  font-weight: 500;
}
.identite-card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.identite-card-icon i {
  width: 22px;
  height: 22px;
  color: #B45309;
}

.identite-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.identite-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}
.identite-row .lbl {
  color: #64748B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
}
.identite-row .val {
  color: var(--axora-navy);
  font-weight: 600;
  text-align: right;
}

/* ============================================================
   APERÇU ACTIONS DANS FICHE PROJET
   ============================================================ */
.actions-preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 4px;
}
.action-preview-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: white;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.action-preview-row:hover {
  background: #FEF3C7;
  transform: translateX(2px);
}
.action-preview-crit {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.action-preview-body {
  flex: 1;
  min-width: 0;
}
.action-preview-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-navy);
  margin-bottom: 3px;
  line-height: 1.3;
}
.action-preview-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}
.action-preview-meta span {
  white-space: nowrap;
}

/* ============================================================
   PLAN DE MAINTENANCE — Layout 2 colonnes (arbo + détail)
   ============================================================ */
.pm-toggle {
  display: inline-flex;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.pm-toggle-btn {
  background: transparent;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.pm-toggle-btn:hover { background: white; color: var(--axora-navy); }
.pm-toggle-btn.is-active {
  background: white;
  color: var(--axora-navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pm-toggle-btn i { width: 14px; height: 14px; }

.pm-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  min-height: 600px;
}
@media (max-width: 1024px) {
  .pm-layout { grid-template-columns: 1fr; }
}

.pm-arbo-col {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow: hidden;
}
.pm-arbo-header {
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13px;
  font-weight: 800;
  color: var(--axora-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
}
.pm-arbo-header i { width: 16px; height: 16px; color: #F59E0B; }
.pm-arbo-tree {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

/* Nœuds */
.pm-node {
  margin: 1px 0;
}
.pm-node-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.1s;
}
.pm-node-row:hover { background: #F1F5F9; }
.pm-node.is-selected > .pm-node-row {
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
}
.pm-node-toggle {
  width: 14px;
  text-align: center;
  font-size: 10px;
  color: #64748B;
  flex-shrink: 0;
}
.pm-node-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.pm-node-label {
  flex: 1;
  color: var(--axora-navy);
  cursor: pointer;
  word-break: break-word;
}
.pm-node-label:hover { color: #F59E0B; }
.pm-node-badge {
  background: #10B981;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}
.pm-node-children {
  padding-left: 18px;
  border-left: 1px dashed #E2E8F0;
  margin-left: 7px;
}
.pm-node-zone > .pm-node-row .pm-node-icon { color: #3B82F6; }
.pm-node-cellule > .pm-node-row .pm-node-icon { color: #F59E0B; }
.pm-node-install > .pm-node-row .pm-node-icon { color: #10B981; }
.pm-node-dec > .pm-node-row .pm-node-icon { color: #8B5CF6; }
.pm-node-cpt > .pm-node-row .pm-node-icon { color: #64748B; }

/* Colonne droite */
.pm-detail-col {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px;
  max-height: 80vh;
  overflow-y: auto;
}
.pm-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F1F5F9;
  gap: 12px;
  flex-wrap: wrap;
}
.pm-taches-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-tache-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid;
  border-radius: 8px;
  padding: 12px 14px;
}
.pm-tache-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pm-tache-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}
.pm-tache-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--axora-navy);
  line-height: 1.4;
}
.pm-tache-cond {
  font-size: 11px;
  color: #92400E;
  background: #FEF3C7;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 6px;
  display: inline-block;
}
.pm-tache-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748B;
  margin-top: 6px;
}

/* Articles dans détail */
.pm-articles-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-article-row {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s;
}
.pm-article-row:hover {
  border-color: #F59E0B;
  background: #FFFBEB;
}

/* Cards de stratégie (modal) */
.pm-strat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.pm-strat-card {
  position: relative;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.pm-strat-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pm-strat-card:hover { border-color: #CBD5E1; background: #F8FAFC; }
.pm-strat-card.is-selected,
.pm-strat-card:has(input:checked) {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.pm-strat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 6px;
}
.pm-strat-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--axora-navy);
  margin-bottom: 4px;
}
.pm-strat-desc {
  font-size: 11px;
  color: #64748B;
  line-height: 1.4;
}

/* Tableau croisé (vue cellule) */
.pm-pivot-table tbody tr.pm-pivot-grp-start td {
  border-top: 2px solid #F59E0B;
}
.pm-pivot-grp {
  background: #FFFBEB;
  vertical-align: top;
  font-weight: 700;
  border-right: 2px solid #F59E0B;
}

/* Arborescence Zone (page asset-arborescence) */
.tree-zone-node {
  margin-bottom: 16px;
}
.tree-zone-node > .tree-node-header {
  background: #F0F9FF !important;
  border-left: 4px solid #3B82F6;
  padding: 12px 14px;
}

/* ============================================================
   TRIAL SYSTEM — Badge header + bandeau expired + page checkout
   ============================================================ */

/* Badge essai en haut à droite */
.trial-badge {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 999;
  background: linear-gradient(135deg, #10B981, #34D399);
  color: white;
  padding: 8px 12px 8px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: trialBadgeIn 0.4s ease-out;
}
@keyframes trialBadgeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.trial-badge.trial-warn {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}
.trial-badge.trial-urgent {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  animation: pulseUrgent 2s ease infinite;
}
@keyframes pulseUrgent {
  0%, 100% { box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(220, 38, 38, 0.65); }
}
.trial-badge > i {
  width: 22px;
  height: 22px;
}
.trial-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.trial-badge-title {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trial-badge-days {
  font-size: 13px;
  font-weight: 800;
}
.trial-badge-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.trial-badge-btn:hover {
  background: rgba(255,255,255,0.3);
}
.trial-badge-btn i { width: 12px; height: 12px; }

/* Si trial actif on décale légèrement la sidebar pour ne pas masquer le badge */
@media (max-width: 700px) {
  .trial-badge {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
  }
  .trial-badge > i { width: 18px; height: 18px; }
  .trial-badge-days { font-size: 11px; }
}

/* Bandeau trial expiré (au-dessus du contenu) */
.trial-expired-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: white;
  padding: 12px 20px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  animation: trialBannerIn 0.4s ease-out;
}
@keyframes trialBannerIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.trial-expired-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.trial-expired-content > i {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.trial-expired-content > span {
  flex: 1;
}
.trial-expired-btn {
  background: white;
  color: #991B1B;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.trial-expired-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.trial-expired-btn i { width: 14px; height: 14px; }

body.is-trial-expired {
  padding-top: 50px;
}
body.is-trial-expired .demo-banner,
body.is-trial-expired .viewer-banner {
  display: none;
}

/* Plan rows dans modal expired */
.trial-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.trial-plan-row:hover {
  border-color: #F59E0B;
  background: #FFFBEB;
}
.trial-plan-featured {
  border-color: #F59E0B;
  background: #FFFBEB;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .checkout-plans { grid-template-columns: 1fr; }
}

.checkout-plan-card {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.checkout-plan-card:hover {
  border-color: #CBD5E1;
}
.checkout-plan-card.is-selected {
  border-color: #F59E0B;
  background: #FFFBEB;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.cpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cpc-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--axora-navy);
}
.cpc-price span {
  font-size: 10px;
  color: #64748B;
  font-weight: 500;
}
.cpc-desc {
  font-size: 11px;
  color: #64748B;
}

.checkout-users-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .checkout-billing { grid-template-columns: 1fr; }
}
.checkout-billing-opt {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}
.checkout-billing-opt:hover {
  border-color: #CBD5E1;
}
.checkout-billing-opt.is-selected {
  border-color: #F59E0B;
  background: #FFFBEB;
}

.checkout-summary-card {
  position: sticky;
  top: 80px;
}
.checkout-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.cs-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}
.cs-row-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--axora-navy);
  padding-top: 14px;
  margin-top: 6px;
  border-top: 2px solid #F1F5F9;
}

.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: #F0F9FF;
  border-radius: 8px;
  margin-bottom: 16px;
}
.ct-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #075985;
}
.ct-item i {
  width: 14px;
  height: 14px;
  color: #3B82F6;
}

/* ============================================================
   CONFIGURATION MÉTIER — Hub central de paramétrage
   ============================================================ */

/* Onglets */
.config-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.config-tab {
  background: transparent;
  border: none;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  border-radius: 6px 6px 0 0;
}
.config-tab:hover {
  background: #F8FAFC;
  color: #0D1B2A;
}
.config-tab.is-active {
  color: #F59E0B;
  border-bottom-color: #F59E0B;
  background: rgba(245, 158, 11, 0.05);
}
.config-tab i {
  width: 16px;
  height: 16px;
}

/* Onglet phases — grille sous-jalons */
.config-sousjalons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}
.config-sj-phase {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.config-sj-phase-header {
  color: white;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.config-sj-phase-header strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.config-sj-phase-header .text-xs {
  flex: 1;
  font-size: 12px;
}
.config-sj-count {
  background: rgba(255,255,255,0.25);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}
.config-sj-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}
.config-sj-empty {
  font-size: 12px;
  color: #94A3B8;
  font-style: italic;
  padding: 14px;
  text-align: center;
}
.config-sj-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.config-sj-idx {
  background: #F1F5F9;
  color: #64748B;
  font-weight: 700;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.config-sj-input {
  flex: 1;
  font-size: 12px !important;
}
.config-sj-phase .btn-outline {
  margin: 0 10px 10px;
  width: calc(100% - 20px);
  justify-content: center;
}

/* Onglet maintenance */
.config-strat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}
.config-strat-row:last-child { border-bottom: none; }
.config-strat-icon {
  font-size: 22px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.config-period-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
}
.config-period-row:last-child { border-bottom: none; }

/* Liste simple */
.config-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid #F8FAFC;
}
.config-list-item:last-child { border-bottom: none; }
.config-list-item input {
  flex: 1;
}

/* Color input slim */
.config-color-input {
  width: 44px !important;
  min-width: 44px !important;
  padding: 2px !important;
  height: 32px !important;
  cursor: pointer;
}

/* Phase row (titre / description / couleur) */
.config-phase-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
}
.config-phase-row:last-child { border-bottom: none; }
.config-phase-badge {
  color: white;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 0;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}
.config-phase-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}
.config-phase-desc {
  grid-column: 2;
  font-size: 12px !important;
  min-height: 50px;
  resize: vertical;
}

@media (max-width: 700px) {
  .config-phase-row { grid-template-columns: 1fr; }
  .config-phase-fields { grid-template-columns: 1fr; }
  .config-phase-desc { grid-column: 1; }
}

/* REX modal — checklist sous-jalons */
.rex-sj-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.rex-sj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #F8FAFC;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.rex-sj-item:hover {
  background: #F1F5F9;
  border-color: #E2E8F0;
}
.rex-sj-cb {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #10B981;
}
.rex-sj-cb:checked ~ .rex-sj-text {
  text-decoration: line-through;
  color: #94A3B8;
}
.rex-sj-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

/* ============================================================
   SCREENCAST PLAYER REFONDU — Intro, Outro, Sous-titres, Audio
   ============================================================ */

/* Header refondu avec catégorie */
.screencast-cat-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
  opacity: 0.85;
}

.screencast-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.screencast-icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.screencast-icon-btn i { width: 16px; height: 16px; }

/* Stage : maintenant pleine largeur, plus de 2 colonnes */
.screencast-stage {
  min-height: 380px !important;
}
.screencast-step {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}
.screencast-visual {
  width: 100%;
  min-height: 280px;
}

/* Sous-titres style "Netflix" */
.screencast-subtitles {
  padding: 14px 30px 18px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: white;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 100%);
  min-height: 70px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.screencast-subtitles.subtitle-hidden {
  opacity: 0;
  transform: translateY(8px);
}
@media (max-width: 640px) {
  .screencast-subtitles {
    font-size: 14px;
    padding: 12px 20px 14px;
  }
}

/* ===== INTRO ANIMÉE ===== */
.sc-intro {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sc-intro::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, var(--sc-color, #0D9488)15 0%, transparent 60%);
  animation: sc-intro-pulse 3s ease-in-out infinite;
}
@keyframes sc-intro-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

.sc-intro-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  animation: sc-intro-logo-in 1s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards;
}
@keyframes sc-intro-logo-in {
  0% { opacity: 0; transform: scale(0.5) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.sc-intro-logo-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--sc-color, #0D9488)60 0%, transparent 70%);
  filter: blur(20px);
  animation: sc-intro-glow 2s ease-in-out infinite;
  z-index: 0;
}
@keyframes sc-intro-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.sc-intro-logo-text {
  position: relative;
  z-index: 1;
  font-size: 56px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #0D1B2A;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.sc-intro-logo-text span {
  color: var(--sc-color, #0D9488);
  display: inline-block;
  animation: sc-intro-o-rotate 4s linear infinite;
}
@keyframes sc-intro-o-rotate {
  to { transform: rotate(360deg); }
}

.sc-intro-cat {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--sc-color, #0D9488);
  margin-bottom: 8px;
  animation: sc-intro-fade-up 0.6s ease 0.4s backwards;
}
.sc-intro-titre {
  position: relative;
  font-size: 24px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  max-width: 460px;
  animation: sc-intro-fade-up 0.6s ease 0.6s backwards;
}
.sc-intro-line {
  position: relative;
  width: 60px;
  height: 3px;
  background: var(--sc-color, #0D9488);
  border-radius: 2px;
  animation: sc-intro-line-grow 0.5s ease 0.8s backwards;
}
@keyframes sc-intro-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sc-intro-line-grow {
  from { width: 0; opacity: 0; }
  to { width: 60px; opacity: 1; }
}

/* ===== OUTRO ===== */
.sc-outro {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
}

.sc-outro-check {
  margin-bottom: 16px;
  animation: sc-outro-check-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards;
}
@keyframes sc-outro-check-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.sc-outro-circle {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: sc-outro-draw-circle 0.8s ease-out 0.1s forwards;
}
@keyframes sc-outro-draw-circle {
  to { stroke-dashoffset: 0; }
}
.sc-outro-check-path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: sc-outro-draw-check 0.4s ease-out 0.7s forwards;
}
@keyframes sc-outro-draw-check {
  to { stroke-dashoffset: 0; }
}

.sc-outro-titre {
  font-size: 28px;
  font-weight: 800;
  color: #0D1B2A;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  animation: sc-intro-fade-up 0.5s ease 1.1s backwards;
}
.sc-outro-soustitre {
  font-size: 15px;
  color: var(--sc-color, #0D9488);
  font-weight: 600;
  margin-bottom: 16px;
  animation: sc-intro-fade-up 0.5s ease 1.3s backwards;
}
.sc-outro-cta {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 18px;
  font-style: italic;
  animation: sc-intro-fade-up 0.5s ease 1.5s backwards;
}
.sc-outro-logo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94A3B8;
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
  animation: sc-intro-fade-up 0.5s ease 1.7s backwards;
}
.sc-outro-logo span {
  color: var(--sc-color, #0D9488);
}

/* Bottom : compteur d'étape plus visible */
.screencast-step-num {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  min-width: 90px;
  text-align: center;
}

/* ============================================================
   LECTEUR FORMATION — V2 PROFESSIONNELLE
   ============================================================ */

/* Container avec ombre douce + bord */
.screencast-container {
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset !important;
}

/* Container en pause : voile très discret pour signaler */
.screencast-container.is-paused .screencast-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
  z-index: 5;
}

/* Header */
.sc-header-info {
  flex: 1;
  min-width: 0;
}
.sc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.screencast-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-niveau-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sc-replay-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Stage : position relative pour pause overlay */
.screencast-stage {
  position: relative;
}

/* Bottom : layout en 3 zones */
.screencast-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.sc-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sc-play-pause {
  background: rgba(255,255,255,0.18) !important;
  width: 38px !important;
  height: 38px !important;
}
.sc-play-pause:hover {
  background: rgba(255,255,255,0.3) !important;
}
.screencast-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.screencast-icon-btn:disabled:hover {
  background: rgba(255,255,255,0.1);
}

.screencast-progress {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.screencast-progress-bar {
  height: 100%;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 2px;
}

.screencast-controls {
  display: flex;
  gap: 8px;
}
.screencast-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(245, 158, 11, 0.4) !important;
}
.sc-valid-ready {
  animation: sc-valid-pulse 2s ease-in-out infinite;
}
@keyframes sc-valid-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.35); }
}

/* === Compteur étape stylisé === */
.screencast-step-num {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  min-width: 110px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* === Audio invite (UX douce) === */
.sc-audio-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(245, 158, 11, 0.12);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  color: #FCD34D;
  font-size: 13px;
  animation: sc-invite-slide-up 0.4s ease;
}
@keyframes sc-invite-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.sc-audio-invite i {
  width: 18px;
  height: 18px;
  color: #F59E0B;
  flex-shrink: 0;
}
.sc-audio-invite span {
  flex: 1;
}
.sc-audio-accept, .sc-audio-decline {
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.sc-audio-accept {
  background: #F59E0B;
  color: #0D1B2A;
}
.sc-audio-accept:hover {
  background: #FBBF24;
}
.sc-audio-decline {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.sc-audio-decline:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* === Sous-titres ===  (réutilisés mais corrigés pour le bottom) */
.screencast-subtitles {
  min-height: 60px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}
.screencast-subtitles em {
  font-style: italic;
  opacity: 0.8;
}
.screencast-subtitles strong {
  color: #FCD34D;
}

/* === INTRO refondu === */
.sc-intro {
  position: relative;
  isolation: isolate;
}
.sc-intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--sc-color, #0D9488)20 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, var(--sc-color, #0D9488)15 0%, transparent 50%);
  z-index: 0;
  animation: sc-intro-bg-shift 8s ease-in-out infinite;
}
@keyframes sc-intro-bg-shift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(3deg); }
}
.sc-intro-logo, .sc-intro-cat, .sc-intro-titre, .sc-intro-line, .sc-intro-tagline {
  position: relative;
  z-index: 1;
}
.sc-intro-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 14px;
  animation: sc-intro-fade-up 0.5s ease 1s backwards;
}

/* === OUTRO refondu avec confetti === */
.sc-outro {
  position: relative;
  isolation: isolate;
}
.sc-outro-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.sc-confetti {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  background: var(--c, #F59E0B);
  border-radius: 2px;
  left: calc(var(--i) * 5.5%);
  animation: sc-confetti-fall 2.5s ease-out calc(var(--i) * 0.05s) backwards;
  transform-origin: center;
}
@keyframes sc-confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translateY(350px) rotate(720deg);
    opacity: 0;
  }
}
.sc-outro-check, .sc-outro-titre, .sc-outro-soustitre,
.sc-outro-cta, .sc-outro-next, .sc-outro-logo {
  position: relative;
  z-index: 1;
}

/* Module suivant suggéré */
.sc-outro-next {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(13, 148, 136, 0.05));
  border: 1px solid var(--sc-color, #0D9488)33;
  max-width: 460px;
  width: 100%;
  animation: sc-intro-fade-up 0.5s ease 1.8s backwards;
}
.sc-outro-next-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #94A3B8;
  margin-bottom: 8px;
}
.sc-outro-next-btn {
  width: 100%;
  background: var(--sc-color, #0D9488);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}
.sc-outro-next-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
}
.sc-outro-next-btn i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sc-outro-next-btn span {
  flex: 1;
  text-align: left;
}

/* Responsive */
@media (max-width: 640px) {
  .screencast-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sc-bottom-left {
    justify-content: center;
  }
  .screencast-controls {
    justify-content: center;
  }
  .sc-intro-logo-text {
    font-size: 42px !important;
  }
  .sc-intro-titre {
    font-size: 18px !important;
  }
  .sc-outro-titre {
    font-size: 22px !important;
  }
}

/* ============================================================
   AMÉLIORATION DES VISUELS DE SCREENCAST
   ============================================================ */

/* === LOGO BURST upgrade : effet particules + glow === */
.screencast-visual .sc-logo-burst {
  position: relative;
  font-size: 64px;
  letter-spacing: 6px;
  text-shadow: 0 4px 24px rgba(13, 27, 42, 0.15);
}
.screencast-visual .sc-logo-burst::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent, #F59E0B)30 0%, transparent 65%);
  z-index: -1;
  filter: blur(20px);
  animation: scLogoGlow 2.5s ease-in-out infinite;
}
@keyframes scLogoGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* === CARDS-3 upgrade : couleurs différenciées + emoji animé === */
.screencast-visual .sc-mock-cards {
  gap: 18px;
  perspective: 800px;
}
.screencast-visual .sc-card {
  padding: 28px 14px;
  font-size: 14px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-width: 2px;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
}
.screencast-visual .sc-card-active {
  transform: scale(1.12) translateZ(20px) rotateY(-6deg);
  border-color: var(--accent, #F59E0B);
  background: linear-gradient(145deg, #FFFBEB 0%, #FEF3C7 100%);
  box-shadow:
    0 16px 40px rgba(245, 158, 11, 0.35),
    0 0 0 4px rgba(245, 158, 11, 0.15);
}
.screencast-visual .sc-card-label {
  font-size: 14px;
}
.screencast-visual .sc-card:nth-child(1).sc-card-active { border-color: #3B82F6; box-shadow: 0 16px 40px rgba(59, 130, 246, 0.35); }
.screencast-visual .sc-card:nth-child(2).sc-card-active { border-color: #F59E0B; box-shadow: 0 16px 40px rgba(245, 158, 11, 0.35); }
.screencast-visual .sc-card:nth-child(3).sc-card-active { border-color: #8B5CF6; box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35); }

/* === CURSEUR upgrade : effet click pulse === */
.screencast-visual .sc-cursor {
  width: 16px;
  height: 16px;
  background: #DC2626;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(220, 38, 38, 0.25),
    0 4px 12px rgba(220, 38, 38, 0.5);
  animation: scCursorPulse 1.2s ease-in-out infinite;
  position: relative;
}
.screencast-visual .sc-cursor::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #DC2626;
  border-radius: 50%;
  animation: scCursorRing 1.5s ease-out infinite;
  opacity: 0.6;
}
@keyframes scCursorPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes scCursorRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* === CTA FINAL upgrade : signature classe === */
.screencast-visual .sc-cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
}
.screencast-visual .sc-cta-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--axora-navy);
  position: relative;
  display: inline-block;
  animation: scCtaFinalLogo 1s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes scCtaFinalLogo {
  0% { opacity: 0; transform: scale(0.5) rotateY(180deg); }
  100% { opacity: 1; transform: scale(1) rotateY(0); }
}
.screencast-visual .sc-cta-text {
  font-size: 18px;
  font-weight: 600;
  color: #F59E0B;
  letter-spacing: 0.05em;
  position: relative;
}
.screencast-visual .sc-cta-text::before,
.screencast-visual .sc-cta-text::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: #F59E0B;
  vertical-align: middle;
  margin: 0 12px;
  animation: scCtaLineExpand 0.6s ease-out 0.5s backwards;
}
@keyframes scCtaLineExpand {
  from { width: 0; opacity: 0; }
  to { width: 30px; opacity: 1; }
}

/* === GANTT mock upgrade : barres animées === */
.screencast-visual .sc-mock-gantt {
  width: 100%;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.screencast-visual .sc-gantt-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: center;
}
.screencast-visual .sc-gantt-label {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.screencast-visual .sc-gantt-bar {
  height: 14px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  animation: scGanttBar 1s ease-out;
}
@keyframes scGanttBar {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
.screencast-visual .sc-gantt-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: scGanttShimmer 2s ease-in-out infinite;
}
@keyframes scGanttShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* === KPI mock upgrade === */
.screencast-visual .sc-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}
.screencast-visual .sc-kpi {
  padding: 14px;
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  animation: scKpiPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) backwards;
}
.screencast-visual .sc-kpi:nth-child(1) { animation-delay: 0.1s; }
.screencast-visual .sc-kpi:nth-child(2) { animation-delay: 0.3s; }
.screencast-visual .sc-kpi:nth-child(3) { animation-delay: 0.5s; }
.screencast-visual .sc-kpi strong {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}
@keyframes scKpiPop {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === Check icon massive (fin) === */
.screencast-visual .sc-check {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.screencast-visual .sc-check i {
  width: 100px !important;
  height: 100px !important;
  color: #10B981;
  animation: scCheckIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.4);
  filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.4));
}
@keyframes scCheckIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-180deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* === Form mock upgrade === */
.screencast-visual .sc-mock-form {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.06);
}
.screencast-visual .sc-input-mock {
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12px;
  color: #64748B;
  animation: scInputType 0.6s ease-out backwards;
}
.screencast-visual .sc-input-mock:nth-child(1) { animation-delay: 0.1s; }
.screencast-visual .sc-input-mock:nth-child(2) { animation-delay: 0.4s; }
.screencast-visual .sc-input-mock:nth-child(3) { animation-delay: 0.7s; }
@keyframes scInputType {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Sidebar mock items animation === */
.screencast-visual .sc-mock-sidebar {
  max-width: 240px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.15);
}
.screencast-visual .sc-sb-item {
  padding: 7px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  margin: 2px 0;
  transition: all 0.2s;
  animation: scSidebarItem 0.4s ease-out backwards;
}
.screencast-visual .sc-sb-item:nth-child(2) { animation-delay: 0.1s; }
.screencast-visual .sc-sb-item:nth-child(3) { animation-delay: 0.15s; }
.screencast-visual .sc-sb-item:nth-child(4) { animation-delay: 0.2s; }
.screencast-visual .sc-sb-item:nth-child(5) { animation-delay: 0.25s; }
.screencast-visual .sc-sb-item:nth-child(6) { animation-delay: 0.3s; }
.screencast-visual .sc-sb-item:nth-child(7) { animation-delay: 0.35s; }
.screencast-visual .sc-sb-active {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FCD34D !important;
  font-weight: 700;
}
@keyframes scSidebarItem {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === BTN mock upgrade === */
.screencast-visual .sc-mock-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.screencast-visual .sc-fake-btn {
  background: #F59E0B;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
  animation: scBtnPulse 2s ease-in-out infinite;
}
@keyframes scBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ============================================================
   SÉLECTEUR DE LANGUE DANS USER MENU
   ============================================================ */
.user-menu-section-label {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-transform: uppercase;
}
.user-menu-lang-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px 10px 8px;
}
.user-menu-lang-btn {
  background: transparent;
  border: 1px solid #E2E8F0;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s;
  position: relative;
}
.user-menu-lang-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
}
.user-menu-lang-btn.is-active {
  background: #FEF3C7;
  border-color: #F59E0B;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}
.user-menu-lang-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: #F59E0B;
  border-radius: 2px;
}

/* ============================================================
   BADGE ISO INLINE — Scène 4 du pitch (positionnement audit-ready)
   ============================================================ */
.pitch-iso-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.iso-badge-inline {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

/* ============================================================
   LIEN VERS axore.be sur la page de login
   ============================================================ */
.login-website-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: -8px auto 14px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FCD34D;
  border-radius: 8px;
  color: #92400E;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  align-self: center;
}
.login-website-link:hover {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}
.login-website-link i {
  width: 14px;
  height: 14px;
}

/* ============================================================
   LIEN axore.be dans la sidebar (à côté du logo)
   ============================================================ */
.sidebar-website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #FCD34D;
  text-decoration: none;
  transition: all 0.15s;
}
.sidebar-website-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

/* ============================================================
   Arborescence : header cliquable pour collapse
   ============================================================ */
.tree-node-header {
  cursor: pointer;
  user-select: none;
}
.tree-node-header:hover {
  background-color: rgba(245, 158, 11, 0.08);
}
.tree-zone-node > .tree-node-header:hover {
  background-color: #DBEAFE !important;
}

/* ============================================================
   FILTRES MULTI-SELECT (Tableau de phases, Gantt)
   ============================================================ */
.multi-select {
  display: inline-block;
}
.multi-select-btn {
  cursor: pointer;
  min-width: 140px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #E2E8F0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0D1B2A;
  transition: all 0.15s;
}
.multi-select-btn:hover {
  border-color: #F59E0B;
  background: #FFFBEB;
}
.multi-select-btn i {
  width: 14px;
  height: 14px;
}
.multi-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.12);
  padding: 6px;
  min-width: 220px;
  max-height: 280px;
  overflow-y: auto;
}
.multi-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #0D1B2A;
  user-select: none;
}
.multi-select-item:hover { background: #F8FAFC; }
.multi-select-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: #F59E0B;
}

/* ============================================================
   KPIs en haut de la page projet — horizontaux
   V44.16 — 2 colonnes 50/50, padding et police légèrement réduits
   ============================================================ */
.kpi-row-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .kpi-row-top { grid-template-columns: repeat(2, 1fr); }
}
.kpi-top-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(13,27,42,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.kpi-top-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13,27,42,0.08);
}
.kpi-top-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.kpi-top-val {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.kpi-top-val.green { color: #10B981; }
.kpi-top-val.yellow { color: #F59E0B; }
.kpi-top-val.red { color: #DC2626; }
.kpi-top-unit {
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}

/* Charter mini preview */
.charter-preview-mini {
  margin-top: 8px;
}

/* ============================================================
   GROUPEMENT DE TEMPLATES — Catégories regroupées (CdC, etc.)
   ============================================================ */
.template-category-section {
  margin-bottom: 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
}
.template-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
  border-bottom: 1px solid #E2E8F0;
}
.template-category-header i {
  width: 18px;
  height: 18px;
}
.template-category-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0D1B2A;
  flex: 1;
}
.template-category-count {
  background: #0D1B2A;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 9999px;
}
.template-category-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.template-category-section.collapsed .template-category-chevron {
  transform: rotate(-90deg);
}
.template-category-section.collapsed .template-category-content {
  display: none;
}
.template-category-content {
  padding: 16px;
}

/* ============================================================
   DRAG & DROP DOCUMENTS + SOUS-SOUS-DOSSIERS
   ============================================================ */
.doc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: white;
  border: 1px solid #E2E8F0;
  cursor: grab;
  transition: all 0.15s;
}
.doc-line:hover {
  background: #F8FAFC;
  border-color: #F59E0B;
  transform: translateX(2px);
}
.doc-line:active {
  cursor: grabbing;
}
.doc-line[draggable="true"] {
  user-select: none;
}

.doc-folder-section {
  margin-bottom: 8px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #FAFBFC;
  transition: all 0.15s;
}
.doc-folder-section.drag-over {
  background: #FFFBEB;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.doc-folder-section[draggable="true"] {
  cursor: grab;
}
.doc-folder-section[draggable="true"]:active {
  cursor: grabbing;
}

.doc-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  transition: background 0.15s;
}
.doc-folder-header:hover {
  background: linear-gradient(135deg, #FDE68A, #FCD34D);
}
.doc-folder-section:not(.open) > .doc-folder-header {
  border-radius: 10px;
}
.doc-folder-section .folder-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.doc-folder-section.open .folder-chevron {
  transform: rotate(90deg);
}
.doc-folder-section:not(.open) .doc-folder-body {
  display: none;
}
.doc-folder-body {
  padding: 10px 14px 14px 30px;
}

.doc-drop-root {
  border-radius: 12px;
  padding: 4px;
  min-height: 40px;
  transition: background 0.15s;
}

.doc-list-root {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

/* ============================================================
   HOMOGÉNÉISATION VISUELLE — Cartes, bandeaux, alignements
   ============================================================ */
/* Cards : hauteur uniforme dans grids */
.kpi-grid, .grid-cols-3, .grid-cols-4 {
  align-items: stretch;
}
.kpi-grid > .card,
.kpi-grid > .kpi-card,
.grid-cols-3 > .card,
.grid-cols-4 > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kpi-grid > .card > .card-body,
.grid-cols-3 > .card > .card-body,
.grid-cols-4 > .card > .card-body {
  flex: 1;
}

/* Bandeaux d'information : style unifié */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.alert-banner i {
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
}
.alert-banner-info {
  background: #DBEAFE;
  border-left: 4px solid #3B82F6;
  color: #1E40AF;
}
.alert-banner-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  color: #92400E;
}
.alert-banner-success {
  background: #D1FAE5;
  border-left: 4px solid #10B981;
  color: #065F46;
}
.alert-banner-danger {
  background: #FEE2E2;
  border-left: 4px solid #DC2626;
  color: #991B1B;
}

/* Spacing unifié dans les sections de formulaire */
.form-section {
  margin-bottom: 18px;
}
.form-section + .form-section {
  border-top: 1px solid #F1F5F9;
  padding-top: 18px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 13px;
  color: #0D1B2A;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-section-title i {
  width: 16px;
  height: 16px;
  color: #F59E0B;
}

/* Titres pages : style unifié */
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: #0D1B2A;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-top: 4px;
}

/* Boutons : taille minimum cohérente */
.btn {
  min-height: 34px;
  font-weight: 600;
}
.btn-sm {
  min-height: 28px;
  font-size: 12px;
}
.btn-icon {
  min-height: 28px;
  min-width: 28px;
  padding: 4px;
}

/* Empty states : style cohérent */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: #F8FAFC;
  border-radius: 12px;
  border: 2px dashed #CBD5E1;
}
.empty-state i {
  width: 48px;
  height: 48px;
  color: #94A3B8;
  margin: 0 auto 12px;
  display: block;
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 6px;
}
.empty-state p {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

/* ============================================================
   MODULE MAÎTRISE DES RISQUES (Risk Management)
   ============================================================ */

/* Matrice 5×5 */
.matrice-risques {
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}
.matrice-row {
  display: flex;
}
.matrice-corner, .matrice-col-label, .matrice-row-label {
  background: #0D1B2A;
  color: white;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  line-height: 1.2;
}
.matrice-col-label small, .matrice-row-label small {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}
.matrice-corner { background: #1B2A3E; }
.matrice-cell {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.1s;
  position: relative;
}
.matrice-cell:hover {
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.matrice-count {
  font-size: 22px;
  font-weight: 900;
}
.matrice-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11px;
  color: #475569;
}
.matrice-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Catégories de risques (accordéon) */
.rm-categorie-section {
  margin-bottom: 10px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}
.rm-categorie-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: #F8FAFC;
  transition: background 0.15s;
  user-select: none;
}
.rm-categorie-header:hover {
  background: #F1F5F9;
}
.rm-categorie-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}
.rm-categorie-section.open .rm-categorie-chevron {
  transform: rotate(90deg);
}
.rm-categorie-section:not(.open) .rm-categorie-body {
  display: none;
}
.rm-categorie-body {
  padding: 12px 14px;
  background: white;
}

.rm-questions-hint {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

/* Ligne de risque */
.rm-risque-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.rm-risque-line:hover {
  border-color: #F59E0B;
  background: #FFFBEB;
  transform: translateX(2px);
}

.rm-kinney {
  display: flex;
  gap: 4px;
  align-items: center;
}
.rm-kinney-cell {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
}
.rm-kinney-score {
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Résultat Kinney dans modale */
.kinney-result {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

/* Section sidebar Risk */
.sidebar-section-risk {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(245, 158, 11, 0.05));
}

/* Tranches total error : encadrement rouge animé */
.tranches-total-error {
  background: #FEE2E2 !important;
  border: 2px solid #DC2626 !important;
  animation: pulse-red 2s ease-in-out infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

/* === N3 — Bouton "Découvrir AXORE" centré sous le logo === */
.login-website-link-centered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto 0;
  padding: 8px 18px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: white !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}
.login-website-link-centered:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
.login-website-link-centered i {
  width: 14px;
  height: 14px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* === V15 Vague 15 — Système de tooltip global avec portail JS === */
/* Le tooltip n'est plus en ::after (qui restait coincé dans les cartes avec overflow:hidden).
   Maintenant un élément #axoraTooltipPortal en position:fixed est créé dynamiquement au survol. */
[data-axora-tip] {
  position: relative;
  cursor: help;
}
.kpi-help { display: inline-block; }

#axoraTooltipPortal {
  position: fixed;
  z-index: 999999;
  background: #0D1B2A;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  white-space: normal;
  max-width: 320px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}
#axoraTooltipPortal.visible {
  opacity: 1;
}
#axoraTooltipPortal::after {
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 0;
  height: 0;
  border: 6px solid transparent;
}
#axoraTooltipPortal.below::after {
  top: -12px;
  border-bottom-color: #0D1B2A;
  transform: translateX(-50%);
}
#axoraTooltipPortal.above::after {
  bottom: -12px;
  border-top-color: #0D1B2A;
  transform: translateX(-50%);
}

/* === N6 — Mini-matrice 5x5 dans le widget RM (plus grande et percutante) === */
.rm-mini-matrice {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  grid-template-rows: repeat(5, 28px);
  gap: 2px;
  background: #92400E;
  padding: 2px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(146, 64, 14, 0.25);
}
.rm-mini-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #1B2A3E;
  border-radius: 3px;
  transition: transform 0.15s;
}
.rm-mini-cell:hover {
  transform: scale(1.15);
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* === N9 + N27 — Bandeau filtres dashboard + Multi-filter Excel-like === */
.dashboard-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: white;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  flex-wrap: wrap;
}
.dashboard-filters-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.multi-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.multi-filter-trigger:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
.multi-filter-trigger.active {
  background: #FEF3C7;
  border-color: #F59E0B;
  color: #92400E;
}
.multi-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: transparent;
  border: 1px dashed #CBD5E1;
  border-radius: 6px;
  font-size: 12px;
  color: #94A3B8;
  cursor: pointer;
}
.multi-filter-clear:hover {
  border-color: #DC2626;
  color: #DC2626;
}

/* Popup multi-filter */
.multi-filter-popup {
  background: white;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  width: 260px;
  z-index: 99999;
  animation: filterPopFadeIn 0.15s ease-out;
}
@keyframes filterPopFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.multi-filter-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
}
.multi-filter-search i { color: #94A3B8; }
.multi-filter-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
}
.multi-filter-actions-top {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  background: #F8FAFC;
}
.mf-link {
  background: none;
  border: none;
  color: #0D9488;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.mf-link:hover { text-decoration: underline; }
.multi-filter-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 0;
}
.mf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}
.mf-item:hover { background: #F8FAFC; }
.mf-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #F59E0B;
}
.multi-filter-actions-bottom {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 12px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  border-radius: 0 0 10px 10px;
}

/* === N18 — Cadre supplément vide (cohérence visuelle) === */
.supplements-empty {
  border: 2px dashed #DC2626 !important;
  background: #FEF2F2 !important;
  border-radius: 10px;
  padding: 14px !important;
}
.supplement-empty-state {
  background: white;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0;
}

/* === N25 — Phase en retard : pulse subtil rouge === */
.planning-cell.phase-retard {
  animation: pulseRetard 2.5s ease-in-out infinite;
}
@keyframes pulseRetard {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.3); }
  50% { box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.6), 0 0 8px rgba(220, 38, 38, 0.4); }
}

/* === N8 — Badge code projet (visible et distinctif) === */
.projet-code-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #0D1B2A, #1B2A3E);
  color: white !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  border: 1px solid #1B2A3E;
  box-shadow: 0 2px 6px rgba(13, 27, 42, 0.2);
  white-space: nowrap;
}

/* ============================================================
   V25 Vague 25 — AUDIT UX : RAFFINEMENTS VISUELS GLOBAUX
   Objectifs : fluidité, harmonisation, accessibilité, professionnalisme
   ============================================================ */

/* --- Transitions globales pour un ressenti premium --- */
.btn,
.card,
.kpi-card,
.dashboard-widget,
.badge,
.multi-filter-trigger,
.multi-select-trigger,
.form-input,
.form-select,
.form-textarea {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* --- Hover states subtils sur les boutons --- */
.btn:not(:disabled):hover {
  transform: translateY(-1px);
}
.btn:not(:disabled):active {
  transform: translateY(0);
}

/* --- Cards : élévation au survol pour les éléments interactifs --- */
.card[onclick],
.card.is-clickable,
.kpi-card[onclick] {
  cursor: pointer;
}
.card[onclick]:hover,
.card.is-clickable:hover,
.kpi-card[onclick]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.08), 0 2px 6px rgba(13, 27, 42, 0.06);
}

/* --- Focus states pour accessibilité (WCAG AA) --- */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.multi-filter-trigger:focus-visible {
  outline: 2px solid #0D9488 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15) !important;
}

/* --- Badges : raffinement (font-weight, espacement) --- */
.badge {
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

/* --- Tables : harmonisation des en-têtes + zebra subtil --- */
.data-table thead th {
  background: linear-gradient(180deg, #0D1B2A 0%, #142639 100%);
  color: white;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 12px;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover {
  background: #F1F5F9 !important;
}

/* --- Form inputs : raffinement + focus état clair --- */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #0D9488 !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}

/* --- Page headers : alignement + spacing harmonisés --- */
.page-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--axora-navy);
}
.page-header .page-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-top: 2px;
}

/* --- KPI cards : élégance + lisibilité --- */
.kpi-card {
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  background: white;
  transition: all 0.2s ease;
}
.kpi-card .kpi-value {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-card .kpi-label {
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 10px;
  color: #64748B;
}

/* --- Modales : ombre profonde + animation subtile à l'apparition --- */
.modal-overlay {
  animation: axora-fadeIn 0.18s ease-out;
}
.modal,
.modal-large {
  animation: axora-modalIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.25), 0 4px 12px rgba(13, 27, 42, 0.1);
}
@keyframes axora-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes axora-modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Tooltip natif élégant (utilise [title]) --- */
[data-tip] {
  position: relative;
}

/* --- Sidebar : effet visuel élégant sur item actif --- */
.sidebar-item.active {
  position: relative;
  font-weight: 700;
}
.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  background: var(--axora-orange);
  border-radius: 0 2px 2px 0;
  transition: all 0.2s ease;
}

/* --- Empty states : design plus aéré + accent visuel --- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748B;
}
.empty-state i,
.empty-state svg {
  width: 48px;
  height: 48px;
  color: #CBD5E1;
  margin: 0 auto 12px;
  display: block;
}
.empty-state p {
  font-size: 13px;
  margin-bottom: 6px;
}

/* --- Toast : élégance + animation slide-in --- */
.toast,
.toast-notification {
  animation: axora-toastIn 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.15), 0 2px 8px rgba(13, 27, 42, 0.08);
  border-radius: 10px;
}
@keyframes axora-toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- Améliorer la lisibilité des form-labels --- */
.form-label {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1px;
  color: #334155;
  margin-bottom: 4px;
  display: block;
}

/* --- Selection text en couleur de marque --- */
::selection {
  background: rgba(13, 148, 136, 0.25);
  color: var(--axora-navy);
}

/* --- Loading skeleton (pour usage futur) --- */
.axora-skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: axora-shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes axora-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Multi-filter trigger : meilleur rendu visuel --- */
.multi-filter-trigger {
  font-weight: 500;
  font-size: 12px;
}
.multi-filter-trigger.active {
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%) !important;
  color: white !important;
  border-color: #0D9488 !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

/* --- Dashboard widgets : raffinement subtil --- */
.dashboard-widget {
  border-radius: 14px !important;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
}
.dashboard-widget:hover {
  border-color: #CBD5E1;
}

/* --- Réduire le bruit visuel : amincir les borders --- */
.card {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

/* --- Pour mobile : éviter le scroll horizontal involontaire --- */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .modal,
  .modal-large {
    max-width: 96vw !important;
    margin: 8px;
  }
  .page-header h1 { font-size: 18px; }
  .kpi-card .kpi-value { font-size: 22px; }
  .btn { font-size: 12px; padding: 6px 10px; }
}

/* --- Print : optimisation pour exports PDF (déjà géré dans les exports) --- */
@media print {
  .sidebar, .topbar, .toast, .modal-overlay {
    display: none !important;
  }
}

/* --- Sticky table headers (utile pour les longs tableaux) --- */
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
}

/* --- Subtle separators dans les listes pour aérer --- */
.list-item + .list-item,
.flex-item + .flex-item {
  border-top: 1px solid #F1F5F9;
}

/* V44.1 — Animation pulse pour badge "Arrêt machine" critique */
@keyframes axora-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}


/* V44.3 — Vue arbre généalogique (style organigramme) */
.tree-genealogy-branch.collapsed > .tree-genealogy-children { display: none; }
.tree-genealogy-node { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tree-genealogy-node:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }

/* V44.4 — Vue arborescence : VRAI organigramme (cartes parallèles côte à côte) */
/* V44.10 — Fix scroll horizontal : le contenu doit pouvoir s'étendre au-delà de la largeur du conteneur */
#treeViewBody { padding: 32px 24px; cursor: grab; user-select: none; overflow: auto; }
#treeViewBody.is-panning { cursor: grabbing; }
#treeViewBody.is-panning * { pointer-events: none; }
/* Wrapper interne qui prend la largeur naturelle du contenu pour permettre le scroll horizontal */
#treeViewBody > .org-branch:first-child,
#treeViewBody > .org-branch {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: max-content;
  margin: 0 auto;
}
.org-branch { display: flex; flex-direction: column; align-items: center; position: relative; padding-top: 0; }
.org-branch[data-level="0"] { margin-bottom: 0; }
.org-node-wrapper {
  display: flex; justify-content: center; position: relative;
  padding-bottom: 24px;  /* place pour la barre descendante */
}
.org-node {
  padding: 10px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* V44.6 — Taille uniforme des blocs */
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  height: 72px;
  box-sizing: border-box;
}
.org-node > div { flex: 1; min-width: 0; overflow: hidden; }
.org-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.org-icon { width: 20px; height: 20px; flex-shrink: 0; }
.org-level {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.82;
  font-weight: 700;
}
.org-title {
  font-size: 12px;
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.org-code {
  font-family: monospace;
  font-size: 10px;
  background: rgba(255,255,255,0.25);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
  margin-right: 4px;
}
.org-count {
  font-size: 10px;
  opacity: 0.85;
  margin-top: 2px;
}
.org-empty {
  font-size: 11px;
  color: #94A3B8;
  font-style: italic;
  padding: 8px 14px;
  background: #F8FAFC;
  border-radius: 6px;
  border: 1px dashed #E2E8F0;
}

/* Ligne de connexion descendante depuis le parent vers les enfants */
.org-node-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #CBD5E1;
}
.org-branch.collapsed > .org-node-wrapper::after { display: none; }
.org-branch:not(:has(.org-children-row)) > .org-node-wrapper::after { display: none; }
.org-branch[data-level="5"] > .org-node-wrapper::after { display: none; }

/* Rangée d'enfants : horizontale avec gap, lignes en T inversé */
.org-children-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  position: relative;
  padding-top: 24px;
  /* V44.10 — Permettre le débordement horizontal pour scroll latéral */
  width: max-content;
  margin: 0 auto;
}
.org-branch.collapsed > .org-children-row { display: none; }
/* V44.10 — Les branches enfants ne doivent jamais rétrécir, sinon pas de scroll horizontal */
.org-children-row > .org-branch { flex-shrink: 0; }

/* Barre horizontale qui relie les enfants (T inversé) */
.org-children-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: #CBD5E1;
  width: calc(100% - 200px);
  min-width: 0;
}
.org-children-row:has(> .org-branch:only-child)::before { display: none; }
.org-children-row > .org-branch { position: relative; }
.org-children-row > .org-branch::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: #CBD5E1;
}

/* Couleurs spécifiques au hover */
.org-node.tree-soc:hover { box-shadow: 0 6px 20px rgba(13,148,136,0.4); }
.org-node.tree-zone:hover { box-shadow: 0 6px 20px rgba(59,130,246,0.4); }
.org-node.tree-cellule:hover { box-shadow: 0 6px 20px rgba(245,158,11,0.4); }
.org-node.tree-ins:hover { box-shadow: 0 6px 20px rgba(139,92,246,0.4); }
.org-node.tree-dec:hover { box-shadow: 0 6px 20px rgba(148,163,184,0.4); }
.org-node.tree-cpt:hover { box-shadow: 0 6px 20px rgba(236,72,153,0.4); }

/* V44.5 — Vue d'ensemble hall : animation pulse pour les arrêts machine */
@keyframes hall-pulse {
  0%, 100% { box-shadow: 0 1px 3px rgba(220,38,38,0.4); transform: scale(1); }
  50%      { box-shadow: 0 4px 16px rgba(220,38,38,0.8); transform: scale(1.02); }
}
.hall-installation:hover {
  filter: brightness(1.05);
}
.hall-zone[draggable="true"]:hover {
  outline: 2px dashed #0D9488;
  outline-offset: 2px;
}

/* V44.9 — Bouton micro dictée vocale (Web Speech API) */
.axora-mic-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #E2E8F0;
  background: white;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.axora-mic-btn:hover {
  background: #F0FDF4;
  border-color: #10B981;
  color: #10B981;
  transform: translateY(-50%) scale(1.1);
}
.axora-mic-btn.is-recording {
  background: #DC2626;
  border-color: #DC2626;
  color: white;
  animation: axora-mic-pulse 1.2s ease-in-out infinite;
}
@keyframes axora-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.55); }
  50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0); }
}
/* Wrapper qui rend l'input/textarea position:relative pour positionner le micro */
.axora-mic-wrap {
  position: relative;
  display: block;
}
.axora-mic-wrap textarea,
.axora-mic-wrap input[type="text"] {
  padding-right: 44px !important;
}
/* Pour les textarea, placer le micro en haut à droite */
.axora-mic-wrap.is-textarea .axora-mic-btn {
  top: 8px;
  transform: none;
}
.axora-mic-wrap.is-textarea .axora-mic-btn.is-recording {
  animation: axora-mic-pulse 1.2s ease-in-out infinite;
}
/* Toast d'écoute en cours */
.axora-mic-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(220,38,38,0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: axora-mic-pulse-toast 1.2s ease-in-out infinite;
}
@keyframes axora-mic-pulse-toast {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.04); }
}
.axora-mic-toast .dot {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: axora-mic-blink 0.6s infinite alternate;
}
@keyframes axora-mic-blink {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* V44.9 — Scanner QR overlay */
.axora-qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.axora-qr-video-wrap {
  position: relative;
  width: min(90vw, 480px);
  aspect-ratio: 1/1;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.axora-qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.axora-qr-reticle {
  position: absolute;
  inset: 18%;
  border: 3px solid #10B981;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.4);
}
.axora-qr-reticle::before,
.axora-qr-reticle::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: #10B981;
  box-shadow: 0 0 12px #10B981;
}
.axora-qr-reticle::before { top: -1px; animation: qr-scan 2s linear infinite; }
@keyframes qr-scan {
  0%   { top: 0; opacity: 1; }
  50%  { top: 100%; opacity: 1; }
  51%  { top: 0; opacity: 0; }
  100% { top: 0; opacity: 1; }
}
.axora-qr-controls {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  flex-direction: column;
}
.axora-qr-controls button {
  background: white;
  color: #0D1B2A;
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* V44.9 — Barre de recherche universelle (Cmd+K) */
.axora-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, 0.7);
  z-index: 99997;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(4px);
}
.axora-search-box {
  width: min(90vw, 640px);
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.axora-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
}
.axora-search-input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  background: transparent;
  color: #0D1B2A;
}
.axora-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.axora-search-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
  font-weight: 700;
  padding: 10px 14px 6px;
}
.axora-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s;
}
.axora-search-result:hover,
.axora-search-result.is-active {
  background: #F0FDFA;
}
.axora-search-result .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.axora-search-result.is-active .icon-wrap {
  background: #0D9488;
  color: white;
}
.axora-search-result .label {
  flex: 1;
  min-width: 0;
}
.axora-search-result .label .title {
  font-size: 13px;
  font-weight: 600;
  color: #0D1B2A;
}
.axora-search-result .label .subtitle {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.axora-search-result .shortcut {
  font-size: 10px;
  color: #94A3B8;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.axora-search-footer {
  padding: 10px 16px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  font-size: 11px;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* V44.10 — Plan d'usine : vue de dessus */
.hall-floor-plan {
  user-select: none;
}
.hall-floor-plan.is-edit-mode .hall-zone-floor:hover,
.hall-floor-plan.is-edit-mode .hall-cellule-floor:hover {
  outline: 2px solid #0D9488;
  outline-offset: 2px;
}
.hall-cellule-floor:hover .hall-cellule-tooltip {
  opacity: 1 !important;
}
.hall-cellule-floor:not(.is-edit-mode):hover {
  transform: scale(1.02);
  z-index: 2;
}
.hall-ins-mini:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.5);
  z-index: 10;
  position: relative;
}
