:root {
    --primary-color: #8be9fd;        /* turquoise clair */
    --primary-dark: #50fa7b;         /* vert clair pour hover léger */
    --secondary-color: #bd93f9;      /* violet clair */
    --accent-color: #ff79c6;         /* rose vif pour accents */
    --background-color: #282a36;     /* fond sombre style Dracula */
    --card-background: #44475a;      /* cartes un peu plus claires */
    --text-color: #f8f8f2;           /* texte principal clair */
    --text-light: #6272a4;           /* texte secondaire */
    --border-color: #6272a4;         /* bordures discrètes */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: var(--card-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(139, 233, 253, 0.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 50px;
    margin-bottom: 40px;
}

.hero-logo {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: var(--card-background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 180px;
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stat-link:hover .stat-item {
    transform: translateY(-2px);
    transition: 0.2s ease;
    cursor: pointer;
}

/* Section Styles */
.section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

h2 {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
}

h3 {
    color: var(--text-color);
}

/* Card Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-header {
    padding: 25px 25px 15px;
    color: white;
}

.conference .card-header {
    background: linear-gradient(135deg, #50fa7b, #8be9fd);
}

.publication .card-header {
    background: linear-gradient(135deg, #bd93f9, #6272a4);
}

.cv .card-header {
    background: linear-gradient(135deg, #ffb86c, #ff5555);
}

.thesis .card-header {
    background: linear-gradient(135deg, #ff79c6, #bd93f9);
}

.github .card-header {
    background: linear-gradient(135deg, #6272a4, #8be9fd); 
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
}

.card-body {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-description {
    margin-bottom: 20px;
    color: var(--text-light);
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-size {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn i {
    font-size: 1.1rem;
}

.btn-secondary {
    background: #6272a4;
    color: var(--text-color);
}

.btn-secondary:hover {
    background: #50fa7b;
}

/* Thesis Chapters */
.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.chapter-item {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.chapter-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.chapter-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Footer */
footer {
    background: var(--card-background);
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-background);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .hero {
        padding: 60px 0 30px;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}