/* KGaaS Modern Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #f1f5f9;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    color: #f1f5f9;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #6366f1;
}

.nav-links a.active {
    color: #6366f1;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 4px;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #94a3b8;
}

/* Statistiques */
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem 2rem;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #6366f1;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Filtres */
.filters {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 2rem;
    padding: 0.6rem 1.2rem;
    color: #f1f5f9;
    width: 250px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.search-input::placeholder {
    color: #64748b;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover {
    background: rgba(99, 102, 241, 0.3);
}

.pagination .active {
    background: #6366f1;
}

/* Grille des orateurs */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.speaker-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(99, 102, 241, 0.1);
    cursor: pointer;
}

.speaker-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.speaker-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.speaker-name a {
    color: #f1f5f9;
    text-decoration: none;
}

.speaker-name a:hover {
    color: #6366f1;
}

.speaker-firstname {
    font-size: 0.8rem;
    color: #94a3b8;
}

.speaker-bio {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* Liste des discours */
.speeches-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.speech-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s;
    border-left: 3px solid #6366f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.speech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.speech-info {
    flex: 1;
}

.speech-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.speech-title a {
    color: #f1f5f9;
    text-decoration: none;
}

.speech-title a:hover {
    color: #6366f1;
}

.speech-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.speech-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.speech-themes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.theme-tag {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: #a5b4fc;
}

.speech-similarity {
    background: rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #34d399;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.8rem;
}

.footer a {
    color: #6366f1;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .speakers-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        width: 100%;
    }
    
    .speech-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        justify-content: center;
    }
}
/* ============================================
   RESPONSIVE POUR LA PAGE D'ACCUEIL
   ============================================ */

/* Pour tous les écrans */
body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

/* Grille des fonctionnalités - Version responsive */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Tablettes (max 900px) */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .stat-card {
        min-width: 100px;
    }
}

/* Mobiles (max 600px) */
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0.8rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .stats {
        gap: 0.5rem;
    }
    
    .stat-card {
        min-width: 85px;
        padding: 0.6rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .speaker-card {
        padding: 1rem;
    }
    
    .speaker-card > div:first-child {
        font-size: 2rem !important;
    }
    
    .speaker-card h3 {
        font-size: 1.1rem;
    }
    
    .speaker-card p {
        font-size: 0.8rem;
    }
    
    /* Navigation mobile */
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 1rem;
        font-size: 0.7rem;
    }
}

/* Très petits mobiles (max 400px) */
@media (max-width: 400px) {
    .stat-card {
        min-width: 70px;
        padding: 0.4rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}