
/**
 * Reset CSS - Formations B-Ready
 * Normalisation des styles par défaut
 */

/* ============================================
 * BOX SIZING
 * ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
 * HTML & BODY
 * ============================================ */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--gray-900);
    background: #D9D1C9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
 * TYPOGRAPHIE
 * ============================================ */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--font-bold);
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

/* ============================================
 * LISTES
 * ============================================ */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ============================================
 * IMAGES & MÉDIAS
 * ============================================ */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
 * FORMULAIRES
 * ============================================ */
input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ============================================
 * TABLES
 * ============================================ */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}

/* ============================================
 * UTILITAIRES
 * ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
 * SCROLLBAR (Webkit)
 * ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-400);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-600);
}

/* ============================================
 * SELECTION
 * ============================================ */
::selection {
    background-color: var(--primary-500);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-500);
    color: white;
}


/* ============================================================================
   2. VARIABLES CSS - PALETTE ROUGE BRIQUE & GRIS TAUPE
   ============================================================================ */

/**
 * Variables CSS - Formations B-Ready
 * Design System avec palette rouge brique et gris taupe
 * Basé sur le cahier des charges graphique
 */

:root {
    /* ============================================
     * COULEURS PRINCIPALES - ROUGE BRIQUE
     * ============================================ */
    --primary-50: #ffe5e9;
    --primary-100: #ffc7cf;
    --primary-200: #ff8f9f;
    --primary-300: #ff576f;
    --primary-400: #ff1f3f;
    --primary-500: #E1001A;    /* Rouge brique principal */
    --primary-600: #B13721;    /* Rouge dégradé foncé pour survol */
    --primary-700: #8e1317;
    --primary-800: #6b0e11;
    --primary-900: #480a0c;

    /* ============================================
     * COULEURS SECONDAIRES - GRIS TAUPE
     * ============================================ */
    --secondary-50: #f9f7f5;
    --secondary-100: #f3eeea;
    --secondary-200: #e6ddd5;
    --secondary-300: #d9ccc0;
    --secondary-400: #ccbbab;
    --secondary-500: #A38F7B;    /* Gris taupe clair principal */
    --secondary-600: #8a7767;
    --secondary-700: #6f5f53;
    --secondary-800: #54473f;
    --secondary-900: #392f2b;

    /* ============================================
     * COULEURS NEUTRES
     * ============================================ */
    --gray-50: #FAFAFA;
    --gray-100: #F6F2EF;        /* Beige sable clair */
    --gray-200: #E5E5E5;        /* Gris clair neutre */
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #4A4A4A;        /* Gris foncé pour texte principal */
    --gray-800: #2d2d2d;
    --gray-900: #000000;        /* Noir pour titres forts */

    /* ============================================
     * COULEURS FONCTIONNELLES
     * ============================================ */
    --success-50: #f0fdf4;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;

    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;
    --error-700: #b91c1c;

    --info-50: #eff6ff;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1d4ed8;

    /* ============================================
     * GLASSMORPHISM
     * ============================================ */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(225, 0, 26, 0.15);
    --glass-blur: blur(8px);

    /* ============================================
     * DÉGRADÉS (LÉGERS ET SUBTILS)
     * ============================================ */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-purple: linear-gradient(135deg, #E1001A 0%, #B13721 100%);
    --gradient-blue: linear-gradient(135deg, #ff1f3f 0%, #E1001A 100%);
    --gradient-ocean: linear-gradient(135deg, #B13721 0%, #8e1317 100%);
    --gradient-taupe: linear-gradient(135deg, #A38F7B 0%, #8a7767 100%);

    /* ============================================
     * TYPOGRAPHIE
     * ============================================ */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', monospace;

    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */

    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* ============================================
     * ESPACEMENTS
     * ============================================ */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */

    /* ============================================
     * BORDER RADIUS
     * ============================================ */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ============================================
     * OMBRES
     * ============================================ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* ============================================
     * TRANSITIONS
     * ============================================ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ============================================
     * Z-INDEX
     * ============================================ */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ============================================
     * BREAKPOINTS (pour référence JavaScript)
     * ============================================ */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;

    /* ============================================
     * ADMIN VARIABLES
     * ============================================ */
    --admin-sidebar-width: 250px;
    --admin-header-height: 60px;
    --admin-primary: #E1001A;        /* Rouge brique */
    --admin-primary-dark: #B13721;   /* Rouge foncé */
    --admin-secondary: #A38F7B;      /* Gris taupe */
    --admin-bg: #F6F2EF;             /* Beige sable clair */
    --admin-sidebar-bg: #4A4A4A;     /* Gris foncé */
    --admin-sidebar-text: #F6F2EF;   /* Beige clair pour texte */
    --admin-sidebar-active: #E1001A; /* Rouge brique */
}


/* ============================================================================
   3. UTILITIES CSS
   ============================================================================ */

/**
 * Utilities CSS - Formations B-Ready
 * Classes utilitaires réutilisables
 */

/* ============================================
 * LAYOUT & CONTAINERS
 * ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.container-xl {
    max-width: 1280px;
}

/* ============================================
 * FLEX
 * ============================================ */
.flex {
    display: flex;
}

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

.flex-row {
    flex-direction: row;
}

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

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

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

.items-start {
    align-items: flex-start;
}

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

.items-end {
    align-items: flex-end;
}

.items-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
 * GRID
 * ============================================ */
.grid {
    display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================
 * SPACING (Margin & Padding)
 * ============================================ */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }
.ml-6 { margin-left: var(--space-6); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }
.mr-6 { margin-right: var(--space-6); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-0 { padding-top: 0; }
.pt-2 { padding-top: var(--space-2); }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: var(--space-2); }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

/* ============================================
 * TEXT
 * ============================================ */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

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

.italic { font-style: italic; }
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }

/* ============================================
 * COLORS
 * ============================================ */
.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--secondary-600); }
.text-success { color: var(--success-600); }
.text-warning { color: var(--warning-600); }
.text-error { color: var(--error-600); }
.text-gray { color: var(--gray-600); }
.text-white { color: white; }
.text-black { color: black; }

.bg-primary { background-color: var(--primary-500); }
.bg-secondary { background-color: var(--secondary-500); }
.bg-success { background-color: var(--success-500); }
.bg-warning { background-color: var(--warning-500); }
.bg-error { background-color: var(--error-500); }
.bg-gray { background-color: var(--gray-100); }
.bg-white { background-color: #D9D1C9; }
.bg-transparent { background-color: transparent; }

/* ============================================
 * DISPLAY
 * ============================================ */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

@media (max-width: 767px) {
    .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
    .md\:block { display: block; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:hidden { display: none; }
}

/* ============================================
 * POSITION
 * ============================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* ============================================
 * WIDTH & HEIGHT
 * ============================================ */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-screen { height: 100vh; }

.min-h-screen { min-height: 100vh; }

/* ============================================
 * BORDER
 * ============================================ */
.border { border: 1px solid var(--gray-300); }
.border-t { border-top: 1px solid var(--gray-300); }
.border-b { border-bottom: 1px solid var(--gray-300); }
.border-l { border-left: 1px solid var(--gray-300); }
.border-r { border-right: 1px solid var(--gray-300); }

.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ============================================
 * SHADOW
 * ============================================ */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ============================================
 * OPACITY
 * ============================================ */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

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

/* ============================================
 * OVERFLOW
 * ============================================ */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ============================================
 * Z-INDEX
 * ============================================ */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ============================================
 * TRANSITIONS
 * ============================================ */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* ============================================
 * ANIMATIONS
 * ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

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

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn var(--transition-base);
}

.animate-fadeOut {
    animation: fadeOut var(--transition-base);
}

.animate-slideInUp {
    animation: slideInUp var(--transition-base);
}

.animate-slideInDown {
    animation: slideInDown var(--transition-base);
}

/* ============================================
 * MISC
 * ============================================ */
.pointer-events-none {
    pointer-events: none;
}

.select-none {
    user-select: none;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================================================
   4. COMPONENTS CSS
   ============================================================================ */

/**
 * Components CSS - Formations B-Ready
 * Composants réutilisables
 */

/* ============================================
 * BUTTONS
 * ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    line-height: 1;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

/* Button Variants */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-600);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-700);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover:not(:disabled) {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--error-500);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover:not(:disabled) {
    background: var(--error-600);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-600);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-500);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--gray-100);
}

