@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

:root {
    --bg: #0A192F;
    --bg-section: #112240;
    --primary: #64FFDA;
    --secondary: #8892B0;
    --accent1: #FF6B6B;
    --accent2: #9D4EDD;
    --text: #E6F1FF;
    --text-secondary: #A8B2D1;
    --border: #233554;
    --card-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    --card-hover-shadow: 0 20px 40px -20px rgba(100, 255, 218, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    margin-top: 0;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header */
.site-header {
   position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav {
    display: flex;
    gap: 30px;
}

.site-nav a {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* Layout */
main {
    margin-top: 70px;
}

section {
    padding: 0px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-card {
    background: var(--bg-section);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    min-width: 200px;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.scroll-down {
    animation: bounce 2s infinite;
    color: var(--primary);
    font-size: 24px;
    margin-top: auto;
    padding-bottom: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* Cards */
.card {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--card-hover-shadow);
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables */
table.dataTable {
    background-color: var(--bg-section);
    color: var(--text-secondary);
    border-collapse: collapse;
    width: 100%;
}

table.dataTable thead th {
    background-color: #0D2039;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

table.dataTable tbody tr {
    background-color: var(--bg-section);
    border-bottom: 1px solid var(--border);
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #0D2039;
}

table.dataTable tbody td {
    padding: 12px 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: var(--bg) !important;
    border: none !important;
    border-radius: 5px;
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 5px;
    padding: 5px;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Visualizations */
.viz-container {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hybrid-wrap svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Creative Viz */
.creative-viz {
    /* background: #000; Removed to match card theme */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Infographics */
.infographic-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.infographic-card figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
}

.infographic-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.infographic-card:hover img {
    transform: scale(1.05);
}

.infographic-card.infographic-landscape img {
    max-height: 250px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.infographic-card:hover .overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--primary);
    color: var(--bg);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
}

/* Badge */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.badge-france { background: var(--primary); color: var(--bg); }
.badge-world { background: var(--accent2); }
.badge-ia { background: var(--accent1); }

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-item {
    background: var(--bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    color: var(--primary);
}

/* Footer */
.site-footer {
    background: var(--bg-section);
    padding: 50px 40px 20px;
    border-top: 1px solid var(--border);
}

.footer-nav a:hover {
    color: var(--primary);
    
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal/Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .about-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; } /* Simple hide for now, mobile menu would be better but sticking to simple first */
    .hero h1 { font-size: 2.5rem; }
}

