:root {
    /* Couleurs obligatoires */
    --primary-violet: #6f3597;
    --primary-violet-light: #8a4db8;
    --primary-violet-dark: #5a2a7d;
    --bg-beige: #e8e4d7;
    --accent-yellow: #f2d24c;
    --white: #ffffff;
    --text-dark: #2f2437;
    --text-muted: #6b5b78;
    --text-light: #9b8fa8;
    
    /* Variables de design premium */
    --sidebar-width: 260px;
    --header-height: 72px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Ombres premium */
    --shadow-xs: 0 1px 2px rgba(47, 36, 55, 0.04);
    --shadow-sm: 0 2px 8px rgba(47, 36, 55, 0.08);
    --shadow-md: 0 4px 16px rgba(47, 36, 55, 0.1);
    --shadow-lg: 0 8px 32px rgba(47, 36, 55, 0.12);
    --shadow-xl: 0 12px 48px rgba(47, 36, 55, 0.15);
    --shadow-premium: 0 20px 60px rgba(111, 53, 151, 0.15);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ANIMATIONS AVANCÉES ===== */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(111, 53, 151, 0.4), 0 8px 32px rgba(47, 36, 55, 0.12);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(111, 53, 151, 0), 0 8px 32px rgba(47, 36, 55, 0.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(111, 53, 151, 0), 0 8px 32px rgba(47, 36, 55, 0.12);
    }
}

@keyframes borderGlow {
    0% {
        border-color: rgba(111, 53, 151, 0.3);
        box-shadow: 0 0 0 0 rgba(111, 53, 151, 0.3), inset 0 0 20px rgba(111, 53, 151, 0.05);
    }
    50% {
        border-color: rgba(242, 210, 76, 0.6);
        box-shadow: 0 0 0 8px rgba(111, 53, 151, 0.1), inset 0 0 30px rgba(111, 53, 151, 0.1);
    }
    100% {
        border-color: rgba(111, 53, 151, 0.3);
        box-shadow: 0 0 0 0 rgba(111, 53, 151, 0.3), inset 0 0 20px rgba(111, 53, 151, 0.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes headTilt {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-3deg);
    }
    75% {
        transform: rotate(3deg);
    }
}

@keyframes auraGlow {
    0%, 100% {
        opacity: 0.4;
        filter: blur(8px);
    }
    50% {
        opacity: 0.8;
        filter: blur(12px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes elasticBounce {
    0% {
        transform: scale(0.5) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Animation focusDim supprimée */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-beige);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Layout Global */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR PREMIUM ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-violet) 0%, #5a2a7d 50%, #4a1f6b 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 24px 16px;
    transition: var(--transition-base);
    box-shadow: 4px 0 16px rgba(111, 53, 151, 0.2);
    overflow-y: auto;
}

.sidebar-logo {
    display: block;
    margin: 38px 0 28px 14px;
    padding: 0;
}

.logo-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: none;
}

.sidebar-nav {
    flex: 1;
}

.nav-section-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
    margin: 28px 12px 14px;
    font-weight: 600;
}

.nav-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin: 8px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: translateX(2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border-left-color: var(--accent-yellow);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.1);
}

.nav-item svg {
    flex-shrink: 0;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-copy {
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.30);
    line-height: 1.6;
    padding: 8px 12px 4px;
}

.credits-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.credits-card:hover {
    background: rgba(255, 255, 255, 0.16);
}

.credits-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-value {
    font-size: 20px;
    font-weight: 700;
}

.gsc-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* ===== HEADER PREMIUM ===== */
.header {
    height: var(--header-height);
    background: rgba(232, 228, 215, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(47, 36, 55, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(47, 36, 55, 0.04);
}

.header-title-group h1 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-new-chat {
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-light) 100%);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(111, 53, 151, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-new-chat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition-fast);
}

.btn-new-chat:hover::before {
    left: 100%;
}

.btn-new-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 53, 151, 0.25);
}

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

/* Dashboard Content */
.content-wrapper {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.kpi-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(47, 36, 55, 0.04);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-violet), var(--accent-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-card:hover::before {
    opacity: 1;
}

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

.kpi-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    letter-spacing: -1px;
}

.kpi-trend {
    font-size: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

/* Tables */
.section-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(47, 36, 55, 0.04);
    overflow: hidden;
    margin-bottom: 32px;
    transition: var(--transition-base);
}

.section-card:hover {
    box-shadow: var(--shadow-md);
}