/* Button Full Width */
.btn-block {
    width: 100%;
}

/* ============================================
 * FORM ELEMENTS
 * ============================================ */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-medium);
    color: var(--gray-700);
    font-size: var(--text-sm);
}

.form-label-required::after {
    content: " *";
    color: var(--error-500);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--gray-900);
    background: #D9D1C9;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(225, 0, 26, 0.1);
    outline: none;
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-input-error {
    border-color: var(--error-500);
}

.form-input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--error-600);
}

.form-help {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    background: #D9D1C9;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.form-checkbox {
    border-radius: var(--radius-sm);
}

.form-radio {
    border-radius: var(--radius-full);
}

.form-checkbox:checked,
.form-radio:checked {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.form-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-radio:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #D9D1C9;
    border-radius: var(--radius-full);
}

/* ============================================
 * CARDS
 * ============================================ */
.card {
    background: #D9D1C9;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ============================================
 * BADGES
 * ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-success {
    background: var(--success-50);
    color: var(--success-700);
}

.badge-warning {
    background: var(--warning-50);
    color: var(--warning-700);
}

.badge-error {
    background: var(--error-50);
    color: var(--error-700);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
 * ALERTS
 * ============================================ */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.alert-success {
    background: var(--success-50);
    border-color: var(--success-500);
    color: var(--success-700);
}

.alert-warning {
    background: var(--warning-50);
    border-color: var(--warning-500);
    color: var(--warning-700);
}

.alert-error {
    background: var(--error-50);
    border-color: var(--error-500);
    color: var(--error-700);
}

.alert-info {
    background: var(--info-50);
    border-color: var(--info-500);
    color: var(--info-700);
}

/* ============================================
 * LOADER / SPINNER
 * ============================================ */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-500);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

.loader-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loader-lg {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
 * DIVIDER
 * ============================================ */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-6) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: var(--gray-200);
}

