/* TXL Gen4 - Base Custom CSS */
/* Extrait du template base.html pour améliorer les performances */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0284c7;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --navbar-height: 76px;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Largeur maximale unifiée pour tout le contenu */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 1200px !important;
}

/* Responsive pour les petits écrans */
@media (max-width: 1240px) {
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: calc(100% - 2rem) !important;
        margin: 0 auto !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

body.has-fixed-navbar {
    padding-top: var(--navbar-height); /* Compenser la navbar fixed-top */
}

/* Navigation */
.navbar-custom {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98) 0%, rgba(226, 232, 240, 0.98) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    min-height: var(--navbar-height);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.12);
}

.navbar-custom.scrolled {
    background: linear-gradient(135deg, rgba(241, 245, 249, 1) 0%, rgba(226, 232, 240, 1) 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    border-bottom: 1px solid rgba(102, 126, 234, 0.25);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
}

.tenant-brand-info {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: -0.2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Menu dropdown utilisateur */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 1rem;
}

/* Boutons */
.btn-custom {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

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

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary-custom {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cards */
.card-custom {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

.section-padding-lg {
    padding: 8rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-lg {
        padding: 4rem 0;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