.section-header {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(47, 36, 55, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

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

.modern-table th {
    text-align: left;
    padding: 16px 32px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: #fafafa;
    font-weight: 600;
}

.modern-table td {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(47, 36, 55, 0.03);
    font-size: 14px;
    color: var(--text-dark);
}

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

.modern-table tr {
    transition: background 0.2s ease;
}

.modern-table tr:hover {
    background: #fcfcfc;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-primary { background: #f5f3ff; color: #7c3aed; }

/* ===== CHAT UI PREMIUM ===== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    position: relative;
}

.messages-viewport {
    flex: 1;
    overflow-y: auto;
    padding: 48px 20px 160px;
    background: linear-gradient(180deg, var(--bg-beige) 0%, rgba(232, 228, 215, 0.5) 100%);
}

.messages-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.message {
    display: flex;
    gap: 16px;
    animation: slideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
}

.avatar-ai {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffd966 100%);
    color: var(--primary-violet);
    box-shadow: 0 4px 12px rgba(242, 210, 76, 0.3);
}

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

.avatar-user {
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(111, 53, 151, 0.25);
}

.bubble {
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    max-width: 85%;
    font-size: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}

.bubble-ai {
    background: var(--white);
    border: 1px solid rgba(47, 36, 55, 0.08);
    color: var(--text-dark);
    box-shadow: 0 2px 12px rgba(47, 36, 55, 0.06);
}

.bubble-user {
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(111, 53, 151, 0.2);
}

.message-user {
    flex-direction: row-reverse;
}

.message-user .bubble {
    max-width: 85%;
}

.chat-input-area {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px 40px;
    background: linear-gradient(0deg, var(--bg-beige) 70%, rgba(232, 228, 215, 0.3) 100%);
}

.input-container {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border: 1px solid rgba(111, 53, 151, 0.1);
    transition: var(--transition-fast);
}

.input-container:focus-within {
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 4px rgba(111, 53, 151, 0.1), var(--shadow-lg);
}

.chat-textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    max-height: 200px;
    background: transparent;
    color: var(--text-dark);
}

.chat-textarea::placeholder {
    color: var(--text-light);
}

.input-actions {
    display: flex;
    padding: 4px;
    gap: 4px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    position: relative;
}

.btn-icon:hover {
    background: rgba(47, 36, 55, 0.05);
    color: var(--text-dark);
    transform: scale(1.05);
}

.btn-icon:active {
    transform: scale(0.95);
}

.btn-send {
    background: linear-gradient(135deg, var(--primary-violet) 0%, var(--primary-violet-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(111, 53, 151, 0.15);
}

.btn-send:hover {
    background: linear-gradient(135deg, var(--primary-violet-light) 0%, var(--primary-violet) 100%);
    box-shadow: 0 6px 16px rgba(111, 53, 151, 0.25);
    transform: scale(1.08);
}

.btn-send:active {
    transform: scale(0.95);
}

/* Typing animation */
.typing-dots {
    display: flex;
    gap: 5px;
    padding: 8px 0;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1.0); opacity: 1; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(47, 36, 55, 0.12); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(47, 36, 55, 0.2); }

/* ===== ANIMATIONS AVANCÉES APPLIQUÉES ===== */

/* 1. Glow de Réflexion */
.input-container.ai-thinking {
    animation: borderGlow 2s ease-in-out infinite;
}

.ai-thinking-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent-yellow);
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(242, 210, 76, 0.7);
}

/* 2. Streaming Effect */
.message-streaming {
    animation: textReveal 0.4s ease-out;
}

.word-stream {
    display: inline;
    animation: textReveal 0.3s ease-out;
}

/* 3. Micro-Cards Pop-up */
.micro-card {
    animation: elasticBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, rgba(111, 53, 151, 0.1) 0%, rgba(242, 210, 76, 0.05) 100%);
    border: 1px solid rgba(111, 53, 151, 0.2);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-violet);
    display: inline-block;
}

.micro-card-icon {
    margin-right: 6px;
}

/* 4. Avatar Réactif */
.avatar-ai.thinking {
    animation: breathe 2s ease-in-out infinite;
}