/* ============================================
 * AVATAR
 * ============================================ */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--font-semibold);
    overflow: hidden;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-sm);
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: var(--text-2xl);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
 * BREADCRUMB
 * ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    color: var(--gray-400);
}

.breadcrumb-item.active {
    color: var(--gray-900);
    font-weight: var(--font-semibold);
}

/* ============================================
 * PAGINATION
 * ============================================ */
.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    background: #D9D1C9;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pagination-item:hover:not(.active):not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.pagination-item.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    font-weight: var(--font-semibold);
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ============================================================================
   5. GLASSMORPHISM STYLES
   ============================================================================ */

/**
 * Glassmorphism Styles - Formations B-Ready
 * Effet de verre dépoli moderne
 */

/* ============================================
 * GLASS CARD - Base
 * ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(225, 0, 26, 0.2);
}

/* ============================================
 * GLASS CARD - Variantes
 * ============================================ */
.glass-card-dark {
    background: var(--glass-bg-dark);
}

.glass-card-sm {
    padding: var(--space-4);
    border-radius: var(--radius-xl);
}

.glass-card-lg {
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
}

.glass-card-no-hover:hover {
    transform: none;
    box-shadow: var(--glass-shadow);
}

/* ============================================
 * GLASS HEADER
 * ============================================ */
.glass-header {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-4) var(--space-6);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
}

/* ============================================
 * GLASS NAVBAR
 * ============================================ */
.glass-navbar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--glass-shadow);
}

/* ============================================
 * GLASS BUTTON
 * ============================================ */
.glass-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    font-weight: var(--font-semibold);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.glass-btn:active {
    transform: translateY(0);
}

/* ============================================
 * GLASS INPUT
 * ============================================ */
.glass-input {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    color: var(--gray-900);
    font-size: var(--text-base);
    width: 100%;
    transition: all var(--transition-fast);
}

.glass-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--primary-500);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 0, 26, 0.1);
}

/* ============================================
 * GLASS MODAL
 * ============================================ */
.glass-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-2xl);
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    z-index: var(--z-modal);
}

/* ============================================
 * GLASS BADGE
 * ============================================ */
.glass-badge {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: white;
    display: inline-block;
}

/* ============================================
 * GLASS SIDEBAR
 * ============================================ */
.glass-sidebar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: var(--z-fixed);
}

/* ============================================
 * GLASS DROPDOWN
 * ============================================ */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    min-width: 200px;
}

.glass-dropdown-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--gray-900);
}

.glass-dropdown-item:hover {
    background: rgba(225, 0, 26, 0.1);
}

/* ============================================
 * GLASS TOOLTIP
 * ============================================ */
.glass-tooltip {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-lg);
    position: absolute;
    z-index: var(--z-tooltip);
}

/* ============================================
 * GLASS PROGRESS BAR
 * ============================================ */
