/* ─────────────────────────────────────────────
   FACE — Utility Classes  (u.css)
   Usage: remplace tous les styles inline HTML
   ───────────────────────────────────────────── */

/* ══ Display ══ */
.d-none        { display: none !important; }
.d-block       { display: block; }
.d-iblock      { display: inline-block; }
.d-iflex       { display: inline-flex; }
.d-flex        { display: flex; }
.d-grid        { display: grid; }
.d-contents    { display: contents; }

/* ══ Flex ══ */
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }
.shrink-0      { flex-shrink: 0; }
.ai-center     { align-items: center; }
.ai-start      { align-items: flex-start; }
.ai-end        { align-items: flex-end; }
.ai-baseline   { align-items: baseline; }
.ai-stretch    { align-items: stretch; }
.jc-center     { justify-content: center; }
.jc-between    { justify-content: space-between; }
.jc-end        { justify-content: flex-end; }
.jc-start      { justify-content: flex-start; }
.ml-auto       { margin-left: auto; }
.mr-auto       { margin-right: auto; }

/* ══ Grid ══ */
.grid-2        { grid-template-columns: repeat(2,1fr); }
.grid-3        { grid-template-columns: repeat(3,1fr); }
.grid-4        { grid-template-columns: repeat(4,1fr); }
.grid-1-320    { grid-template-columns: 1fr 320px; }
.grid-1-340    { grid-template-columns: 1fr 340px; }
.grid-2-1      { grid-template-columns: 2fr 1fr; }

