/* ==========================================================================
   UTILITIES : CLASSES UTILITAIRES
   ========================================================================== */
:root {
    /* Correspondances pour vos utilitaires */
    --primary-color: var(--accent-blue);
    --secondary-color: var(--slate-blue);
    --dark-color: var(--midnight-blue);
    --bg-light: #1e293b;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 20px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    --midnight-blue: #0f172a;
    --deep-slate: #334155;
    --slate-blue: #64748b;
    --accent-blue: #38bdf8;
    --text-light: #f8fafc;
    --text-light-grey: #94a3b8;
    --white: #ffffff;
    --black: #000000;

    --squircle-radius: 20px;
    --bg-card-light: #0F172A4D;
    --bg-card-dark: #FFFFFF0D;

    /* Couleurs spécifiques aux labels */
    --color-huc: #22c55e;
    --color-hca: #38bdf8;
    --color-hce: #818cf8;
    --color-ace: #f59e0b;
    --color-aic: #f43f5e;
}

/* --- MARGES & PADDINGS --- */
.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-25 { margin-top: 25px !important; }
.mt-30 { margin-top: 30px !important; }
.mt-40 { margin-top: 40px !important; }
.mt-50 { margin-top: 50px !important; }
.mt-60 { margin-top: 60px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-50 { margin-bottom: 50px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mb-70 { margin-bottom: 70px !important; }

.mb-1e { margin-bottom: 1rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-10 { margin-left: 10px !important; }
.ml-20 { margin-left: 20px !important; }

.ml-2-5e { margin-left: 2.5rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-10 { margin-right: 10px !important; }
.mr-20 { margin-right: 20px !important; }

.mr-0-5e { margin-right: 0.5rem !important; }



.pt-0 { padding-top: 0 !important; }
.pt-5 { padding-top: 5px !important; }
.pt-10 { padding-top: 10px !important; }
.pt-15 { padding-top: 10px !important; }
.pt-20 { padding-top: 20px !important; }
.pt-30 { padding-top: 30px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-5 { padding-bottom: 5px !important; }
.pb-10 { padding-bottom: 10px !important; }
.pb-15 { padding-bottom: 10px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pb-30 { padding-bottom: 30px !important; }

.pl-0 { padding-left: 0 !important; }
.pl-10 { padding-left: 10px !important; }
.pl-15 { padding-left: 10px !important; }
.pl-20 { padding-left: 20px !important; }
.pl-30 { padding-left: 30px !important; }


.p-0 { padding: 0 !important; }
.p-10 { padding: 10px !important; }
.p-20 { padding: 20px !important; }

.p-rem { padding: 1.5rem !important; }

/* --- TEXTES & ALIGNEMENTS --- */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-justify { text-align: justify !important; }

.text-bold { font-weight: bold !important; }
.text-semibold { font-weight: 600 !important; }
.text-normal { font-weight: normal !important; }
.text-light { font-weight: 300 !important; }
.text-italic { font-style: italic !important; }


.text-uppercase { text-transform: uppercase !important; }
.text-lowercase { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-white { color: var(--white) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light-grey { color: var(--text-light-grey) !important; }


.text-xs { font-size: 0.65rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-md { font-size: 1rem !important; }
.text-lg { font-size: 1.25rem !important; }
.text-xl { font-size: 1.5rem !important; }
.text-2xl { font-size: 2rem !important; }

.lt-1 { letter-spacing: 1px !important; }


/* --- DISPLAY & VISIBILITY --- */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }
.flex-1 { flex: 1 !important; }

.justify-center { justify-content: center !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }

.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-stretch { align-items: stretch !important; }
.align-baseline { align-items: baseline !important; }

.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-20 { gap: 20px !important; }
.gap-30 { gap: 30px !important; }
.gap-40 { gap: 40px !important; }

.gap-06re { gap: 0.6rem !important; }


/* --- BACKGROUNDS --- */
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

/* --- FONT-FAMILY --- */
.ft-1 { font-family: 'Courier New', Courier, monospace !important; }



/* --- BORDERS --- */
.border { border: 1px solid var(--border-color) !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.border-left { border-left: 1px solid var(--border-color) !important; }
.border-right { border-right: 1px solid var(--border-color) !important; }

.border-left-huc { border-left: 3px solid var(--color-huc) !important; }
.border-left-hca { border-left: 3px solid var(--color-hca) !important; }
.border-left-hce { border-left: 3px solid var(--color-hce) !important; }
.border-left-ace { border-left: 3px solid var(--color-ace) !important; }
.border-left-aic { border-left: 3px solid var(--color-aic) !important; }


.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }

.border-radius { border-radius: var(--border-radius) !important; }
.border-radius-sm { border-radius: calc(var(--border-radius) / 2) !important; }
.border-radius-lg { border-radius: calc(var(--border-radius) * 1.5) !important; }
.border-radius-full { border-radius: 50% !important; }

.border-0 { border: 0 !important; }

/* --- SHADOWS & EFFECTS --- */
.shadow { box-shadow: var(--box-shadow) !important; }
.shadow-hover { box-shadow: var(--box-shadow-hover) !important; }
.shadow-none { box-shadow: none !important; }

.transition { transition: var(--transition) !important; }
.transition-fast { transition: all 0.15s ease !important; }
.transition-slow { transition: all 0.5s ease !important; }

/* --- POSITION --- */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* --- WIDTH & HEIGHT --- */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }

.h-100 { height: 100% !important; }
.h-75 { height: 75% !important; }
.h-50 { height: 50% !important; }
.h-25 { height: 25% !important; }

.min-w-100 { min-width: 100% !important; }
.min-w-300 { min-width: 300px !important; }

.max-w-100 { max-width: 100% !important; }
.max-w-1200 { max-width: 1200px !important; }
.max-w-800 { max-width: 800px !important; }
.max-w-600 { max-width: 600px !important; }

/* --- OPACITY --- */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-100 { opacity: 1 !important; }

/* --- Z-INDEX --- */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-50 { z-index: 50 !important; }
.z-100 { z-index: 100 !important; }
.z-1000 { z-index: 1000 !important; }

/* --- OVERFLOW --- */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* --- CURSOR --- */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* --- LISTES --- */
.list-none { list-style: none !important; }
.list-disc { list-style: disc !important; }
.list-circle { list-style: circle !important; }
.list-square { list-style: square !important; }

/* --- FORMULAIRES --- */
.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1) !important;
    outline: none !important;
}

/* --- UTILITAIRES RESPONSIVE --- */
@media (max-width: 768px) {
    .mobile-hide { display: none !important; }
    .mobile-show { display: block !important; }
    .mobile-flex { display: flex !important; }
    .mobile-column { flex-direction: column !important; }
    .mobile-text-center { text-align: center !important; }
}

@media (min-width: 769px) {
    .desktop-hide { display: none !important; }
    .desktop-show { display: block !important; }
    .desktop-flex { display: flex !important; }
}

/* --- ESPACEMENTS SPÉCIAUX --- */
.section-spacing {
    margin-top: 60px;
    margin-bottom: 60px;
}

.container-narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CLEARFIX --- */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