.glass-progress-container {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-full);
    overflow: hidden;
    height: 8px;
}

.glass-progress-bar {
    background: var(--gradient-primary);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

/* ============================================
 * GLASS ALERT
 * ============================================ */
.glass-alert {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.glass-alert-success {
    border-left: 4px solid var(--success-500);
}

.glass-alert-warning {
    border-left: 4px solid var(--warning-500);
}

.glass-alert-error {
    border-left: 4px solid var(--error-500);
}

.glass-alert-info {
    border-left: 4px solid var(--info-500);
}


/* ============================================================================
   6. MAIN LAYOUT
   ============================================================================ */

/**
 * Main CSS - Formations B-Ready
 * Layout principal de l'application
 */

/* ============================================
 * LAYOUT GLOBAL
 * ============================================ */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: var(--space-6) 0;
}

/* ============================================
 * HEADER & NAVIGATION
 * ============================================ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-500);
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.logo-text {
    display: inline-block;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    color: var(--gray-700);
    font-weight: var(--font-medium);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link.active {
    color: var(--primary-600);
    font-weight: var(--font-semibold);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    color: var(--gray-700);
}

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

    .nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-6);
        box-shadow: var(--shadow-xl);
        gap: var(--space-4);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
 * FOOTER
 * ============================================ */
.footer {
    background: #373C40;
    border-top: 1px solid #4a5055;
    padding: var(--space-8) 0 var(--space-6);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

.footer-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-4);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

/* ============================================
 * PAGE HERO
 * ============================================ */
.hero {
    padding: var(--space-12) 0;
    text-align: center;
    background: var(--gradient-primary);
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* CTA Section avec fond rouge */
.cta-section {
    padding: var(--space-12) 0;
    text-align: center;
    background: var(--gradient-primary);
}

/* ============================================
 * SECTION
 * ============================================ */
.section {
    padding: var(--space-12) 0;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    text-align: center;
    margin-bottom: var(--space-8);
}

/* ============================================
 * FORMATION CARD
 * ============================================ */
.formation-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.formation-card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
}

.formation-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.formation-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.formation-meta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.formation-card-body {
    padding: var(--space-6);
    flex: 1;
}

.formation-description {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.formation-card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.formation-price {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary-600);
}

/* ============================================
 * USER DASHBOARD
 * ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

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

.stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--primary-600);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
 * RESPONSIVE TABLES
 * ============================================ */
.table-container {
    overflow-x: auto;
    background: #D9D1C9;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

.table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.table th {
    padding: var(--space-4);
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

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

/* ============================================
 * MODALS
 * ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #D9D1C9;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
}

.modal-close {
    font-size: var(--text-2xl);
    color: var(--gray-600);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--gray-900);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* ============================================
 * EMPTY STATE
 * ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.empty-state-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.empty-state-text {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
}


/* ============================================================================
   7. ADMIN INTERFACE
   ============================================================================ */

/* ===================================
   ADMIN INTERFACE STYLES
   =================================== */

/* Admin Body */
.admin-body {
    background-color: var(--admin-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
    height: var(--admin-header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0.25rem 2rem;
}

.admin-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
}

.admin-logo .logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-icon {
    font-size: 1.75rem;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    font-weight: 500;
    opacity: 0.95;
}

.btn-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Admin Container */
.admin-container {
    display: flex;
    margin-top: var(--admin-header-height);
    min-height: calc(100vh - var(--admin-header-height));
}

/* Sidebar */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    background-color: var(--admin-sidebar-bg);
    position: fixed;
    top: var(--admin-header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.admin-nav ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.admin-nav li {
    margin: 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--admin-sidebar-text);
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--admin-sidebar-active);
}

.admin-nav a.active {
    background-color: rgba(225, 0, 26, 0.1);
    border-left-color: var(--admin-sidebar-active);
    color: white;
}

.nav-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.nav-text {
    font-weight: 500;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    padding: 2rem;
}

.admin-content {
    max-width: 1400px;
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
}

.page-header p {
    color: #718096;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #D9D1C9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-card-title {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-card-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
}

.stat-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #718096;
}

/* Admin Cards Override */
.admin-main .card {
    background: #D9D1C9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.admin-main .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-main .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #D9D1C9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background-color: #f7fafc;
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

.admin-table tbody tr {
    transition: background-color 0.2s;
}

.admin-table tbody tr:hover {
    background-color: #f7fafc;
}

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

/* Admin Badges Override */
.admin-main .badge-success {
    background-color: #c6f6d5;
    color: #22543d;
}

.admin-main .badge-warning {
    background-color: #feebc8;
    color: #7c2d12;
}

.admin-main .badge-danger {
    background-color: #fed7d7;
    color: #742a2a;
}

.admin-main .badge-info {
    background-color: #bee3f8;
    color: #2c5282;
}

.admin-main .badge-secondary {
    background-color: #e2e8f0;
    color: #2d3748;
}

/* Admin Buttons Override */
.admin-main .btn-primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: white;
}

.admin-main .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(225, 0, 26, 0.3);
}

.admin-main .btn-secondary {
    background-color: #e2e8f0;
    color: #2d3748;
}

.admin-main .btn-secondary:hover {
    background-color: #cbd5e0;
}

.admin-main .btn-danger {
    background-color: #f56565;
    color: white;
}

.admin-main .btn-danger:hover {
    background-color: #e53e3e;
}

.admin-main .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* Admin Forms Override */
.admin-main .form-group {
    margin-bottom: 1.5rem;
}

.admin-main .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.875rem;
}

