/* Aurelius Chat - Nouvelle Charte Graphique */

:root {
    /* Couleurs principales - Nouvelle identité */
    --aurelius-anthracite: rgb(38, 38, 38);
    --aurelius-anthracite-light: rgb(48, 48, 48);
    --aurelius-anthracite-lighter: rgb(58, 58, 58);
    --aurelius-dore: rgb(204, 181, 106);
    --aurelius-dore-light: rgb(214, 191, 116);
    --aurelius-dore-dark: rgb(194, 171, 96);
    
    /* Dégradés subtils */
    --gradient-anthracite: linear-gradient(135deg, rgb(38, 38, 38) 0%, rgb(48, 48, 48) 50%, rgb(58, 58, 58) 100%);
    --gradient-dore: linear-gradient(135deg, rgb(204, 181, 106) 0%, rgb(214, 191, 116) 50%, rgb(194, 171, 96) 100%);
    
    /* Couleurs de fond */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    
    /* Ombres */
    --shadow-anthracite: rgba(38, 38, 38, 0.15);
    --shadow-dore: rgba(204, 181, 106, 0.18);
}

/* Typographies - Roboto & Montserrat */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

/* Scrollbar Styling avec la nouvelle palette */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--aurelius-dore);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aurelius-dore-dark);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient-dore);
    border: none;
    color: var(--aurelius-anthracite);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--aurelius-dore-dark);
    color: white;
    box-shadow: 0 4px 12px var(--shadow-dore);
}

.btn-outline-light:hover {
    background: var(--aurelius-dore);
    color: var(--aurelius-anthracite);
    border-color: var(--aurelius-dore);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px var(--shadow-anthracite);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
}

/* Form Focus States avec doré */
.form-control:focus,
.form-select:focus {
    border-color: var(--aurelius-dore);
    box-shadow: 0 0 0 0.25rem rgba(204, 181, 106, 0.25);
}

/* Navbar avec anthracite */
.navbar-dark {
    background: var(--gradient-anthracite) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
}

.navbar-dark .navbar-text {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link:hover {
    color: var(--aurelius-dore) !important;
}

/* Utility Classes */
.gradient-anthracite {
    background: var(--gradient-anthracite);
}

.gradient-dore {
    background: var(--gradient-dore);
}

.text-anthracite {
    color: var(--aurelius-anthracite);
}

.text-dore {
    color: var(--aurelius-dore);
}

.border-dore {
    border-color: var(--aurelius-dore) !important;
}

.bg-anthracite {
    background-color: var(--aurelius-anthracite);
    color: white;
}

.bg-dore {
    background-color: var(--aurelius-dore);
    color: var(--aurelius-anthracite);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Badges avec doré */
.badge {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.badge-dore {
    background: var(--aurelius-dore);
    color: var(--aurelius-anthracite);
}

/* Liens avec accent doré */
a {
    color: var(--aurelius-dore-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--aurelius-dore);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 56px);
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .example-questions {
        grid-template-columns: 1fr;
    }
    
    .chat-header h4 {
        font-size: 1.1rem;
    }
    
    .chat-header small {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .chat-input-area {
        padding: 0.75rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .welcome-card {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .chat-input-area,
    .typing-indicator {
        display: none !important;
    }
    
    .chat-messages {
        height: auto !important;
        overflow: visible !important;
    }
    
    .message-bubble {
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--aurelius-anthracite);
    }
    
    .message-bubble {
        border: 2px solid var(--aurelius-anthracite);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Accents dorés sur éléments interactifs */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--aurelius-dore);
    outline-offset: 2px;
}

/* Tables avec accents */
.table thead {
    background: var(--aurelius-anthracite);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(204, 181, 106, 0.05);
}

/* Icons avec accent doré */
.bi {
    color: inherit;
}

.text-primary .bi,
.btn-primary .bi {
    color: inherit;
}

/* Cards premium */
.card-premium {
    border: 2px solid var(--aurelius-dore);
    box-shadow: 0 8px 25px var(--shadow-dore);
}

.card-premium .card-header {
    background: var(--gradient-anthracite);
    color: white;
    border-bottom: 3px solid var(--aurelius-dore);
}
