/**
 * Utilities CSS - Classes utilitaires pour remplacer les styles inline
 * Module Stages
 */

/* ============================================
   DISPLAY
   ============================================ */

.d-inline {
    display: inline;
}

.d-inline-flex {
    display: inline-flex;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* ============================================
   FLEXBOX
   ============================================ */

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

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.flex-start {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.flex-items-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-items-baseline {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ============================================
   SPACING - MARGIN
   ============================================ */

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 12px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 18px;
}

.mt-5 {
    margin-top: 20px;
}

.mt-6 {
    margin-top: 24px;
}

.ml-0 {
    margin-left: 0;
}

.ml-1 {
    margin-left: 8px;
}

.ml-2 {
    margin-left: 12px;
}

.ml-3 {
    margin-left: 20px;
}

.ml-4 {
    margin-left: 24px;
}

.ml-auto {
    margin-left: auto;
}

.mr-0 {
    margin-right: 0;
}

.mr-1 {
    margin-right: 8px;
}

.mr-2 {
    margin-right: 12px;
}

/* ============================================
   SPACING - PADDING
   ============================================ */

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 12px;
}

.p-3 {
    padding: 16px;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 24px;
}

.p-6 {
    padding: 32px;
}

.pt-1 {
    padding-top: 8px;
}

.pt-2 {
    padding-top: 12px;
}

.pt-3 {
    padding-top: 1.5rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 8px;
}

/* ============================================
   TYPOGRAPHY - COLORS
   ============================================ */

.text-muted {
    color: #9ca3af;
}

.text-muted-dark {
    color: #6b7280;
}

.text-italic {
    font-style: italic;
}

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-primary {
    color: #60a5fa;
}

.text-warning {
    color: #fbbf24;
}

.text-success {
    color: #22c55e;
}

.text-danger {
    color: #ef4444;
}

.text-info {
    color: #3b82f6;
}

.text-white {
    color: #e5e7eb;
}

.text-gray-light {
    color: #94a3b8;
}

.text-gray-medium {
    color: #64748b;
}

/* ============================================
   TYPOGRAPHY - SIZES
   ============================================ */

.text-xs {
    font-size: 11px;
}

.text-sm {
    font-size: 12px;
}

.text-base {
    font-size: 13px;
}

.text-md {
    font-size: 14px;
}

.text-lg {
    font-size: 16px;
}

.text-xl {
    font-size: 18px;
}

.text-2xl {
    font-size: 20px;
}

.text-3xl {
    font-size: 24px;
}

.text-4xl {
    font-size: 48px;
}

/* ============================================
   TYPOGRAPHY - WEIGHTS
   ============================================ */

.font-normal {
    font-weight: 400;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ============================================
   TYPOGRAPHY - OTHER
   ============================================ */

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whitespace-nowrap {
    white-space: nowrap;
}

/* ============================================
   LAYOUT - GRID
   ============================================ */

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-auto-fit-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.grid-auto-fit-xs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.grid-auto-fit-150 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

/* ============================================
   WIDTH & HEIGHT
   ============================================ */

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.w-100 {
    width: 100px;
}

.w-150 {
    width: 150px;
}

.min-w-0 {
    min-width: 0;
}

.min-w-260 {
    min-width: 260px;
}

/* ============================================
   POSITION & Z-INDEX
   ============================================ */

.position-relative {
    position: relative;
}

.z-1 {
    z-index: 1;
}

.z-100 {
    z-index: 100;
}

.z-1000 {
    z-index: 1000;
}

/* ============================================
   CURSOR
   ============================================ */

.cursor-pointer {
    cursor: pointer;
}

.cursor-text {
    cursor: text;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* ============================================
   VISIBILITY
   ============================================ */

.visibility-hidden {
    visibility: hidden;
}

/* ============================================
   BORDERS
   ============================================ */

.border-top {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

/* ============================================
   FLEX UTILITIES
   ============================================ */

.flex-1 {
    flex: 1;
}

.flex-0-auto {
    flex: 0 0 auto;
}

/* ============================================
   GAP UTILITIES
   ============================================ */

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 6px;
}

.gap-3 {
    gap: 8px;
}

.gap-4 {
    gap: 10px;
}

.gap-5 {
    gap: 12px;
}

.gap-6 {
    gap: 16px;
}

/* ============================================
   COMPONENT-SPECIFIC UTILITIES
   ============================================ */

/* Detail sections */
.detail-header {
    margin: 0 0 1rem;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 14px;
}

.detail-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Form inline */
.form-inline {
    display: inline;
}

/* Empty icon */
.empty-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 16px;
    display: block;
}

/* Field info */
.field-info {
    margin-left: 24px;
}

/* List styles */
.list-disc {
    margin-top: 8px;
    margin-left: 20px;
    list-style: disc;
}

.list-item-spacing {
    margin-bottom: 4px;
}

.list-item-spacing-lg {
    margin-top: 12px;
}

/* Table cell styles */
.table-cell-left {
    text-align: left;
    padding: 8px;
    color: #9ca3af;
}

.table-cell-right {
    text-align: right;
    padding: 8px;
    color: #9ca3af;
}

.table-cell-border {
    padding: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Status label */
.status-label {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
}

.status-value {
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 600;
}

.status-value-lg {
    color: #e5e7eb;
    font-size: 18px;
    font-weight: 600;
}

.status-value-xl {
    color: #e5e7eb;
    font-size: 20px;
    font-weight: 700;
}

/* Help text */
.help-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.help-text-indent {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 24px;
}

/* Badge sizes */
.badge-xs {
    font-size: 11px;
}

/* Gap utilities for flex */
.gap-1 {
    gap: 0.75rem;
}

/* Code display */
.code-display {
    font-size: 14px;
    color: #93c5fd;
}

/* Min height */
.min-h-200 {
    min-height: 200px;
}

/* List padding */
.list-padding {
    padding-left: 18px;
}

/* Margin and padding zero */
.m-0 {
    margin: 0;
}

.p-0 {
    padding: 0;
}