.admin-main .form-label.required::after {
    content: " *";
    color: #f56565;
}

.admin-main .form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-main .form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(225, 0, 26, 0.1);
}

.admin-main .form-control.error {
    border-color: #f56565;
}

.form-error {
    color: #f56565;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.admin-main .form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.875rem;
    background-color: #D9D1C9;
    cursor: pointer;
}

.admin-main .form-select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(225, 0, 26, 0.1);
}

.admin-main textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn-edit {
    background-color: #bee3f8;
    color: #2c5282;
}

.action-btn-edit:hover {
    background-color: #90cdf4;
}

.action-btn-delete {
    background-color: #fed7d7;
    color: #742a2a;
}

.action-btn-delete:hover {
    background-color: #fc8181;
}

/* Admin Empty State */
.admin-main .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #718096;
}

.admin-main .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.admin-main .empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.admin-main .empty-state-text {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Mobile Menu Bar */
.mobile-menu-bar {
    display: none;
    position: fixed;
    top: var(--admin-header-height);
    left: 0;
    right: 0;
    background-color: #D9D1C9;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-btn span {
    width: 2rem;
    height: 0.25rem;
    background: var(--admin-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    transform-origin: 1px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 1023px) {
    .mobile-menu-bar {
        display: block;
    }

    .admin-container {
        margin-top: 3.5rem;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 998;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ============================================
 * PAGE DE MAINTENANCE
 * ============================================ */

body.maintenance-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: linear-gradient(135deg, #F6F2EF 0%, #FFFFFF 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
}

body.maintenance-page .maintenance-container {
    max-width: 600px !important;
    background: #FFFFFF !important;
    padding: 60px 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    text-align: center !important;
    border-top: 5px solid #E1001A !important;
}

body.maintenance-page .maintenance-container .logo {
    font-size: 48px !important;
    margin-bottom: 20px !important;
    color: #E1001A !important;
    text-align: center !important;
    display: block !important;
}

body.maintenance-page .maintenance-container h1 {
    color: #4A4A4A !important;
    font-size: 32px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

body.maintenance-page .maintenance-container .subtitle {
    color: #A38F7B !important;
    font-size: 20px !important;
    margin-bottom: 30px !important;
    font-weight: 400 !important;
    text-align: center !important;
}

body.maintenance-page .maintenance-container .message {
    color: #4A4A4A !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    text-align: center !important;
}

body.maintenance-page .maintenance-container .brand {
    display: inline-block !important;
    background: #E1001A !important;
    color: #FFFFFF !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

body.maintenance-page .maintenance-container .brand:hover {
    background: #B13721 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 20px rgba(225, 0, 26, 0.3) !important;
}

body.maintenance-page .maintenance-container .footer {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid #E5E5E5 !important;
    color: #A38F7B !important;
    font-size: 14px !important;
    background: transparent !important;
    text-align: center !important;
}

@media (max-width: 600px) {
    body.maintenance-page .maintenance-container {
        padding: 40px 25px !important;
    }

    body.maintenance-page .maintenance-container h1 {
        font-size: 26px !important;
    }

    body.maintenance-page .maintenance-container .subtitle {
        font-size: 18px !important;
    }
}