.avatar-ai::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: radial-gradient(circle, rgba(242, 210, 76, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: auraGlow 2s ease-in-out infinite;
    z-index: -1;
}

.avatar-ai.active::after {
    opacity: 1;
}

.avatar-ai img {
    animation: headTilt 3s ease-in-out infinite;
}

/* 5. Focus Intelligent - DÉSACTIVÉ */
/* Supprimé pour garder l'interface claire et sans assombrissement */

/* 6. Morphing Transition */n.page-transition {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-transition-out {
    animation: slideInRight 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) reverse;
}

/* Améliorations des bulles avec animations */
.bubble {
    position: relative;
    overflow: hidden;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

/* Sparkline effect pour les données */
.sparkline {
    display: inline-block;
    height: 24px;
    width: 60px;
    margin: 0 4px;
}

.sparkline-bar {
    display: inline-block;
    width: 4px;
    height: 100%;
    margin: 0 1px;
    background: linear-gradient(180deg, var(--primary-violet), var(--accent-yellow));
    border-radius: 2px;
    animation: fadeInUp 0.6s ease-out;
}

.sparkline-bar:nth-child(1) { animation-delay: 0.1s; }
.sparkline-bar:nth-child(2) { animation-delay: 0.2s; }
.sparkline-bar:nth-child(3) { animation-delay: 0.3s; }
.sparkline-bar:nth-child(4) { animation-delay: 0.4s; }
.sparkline-bar:nth-child(5) { animation-delay: 0.5s; }

/* Utilities */
.text-bold { font-weight: 600; }
.mt-4 { margin-top: 16px; }
.hidden { display: none; }

/* Priority Actions Cards */
.priority-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.priority-card {
    flex: 1;
    min-width: 300px;
    padding: 24px;
    border: 1px solid rgba(111, 53, 151, 0.15);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(111, 53, 151, 0.03) 0%, rgba(242, 210, 76, 0.02) 100%);
    transition: var(--transition-base);
}

.priority-card:hover {
    border-color: rgba(111, 53, 151, 0.3);
    background: linear-gradient(135deg, rgba(111, 53, 151, 0.06) 0%, rgba(242, 210, 76, 0.04) 100%);
    transform: translateY(-4px);
}

.priority-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.priority-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(47, 36, 55, 0.05);
    padding: 0 32px;
}

.tab-item {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-item:hover {
    color: var(--text-dark);
}

.tab-item.active {
    color: var(--primary-violet);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-violet);
}

/* Grid Layouts */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 32px;
}

.card-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid rgba(47, 36, 55, 0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    cursor: pointer;
}

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

.card-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-item-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.card-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}


/* ── Compléments Chrono SEO V2 ─────────────────────────────────────────────── */

/* Badge erreur */
.badge-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* Message IA (direction normale) */
.message-ai {
    flex-direction: row;
}

/* Header title group */
.header-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Trend neutral */
.trend-neutral {
    color: var(--text-light);
}

/* Chat welcome screen */
.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 60px 40px;
    text-align: center;
    flex: 1;
}

/* Bouton avatar utilisateur */
.user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-violet), var(--primary-violet-light));
    color: var(--white);
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}
.user-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(111, 53, 151, 0.3);
}

/* Spin animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

/* Input container AI thinking state */
.input-container.ai-thinking {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(242, 210, 76, 0.15), var(--shadow-lg);
    animation: borderGlow 2s ease-in-out infinite;
}

/* Logo sidebar */
.logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.3px;
}

/* ═══════════════════════════════════════════════════════════════════════
   PARTNER CENTER — Sidebar & shared styles
   ═══════════════════════════════════════════════════════════════════════ */

/* Lien "Devenir partenaire" dans la sidebar */
.nav-item-partner {
    background: linear-gradient(135deg, rgba(242,210,76,0.12) 0%, rgba(111,53,151,0.12) 100%);
    border: 1px solid rgba(242,210,76,0.3);
    border-radius: var(--border-radius-sm);
    margin: 4px 0 8px;
    color: #f2d24c !important;
    font-weight: 600;
    position: relative;
    justify-content: flex-start;
    gap: 8px;
}
.nav-item-partner:hover {
    background: linear-gradient(135deg, rgba(242,210,76,0.22) 0%, rgba(111,53,151,0.22) 100%);
    border-color: rgba(242,210,76,0.6);
    transform: translateX(3px);
}
.nav-item-partner.active {
    background: linear-gradient(135deg, rgba(242,210,76,0.25) 0%, rgba(111,53,151,0.3) 100%);
    border-color: rgba(242,210,76,0.7);
}
.nav-item-partner i {
    color: #f2d24c;
}
.partner-badge-new {
    margin-left: auto;
    background: linear-gradient(135deg, #f2d24c, #e8b800);
    color: #2f2437;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    flex-shrink: 0;
    animation: glowPulse 2.5s ease-in-out infinite;
}
