/* ======================
   ROOT & COLOR VARIABLES
   ====================== */
:root {
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --text-color: #e6f1ff;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-hover: #4cd7c7;
    --border-color: rgba(100, 255, 218, 0.25);
}

body.light-mode {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #555;
    --accent-color: #00a8e8;
    --accent-hover: #0086b3;
    --border-color: rgba(0, 168, 232, 0.15);
}

/* ======================
   GLOBAL STYLES
   ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ======================
   SIDEBAR
   ====================== */
.sidebar {
    width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 40px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.geometric-shapes {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    opacity: 0.3;
}

.shape {
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 2px;
    animation: float 3s ease-in-out infinite;
}

.shape:nth-child(2) {
    animation-delay: 0.2s;
}

.shape:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Theme Switch */
.theme-switch {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
}

#theme-toggle {
    display: none;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.switch:hover {
    background-color: rgba(100, 255, 218, 0.4);
}

.switch i {
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

#theme-toggle:checked + .switch i:first-child {
    opacity: 0;
}

#theme-toggle:not(:checked) + .switch i:last-child {
    opacity: 0;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile h2 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.profile p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Navigation */
nav ul {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

nav li {
    margin-bottom: 12px;
}

nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 15px;
}

nav a:hover,
nav a.active {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    padding-left: 20px;
}

nav a i {
    min-width: 20px;
    text-align: center;
}

.sub-nav {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.sub-nav li {
    margin-bottom: 8px;
}

.sub-nav a {
    padding: 8px 12px;
    font-size: 14px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-5px);
}

/* Copyright */
.copyright {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.copyright p {
    margin-bottom: 6px;
}

.copyright a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s ease;
}

.copyright a:hover {
    text-decoration: underline;
}

/* ======================
   SIDEBAR TOGGLE (Mobile)
   ====================== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* ======================
   MAIN CONTENT
   ====================== */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

/* ======================
   SECTIONS
   ====================== */
.section {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2::after {
    content: '';
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin-left: 10px;
}

/* Home Section */
#accueil {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-shapes {
    position: absolute;
    top: 50px;
    right: 100px;
    display: flex;
    gap: 20px;
}

.home-shape {
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    opacity: 0.1;
    border-radius: 10px;
    animation: rotate 20s linear infinite;
}

.home-shape:nth-child(2) {
    animation-delay: -5s;
}

.home-shape:nth-child(3) {
    animation-delay: -10s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animation-container {
    margin-bottom: 40px;
}

.animated-svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.1));
}

.replay-button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.replay-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

/* Highlight */
.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Profile Content */
.profile-content {
    margin-bottom: 30px;
}

.profile-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.job-search-banner {
    background-color: rgba(100, 255, 218, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.job-search-banner i {
    color: var(--accent-color);
    font-size: 24px;
    margin-top: 5px;
}

.job-search-banner p {
    margin: 0;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background-color: rgba(100, 255, 218, 0.05);
    border-color: var(--accent-color);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .container {
        flex-direction: column;
    }

    .content {
        padding: 30px 20px;
        margin-top: 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-shapes {
        display: none;
    }

    .geometric-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .section {
        margin-bottom: 40px;
    }

    .content {
        padding: 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .section h2 {
        font-size: 24px;
    }
}
