/* Header */
header, .app-header {
  background-color: var(--header-bg);
  color: white;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sidebar */
aside#mainSidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: none;
}
aside#mainSidebar::-webkit-scrollbar { display: none; }

.menu-section { padding: 12px 20px; }

.menu-title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 4px;
}

.menu-title i {
  width: 20px;
  margin-right: 10px;
  font-size: 16px;
}

.sub-menu { list-style: none; padding-left: 30px; }

.sub-menu li a {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 13px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}
.sub-menu li a:hover { color: #000; }

.sub-menu li a.active {
  color: #111827;
  font-weight: 800;
}

/* Logout */
.logout-box {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}
.logout-link {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.logout-link i { margin-right: 10px; }

/* Cards stats */
.stat-card {
  flex: 1;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.stat-label { font-size: 12px; color:#64748b; font-weight: 800; }
.stat-value { font-size: 22px; font-weight: 900; }

/* Helpers */
.btn-full {
  width: 100%;
  margin-top: 10px;
}

.btn-primary {
  background-color: #1e222d;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;

  /* 👇 important */
  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  background-color: #2a2f3f;
}

.btn-primary:focus,
.btn-primary:focus-visible {
  outline: none;
}

.dropzone:hover {
  border-color: #cbd5e1;
}

/* ===========================
   New Client - Type cards
   =========================== */

.type-card {
  position: relative; /* important pour cacher le radio */
  cursor: pointer;
  display: block;
}

/* radio caché mais fonctionnel */
.type-card > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* base */
.type-card .type-box {
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #475569;
  text-align: center;
  user-select: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease, color .12s ease;
}

.type-card .type-box i {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
  color: currentColor;
  opacity: .9;
}

.type-card .type-box span {
  font-size: 13px;
  font-weight: 700;
}

/* hover */
.type-card:hover .type-box {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

/* ✅ selected (le plus fiable) */
.type-card > input[type="radio"]:checked + .type-box {
  background: #f1f9f5;
  border: 2px solid #27ae60;
  color: #27ae60;
  box-shadow: 0 10px 22px rgba(39, 174, 96, 0.12);
}

/* focus clavier */
.type-card > input[type="radio"]:focus-visible + .type-box {
  outline: 3px solid rgba(52, 152, 219, 0.35);
  outline-offset: 2px;
}


.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
  user-select:none;
}

.equip-filter {
  padding: 12px 36px 12px 12px; /* espace à droite pour la flèche */
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  cursor: pointer;
  color: #374151;
  font-weight: 500;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'>\
<path d='M1.5 5.5l6 6 6-6'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}