:root {
    /* Variables - Thème Sombre Hub */
    --bg-color: #0d0f1a;
    --surface-color: #161a2e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents Tech & Data */
    --accent-1: #3b82f6; /* Bleu (Power BI / SQL) */
    --accent-2: #10b981; /* Vert (Engineering / dbt) */
    --accent-3: #f59e0b; /* Orange (Cloud / Snowflake) */
    --accent-4: #8b5cf6; /* Violet (IA / ML) */
    
    /* Variables Glassmorphism */
    --glass-bg: rgba(22, 26, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, .logo, .nav-links, button {
    font-family: 'Outfit', sans-serif;
}

/* --- Background Blobs --- */
.blob {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: float 30s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 60%);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-4) 0%, transparent 60%);
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.05); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* --- Utilities --- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Category Specific Colors */
.category-badge.bi { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.category-badge.engineering { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.category-badge.cloud { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.category-badge.ai { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }

/* --- Navigation --- */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(13, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.font-light { font-weight: 300; }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* --- Buttons --- */
button, .primary-btn {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-4));
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn.sm { padding: 8px 16px; font-size: 0.85rem; }

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.secondary-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 8px 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: var(--glass-highlight);
}

/* --- Header --- */
.hub-header {
    text-align: center;
    padding: 4rem 6% 3rem;
}

/* Version compacte pour le glossaire */
.hub-header.glossary-header {
    padding: 2rem 6% 1rem;
}

.hub-header.glossary-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hub-header.glossary-header p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hub-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hub-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* --- Search Bar [NOUVEAU] --- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 2px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--accent-1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 15px;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 14px 0;
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

/* --- Alphabet Navigation --- */
.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.letter-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: all 0.2s;
    font-weight: 700;
}

.letter-btn:not(.disabled):hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.letter-btn.active {
    background: var(--accent-1);
    color: white;
    border-color: var(--accent-1);
}

.letter-btn.disabled {
    opacity: 0.2;
    cursor: default;
}

.letter-btn[data-letter="all"] {
    width: auto;
    padding: 0 12px;
}

/* --- Glossary Layout --- */
.glossary-main {
    padding: 0 6% 4rem;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.glossary-card {
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s;
}

.glossary-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-1);
}

.glossary-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.glossary-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.glossary-card .card-tag {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent-1);
    letter-spacing: 1px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
}

/* --- Layout Container --- */
.hub-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    padding: 0 6% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.glass-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2.5rem;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.category-list a:hover, .category-list a.active {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.category-list a.active {
    border-left: 3px solid var(--accent-1);
    background: rgba(59, 130, 246, 0.1);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--glass-highlight);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.resource-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, opacity 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.resource-header {
    margin-bottom: 1rem;
}

.resource-title-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-header h2 {
    font-size: 1.6rem;
    line-height: 1.3;
}

.resource-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.source strong {
    color: var(--text-primary);
}

.resource-footer {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-start;
}

/* --- Footer --- */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 6% 2rem;
    background: rgba(13, 15, 26, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links .link-group {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hub-container {
        grid-template-columns: 1fr;
    }
    
    .glass-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .sidebar-section { margin-bottom: 0; }
    
    .hub-header h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    .glass-sidebar {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
    .resource-header h2 { font-size: 1.3rem; }
    .resource-meta { gap: 10px; flex-direction: column; }
}