/* ══ Gap ══ */
.gap-2  { gap: 2px; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-28 { gap: 28px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }

/* ══ Padding ══ */
.p-0    { padding: 0; }
.p-4    { padding: 4px; }
.p-8    { padding: 8px; }
.p-10   { padding: 10px; }
.p-12   { padding: 12px; }
.p-16   { padding: 16px; }
.p-20   { padding: 20px; }
.p-24   { padding: 24px; }
.p-28   { padding: 28px; }
.p-32   { padding: 32px; }
.p-40   { padding: 40px; }

.px-8   { padding-left: 8px;  padding-right: 8px; }
.px-10  { padding-left: 10px; padding-right: 10px; }
.px-12  { padding-left: 12px; padding-right: 12px; }
.px-14  { padding-left: 14px; padding-right: 14px; }
.px-16  { padding-left: 16px; padding-right: 16px; }
.px-18  { padding-left: 18px; padding-right: 18px; }
.px-20  { padding-left: 20px; padding-right: 20px; }
.px-22  { padding-left: 22px; padding-right: 22px; }
.px-24  { padding-left: 24px; padding-right: 24px; }
.px-28  { padding-left: 28px; padding-right: 28px; }
.px-32  { padding-left: 32px; padding-right: 32px; }

.py-4   { padding-top: 4px;  padding-bottom: 4px; }
.py-6   { padding-top: 6px;  padding-bottom: 6px; }
.py-8   { padding-top: 8px;  padding-bottom: 8px; }
.py-10  { padding-top: 10px; padding-bottom: 10px; }
.py-12  { padding-top: 12px; padding-bottom: 12px; }
.py-14  { padding-top: 14px; padding-bottom: 14px; }
.py-16  { padding-top: 16px; padding-bottom: 16px; }
.py-20  { padding-top: 20px; padding-bottom: 20px; }
.py-24  { padding-top: 24px; padding-bottom: 24px; }
.py-28  { padding-top: 28px; padding-bottom: 28px; }
.py-32  { padding-top: 32px; padding-bottom: 32px; }
.py-40  { padding-top: 40px; padding-bottom: 40px; }

.pt-4   { padding-top: 4px; }
.pt-8   { padding-top: 8px; }
.pt-10  { padding-top: 10px; }
.pt-12  { padding-top: 12px; }
.pt-16  { padding-top: 16px; }
.pt-20  { padding-top: 20px; }
.pt-24  { padding-top: 24px; }
.pt-28  { padding-top: 28px; }
.pt-32  { padding-top: 32px; }

.pb-4   { padding-bottom: 4px; }
.pb-8   { padding-bottom: 8px; }
.pb-10  { padding-bottom: 10px; }
.pb-12  { padding-bottom: 12px; }
.pb-16  { padding-bottom: 16px; }
.pb-20  { padding-bottom: 20px; }
.pb-24  { padding-bottom: 24px; }

.pl-16  { padding-left: 16px; }
.pl-20  { padding-left: 20px; }
.pl-24  { padding-left: 24px; }
.pl-42  { padding-left: 42px; }

.pr-12  { padding-right: 12px; }
.pr-16  { padding-right: 16px; }
.pr-24  { padding-right: 24px; }

/* ══ Margin ══ */
.m-0    { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-2   { margin-top: 2px; }
.mt-4   { margin-top: 4px; }
.mt-6   { margin-top: 6px; }
.mt-8   { margin-top: 8px; }
.mt-10  { margin-top: 10px; }
.mt-12  { margin-top: 12px; }
.mt-14  { margin-top: 14px; }
.mt-16  { margin-top: 16px; }
.mt-20  { margin-top: 20px; }
.mt-24  { margin-top: 24px; }
.mt-28  { margin-top: 28px; }
.mt-32  { margin-top: 32px; }
.mt-40  { margin-top: 40px; }
.mt-48  { margin-top: 48px; }

.mb-2   { margin-bottom: 2px; }
.mb-4   { margin-bottom: 4px; }
.mb-6   { margin-bottom: 6px; }
.mb-8   { margin-bottom: 8px; }
.mb-10  { margin-bottom: 10px; }
.mb-12  { margin-bottom: 12px; }
.mb-14  { margin-bottom: 14px; }
.mb-16  { margin-bottom: 16px; }
.mb-20  { margin-bottom: 20px; }
.mb-24  { margin-bottom: 24px; }
.mb-28  { margin-bottom: 28px; }
.mb-32  { margin-bottom: 32px; }
.mb-40  { margin-bottom: 40px; }

.ml-4   { margin-left: 4px; }
.ml-6   { margin-left: 6px; }
.ml-8   { margin-left: 8px; }
.ml-12  { margin-left: 12px; }
.mr-8   { margin-right: 8px; }
.mr-12  { margin-right: 12px; }

/* ══ Width / Height ══ */
.w-full  { width: 100%; }
.w-auto  { width: auto; }
.h-full  { height: 100%; }
.min-w-0 { min-width: 0; }

/* ══ Position ══ */
.pos-rel  { position: relative; }
.pos-abs  { position: absolute; }
.pos-fix  { position: fixed; }
.pos-sticky { position: sticky; }
.inset-0  { inset: 0; }

/* ══ Font size ══ */
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-24 { font-size: 24px; }
.fs-28 { font-size: 28px; }
.fs-32 { font-size: 32px; }
.fs-36 { font-size: 36px; }
.fs-42 { font-size: 42px; }
.fs-48 { font-size: 48px; }

/* ══ Font weight ══ */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

/* ══ Line height ══ */
.lh-1   { line-height: 1; }
.lh-11  { line-height: 1.1; }
.lh-12  { line-height: 1.2; }
.lh-15  { line-height: 1.5; }
.lh-16  { line-height: 1.6; }
.lh-17  { line-height: 1.7; }
.lh-18  { line-height: 1.8; }

/* ══ Text ══ */
.ta-center   { text-align: center; }
.ta-right    { text-align: right; }
.ta-left     { text-align: left; }
.uppercase   { text-transform: uppercase; }
.no-deco     { text-decoration: none; }
.italic      { font-style: italic; }
.nowrap      { white-space: nowrap; }
.ls-1        { letter-spacing: 0.1em; }
.ls-05       { letter-spacing: 0.05em; }
.ls-08       { letter-spacing: 0.08em; }
.ls-12       { letter-spacing: 0.12em; }
.ls-15       { letter-spacing: 0.15em; }
.font-display { font-family: var(--font-display); }

/* ══ Colors — text ══ */
.c-black   { color: #111; }
.c-dark    { color: #262626; }
.c-600     { color: #525252; }
.c-muted   { color: #737373; }
.c-light   { color: #a3a3a3; }
.c-xlight  { color: #aaa; }
.c-white   { color: #fff; }
.c-danger  { color: #dc2626; }
.c-inherit { color: inherit; }

/* ══ Colors — background ══ */
.bg-black  { background: #111; }
.bg-dark   { background: #262626; }
.bg-white  { background: #fff; }
.bg-50     { background: #fafafa; }
.bg-100    { background: #f5f5f5; }
.bg-200    { background: #e8e8e8; }
.bg-danger { background: #fef2f2; }

/* ══ Borders ══ */
.bd-0        { border: none; }
.bd-1        { border: 1px solid #e5e5e5; }
.bd-top      { border-top: 1px solid #e5e5e5; }
.bd-bottom   { border-bottom: 1px solid #e5e5e5; }
.bd-danger   { border-color: #dc2626; }

/* ══ Border radius ══ */
.r-0    { border-radius: 0; }
.r-4    { border-radius: 4px; }
.r-6    { border-radius: 6px; }
.r-8    { border-radius: 8px; }
.r-10   { border-radius: 10px; }
.r-12   { border-radius: 12px; }
.r-16   { border-radius: 16px; }
.r-20   { border-radius: 20px; }
.r-full { border-radius: 50%; }
.r-pill { border-radius: 999px; }

/* ══ Overflow ══ */
.overflow-h { overflow: hidden; }
.overflow-ya { overflow-y: auto; }

/* ══ Object fit ══ */
.obj-cover   { object-fit: cover; }
.obj-contain { object-fit: contain; }

/* ══ Cursor ══ */
.pointer     { cursor: pointer; }
.cursor-grab { cursor: grab; }

/* ══ Opacity / Visibility ══ */
.opacity-0   { opacity: 0; }
.opacity-30  { opacity: 0.3; }
.opacity-50  { opacity: 0.5; }
.opacity-70  { opacity: 0.7; }

/* ══ Misc ══ */
.no-select  { user-select: none; }
.no-events  { pointer-events: none; }
.box-border { box-sizing: border-box; }
.aspect-sq  { aspect-ratio: 1; }
.aspect-34  { aspect-ratio: 3/4; }
.aspect-169 { aspect-ratio: 16/9; }
.resize-v   { resize: vertical; }
.word-break { word-break: break-word; }

/* ══ Composants réutilisables ══ */

/* Badge statut */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.status-pill--black { background: #f5f5f5; color: #111; }
.status-pill--danger { background: #fef2f2; color: #dc2626; }
.status-pill--muted  { background: #f5f5f5; color: #737373; }
.status-pill--blue   { background: #eff6ff; color: #2563eb; }

/* Alerte / message succès */
.flash-msg {
  padding: 14px 20px; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #d4d4d4; background: #f5f5f5;
  font-size: 14px; color: #111;
}
.flash-msg--danger {
  background: #fef2f2; border-color: #dc2626; color: #7f1d1d;
}

/* Divider */
.divider     { height: 1px; background: #f0f0f0; }
.divider--sm { height: 1px; background: #e5e5e5; margin: 12px 0; }

/* Avatar cercle */
.avatar-circle {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #e5e5e5;
}
.avatar-28  { width: 28px; height: 28px; }
.avatar-32  { width: 32px; height: 32px; }
.avatar-36  { width: 36px; height: 36px; }
.avatar-40  { width: 40px; height: 40px; }
.avatar-48  { width: 48px; height: 48px; }
.avatar-56  { width: 56px; height: 56px; }
.avatar-64  { width: 64px; height: 64px; }
.avatar-80  { width: 80px; height: 80px; }
.avatar-100 { width: 100px; height: 100px; }
.avatar-120 { width: 120px; height: 120px; }

/* Avatar placeholder (lettre initiale) */
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #e5e5e5;
  font-weight: 800; color: #111;
  flex-shrink: 0;
}

/* Label/tag small */
.tag-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #aaa;
}

/* Section title dans une card */
.card-section-title {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #aaa; margin-bottom: 14px;
}

/* Lien retour */
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
  color: #737373; text-decoration: none;
}
.back-link:hover { color: #111; }

/* Role badge */
.role-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  background: #f5f5f5; color: #111;
}

/* Info row dans card détail */
.info-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: #aaa; margin-bottom: 3px;
}
.info-value { font-weight: 700; }

/* Box highlight dans card */
.highlight-box {
  background: #f9f9f9; border-left: 4px solid #111;
  border-radius: 4px; padding: 18px 22px; margin: 20px 0;
}
.highlight-box-title { font-size: 18px; font-weight: 800; }
.highlight-box-date  { font-size: 13px; color: #777; margin-top: 6px; }

/* Prix total */
.price-total {
  font-size: 20px; font-weight: 900;
}
.price-currency { font-size: 13px; font-weight: 600; color: #737373; }

/* Ligne séparateur financier */
.finance-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
}

/* Empty state */
.empty-state {
  padding: 40px; text-align: center;
  color: #737373; font-size: 14px;
}

/* Topbar avec titre + actions */
.page-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}

/* Table actions cell */
.tbl-actions { display: flex; gap: 8px; }

/* Input prix inline */
.price-input {
  width: 110px; padding: 7px 10px;
  border: 1.5px solid #e5e5e5; border-radius: 6px;
  font-size: 13px; font-weight: 600;
}
