
:root {
    /* Couleurs principales */
    --bg: #111;
    --surface: rgba(15, 15, 20, 0.5);
    --surface-hover: rgba(20, 20, 25, 0.75);
    --border: rgba(255, 255, 255, 0.08);

    /* Textes */
    --text: #dddddd;
    --text-dim: #828282;

    /* Accentuation */
    --accent: #af1313;
    --accent-glow: rgba(175, 19, 19, 0.4);
    --accent-subtle: rgba(175, 19, 19, 0.15);

    /* Tags */
    --tag-ia-bg: rgba(175, 19, 19, 0.12);
    --tag-ia-text: #ff6b6b73;
    --tag-ia-border: rgba(225, 78, 78, 0.23);
    --tag-no-ia-bg: rgba(46, 204, 113, 0.06);
    --tag-no-ia-text: #2ecc7163;
    --tag-no-ia-border: rgba(46, 204, 113, 0.11);

    /* Effets */
    --glass-blur: blur(15px);
}

/* THÈME CLAIR (BLANC) */
:root[data-theme="light"] {
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-hover: rgba(250, 250, 252, 0.95);
    --border: rgba(0, 0, 0, 0.12);

    --text: #1d1d1f;
    --text-dim: #6e6e73;

    --accent: #ff7676;
    --accent-glow: rgba(175, 19, 19, 0.25);
    --accent-subtle: rgba(175, 19, 19, 0.08);

    --tag-ia-bg: rgba(175, 19, 19, 0.1);
    --tag-ia-text: #af1313;
    --tag-ia-border: rgba(175, 19, 19, 0.25);
    --tag-no-ia-bg: rgba(46, 204, 113, 0.1);
    --tag-no-ia-text: #27ae60;
    --tag-no-ia-border: rgba(46, 204, 113, 0.25);
}

:root[data-theme="light"] body {
    background: var(--bg);
    color: var(--text);
}

:root[data-theme="light"] #bgOverlay {
    background: linear-gradient(to top, rgba(245, 245, 247, 0.95), rgba(245, 245, 247, 0.85)) !important;
}

:root[data-theme="light"] .name,
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .follow-title,
:root[data-theme="light"] .project-name,
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3 {
    color: #1d1d1f !important;
}

:root[data-theme="light"] .bio,
:root[data-theme="light"] .project-desc,
:root[data-theme="light"] .timeline-desc,
:root[data-theme="light"] .dropdown-label {
    color: var(--text-dim) !important;
}

:root[data-theme="light"] .nav-btn,
:root[data-theme="light"] #btn-voir-tout,
:root[data-theme="light"] .mute-btn,
:root[data-theme="light"] .theme-toggle-btn,
:root[data-theme="light"] .skill-pill,
:root[data-theme="light"] .stat-box,
:root[data-theme="light"] .contact-item,
:root[data-theme="light"] .follow-item,
:root[data-theme="light"] .modal-stat-item,
:root[data-theme="light"] .filters-container {
    background: rgba(231, 231, 231, 0.8) !important;
    color: var(--text) !important;
    border: 1px solid rgba(0, 0, 0, 0.21);
}

:root[data-theme="light"] .project-card {
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root[data-theme="light"] .project-card:hover {
    background: #f1f1f1 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


:root[data-theme="light"] .tag-pill {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #55555d !important;
}

:root[data-theme="light"] .tag-pill.tag-ia {
    background: var(--tag-ia-bg) !important;
    color: #d88787 !important;
    border-color: var(--tag-ia-border) !important;
}

:root[data-theme="light"] .tag-pill.tag-legacy {
    background: var(--tag-no-ia-bg) !important;
    color: #88bc9e !important;
    border-color: var(--tag-no-ia-border) !important;
}


:root[data-theme="light"] .dropdown-options {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

:root[data-theme="light"] .dropdown-option {
    color: #55555d !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

:root[data-theme="light"] .dropdown-option:hover {
    color: #1d1d1f !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

:root[data-theme="light"] .modal-overlay {
    background: rgba(245, 245, 247, 0.96) !important;
}

:root[data-theme="light"] .modal-media {
    background: #e5e5ea !important;
    border-right-color: rgba(0, 0, 0, 0.1) !important;
}

:root[data-theme="light"] .modal-title {
    background: linear-gradient(135deg, #1d1d1f 40%, var(--text-dim) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

:root[data-theme="light"] .modal-desc {
    color: #3a3a3c !important;
}

:root[data-theme="light"] .modal-close,
:root[data-theme="light"] .lightbox-close,
:root[data-theme="light"] .lightbox-btn {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1d1d1f !important;
}

:root[data-theme="light"] .modal-bottom-sections {
    background: #f5f5f7 !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

:root[data-theme="light"] .feature-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

:root[data-theme="light"] .feature-card-desc {
    color: #44444a !important;
}



.theme-toggle-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(15, 15, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text);
}
.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}


        body { background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
        h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

        #particle-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

        #btn-voir-tout {
            display: inline-block; width: 100%;
            background: rgba(15, 15, 20, 0.5);
            text-decoration: none; color: var(--text); font-size: 11px;
            text-transform: uppercase; letter-spacing: 2px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 12px 24px;
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer; border-radius: 30px; text-align: center;
        }

        #btn-voir-tout:hover { 
            border-color: rgba(175, 19, 19, 0.5);
            background: rgba(175, 19, 19, 0.15);
            color: #fff;
            box-shadow: 0 0 20px var(--accent-glow);
        }

        .mute-btn {
            position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
            background: rgba(15, 15, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%;
            cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        }

        .mute-btn:hover svg { fill: #fff; }
        .mute-btn svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill 0.3s; }

        /* HERO SECTION (User's style) */
        .hero-section {
            position: relative; z-index: 1;
            height: 100vh; width: 100vw;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            text-align: center;
        }
        
        .hero-content {
            max-width: 900px;
            display: flex; flex-direction: column; align-items: center;
        }

        .profile-pic {
            width: 150px; height: 150px; border-radius: 50%;
            background-image: url('img/pfp.webp'); background-size: cover; background-position: center;
            border: 1px solid var(--border); margin-bottom: 25px; filter: grayscale(0.3);
            position: relative;
        }
        
        .profile-pic::after {
            content: '';
            position: absolute;
            top: -16%;
            left: -10%;
            width: 120%;
            height: 133%;
            background-image: var(--avatar-decoration, url('https://cdn.discordapp.com/avatar-decoration-presets/a_c48b135704ecb5c88f2f71f6c8bcce2f.png'));
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            pointer-events: none;
            z-index: 2;
        }
        .name { font-size: 46px; font-weight: 800; letter-spacing: -2px; margin-bottom: -3px; }
        .label { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 6px; margin-bottom: 35px; }
        .bio { font-size: 17px; color: var(--text-dim); line-height: 1.8; padding: 0 20px; }

        .hero-nav {
            position: absolute; bottom: 50px;
            display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; z-index: 20;
        }
        .nav-btn {
            text-decoration: none; color: var(--text); font-size: 11px;
            text-transform: uppercase; letter-spacing: 2px;
            border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 24px;
            background: rgba(15, 15, 20, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            cursor: pointer; border-radius: 30px;
        }
        .nav-btn:hover { 
            background: rgba(175, 19, 19, 0.15); 
            color: #fff;
        }

        /* SECTION GLOBAL STYLES (My structure) */
        .section {
            padding: 100px 5%;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            transition: padding 0.3s ease;
        }

        .section.collapsed {
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .section.collapsed > *:not(.section-header) {
            display: none !important;
        }
        .section.collapsed .filters-container {
            display: none !important;
        }

        .section-header {
            margin-bottom: 4rem;
            position: relative;
            display: inline-block;
            width: 100%;
            transition: margin 0.3s ease;
        }

        .section.collapsed .section-header {
            margin-bottom: 0;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            letter-spacing: -1px;
            color: #ffffff;
            text-transform: uppercase;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 15px;
            transition: opacity 0.2s;
        }

        .section-title:hover {
            opacity: 0.8;
        }

        .section-collapse-icon {
            color: var(--text-dim);
            transition: transform 0.3s ease;
        }

        .section.collapsed .section-collapse-icon {
            transform: rotate(-90deg);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }

        /* PROJETS (My structure with glassmorphism) */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: rgba(15, 15, 20, 0.5);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            content-visibility: auto;
            contain-intrinsic-size: 1px 300px;
        }

        .project-card:hover {
            background: rgba(20, 20, 25, 0.75);
        }
        .project-img-wrapper {
            width: 100%; height: 160px; overflow: hidden; position: relative;
            border-bottom: 1px solid var(--border);
        }

        .project-img {
            width: 100%; height: 100%; object-fit: contain;
            transition: filter 0.6s ease; filter: grayscale(0.3);
        }

        .project-card:hover .project-img {
            filter: grayscale(0);
        }

        .project-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
        .project-name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; font-family: 'Outfit', sans-serif; }
        .project-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; flex-grow: 1; }
        .tags-wrapper { display: flex; gap: 0.5rem; flex-wrap: wrap; }
        .tag-pill { background: rgba(255,255,255,0.05); color: var(--text-dim); font-size: 0.75rem; padding: 4px 10px; border-radius: 30px; display: inline-flex; align-items: center; gap: 6px; }
        .skill-pill i, .tag-pill i { font-size: 1.1em; }
        .skill-pill img, .tag-pill img { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: middle; }
        .icon-vite {
            display: inline-block;
            width: 1.1em;
            height: 1.1em;
            background-color: currentColor;
            -webkit-mask: url("https://cdn.simpleicons.org/vite/white") no-repeat center / contain;
            mask: url("https://cdn.simpleicons.org/vite/white") no-repeat center / contain;
        }
        .tag-pill.tag-ia {
            background: var(--tag-ia-bg);
            color: var(--tag-ia-text);
            border: 1px solid var(--tag-ia-border);
            font-weight: 600;
        }
        .tag-pill.tag-legacy {
            background: var(--tag-no-ia-bg);
            color: var(--tag-no-ia-text);
            border: 1px solid var(--tag-no-ia-border);
            font-weight: 600;
        }
        .project-badge {
            position: absolute;
  right: -2px;
  background: #2478b6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 0px 0px 0px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
        }
        .filters-container {
            position: relative;
            z-index: 500;
        }
        .custom-dropdown {
            position: relative;
            user-select: none;
        }
        .custom-dropdown.open {
            z-index: 1000;
        }
        .dropdown-label {
            color: var(--text-dim);
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-right: 8px;
            font-weight: 400;
        }
        .dropdown-selected {
color: var(--accent);
  padding: 3px 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .dropdown-selected:hover {
            color: #fff;
        }
        .dropdown-icon {
            color: var(--text-dim);
        }
        .dropdown-options {
            position: absolute;
            top: 100%;
            left: 0;
            min-width: 200px;
            background: rgb(22, 22, 22);
            border-radius: 14px;
            overflow: hidden;
            display: none;
            z-index: 1000;
            margin-top: 8px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 25px rgba(175, 19, 19, 0.15);
        }
        .custom-dropdown.open .dropdown-options {
            display: block;
        }
        .dropdown-option {
            padding: 12px 16px;
            font-size: 0.85rem;
            color: var(--text-dim);
            cursor: pointer;
            font-family: 'JetBrains Mono', monospace;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            transition: all 0.2s ease;
        }
        .dropdown-option:last-child {
            border-bottom: none;
        }
        .dropdown-option:hover {
            color: #fff;
        }
        .dropdown-option.active {
            color: var(--accent);
            font-weight: 700;
            background: rgba(175, 19, 19, 0.08);
        }

        /* A PROPOS & OUTILS */
        .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
        
        .skills-container { display: flex; flex-direction: column; gap: 2rem; }
        .skills-block-title { font-size: 15px; color: var(--accent); text-transform: uppercase; letter-spacing: 4px; margin-bottom: 15px; }
        .skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
        .skill-pill {
            background: rgba(15, 15, 20, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 0.8rem 1.5rem; border-radius: 50px; font-size: 0.9rem;
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            display: inline-flex; align-items: center; gap: 8px;
        }

        /* STATS */
        .stats-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
        .stat-box {
            background: rgba(15, 15, 20, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2rem; border-radius: 16px; text-align: center;
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .stat-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; font-family: 'Outfit', sans-serif; }
        .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }

        /* TIMELINE */
        .timeline { position: relative; padding-left: 30px; }
        .timeline::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent), transparent); }
        .timeline-item { position: relative; margin-bottom: 3rem; }
        .timeline-dot { position: absolute; left: -36px; top: 5px; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent-glow); }
        .timeline-date { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.5rem; letter-spacing: 2px; text-transform: uppercase; }
        .timeline-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; font-family: 'Outfit', sans-serif; }
        .timeline-desc { color: var(--text-dim); font-size: 0.95rem; }

        /* CONTACT & FOLLOW */
        .contact-container { display: flex; flex-direction: column; gap: 4rem; }
        .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
        .contact-item {
            display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 1.5rem; background: rgba(15, 15, 20, 0.5);
            border-radius: 16px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .contact-item:hover {
            color: #fff;
            background: rgba(175, 19, 19, 0.12);
        }
        .contact-icon { width: 32px; height: 32px; fill: var(--text-dim); transition: fill 0.3s; flex-shrink: 0; }
        .contact-item:hover .contact-icon { fill: var(--accent); }
        .contact-text-wrapper { display: flex; flex-direction: column; }
        .contact-item span { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
        .contact-item div { font-size: 1.1rem; font-weight: 600; font-family: 'Outfit', sans-serif; }
        
        .follow-title { font-size: 1.5rem; font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: -0.5px; }
        .follow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
        .follow-item {
            display: flex; align-items: center; gap: 15px; text-decoration: none; color: var(--text);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 1.2rem; background: rgba(15, 15, 20, 0.5);
            border-radius: 12px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .follow-item:hover {
            background: rgba(175, 19, 19, 0.12);
            color: #fff;
        }
        .follow-icon { width: 28px; height: 28px; fill: currentColor; flex-shrink: 0; }
        .follow-item-name { font-size: 1rem; font-weight: 600; font-family: 'Outfit', sans-serif; }


        /* MODAL PLEIN ECRAN */
        .modal-overlay {
            position: fixed; inset: 0; background: rgba(8, 8, 10, 0.96);
            backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
            z-index: 10000;
            opacity: 0; pointer-events: none;
            transform: scale(1.015);
            transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            overflow-y: auto;
        }
        .modal-overlay.open { opacity: 1; pointer-events: auto; transform: scale(1); }
        
        .modal-content {
            width: 100%; min-height: 100vh; display: grid; grid-template-columns: 0.85fr 1.2fr;
        }

        .modal-close, .lightbox-close {
            position: fixed; top: 30px; right: 40px;
            background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.15);
            color: #fff; padding: 12px 24px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
            cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); border-radius: 30px; z-index: 20001;
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        }
        .modal-close:hover, .lightbox-close:hover {
            border-color: var(--accent); color: var(--accent);
            background: rgba(20, 20, 25, 0.9);
        }

        
        /* IMAGE GAUCHE */
        .modal-media {
            width: 100%; height: 100vh; overflow: hidden; background: #050507;
            border-right: 1px solid rgba(255, 255, 255, 0.08);
            align-self: start; position: relative;
            display: flex; align-items: flex-end; justify-content: center;
            padding-bottom: 60px;
        }
        .modal-media-bg {
            position: absolute; inset: 0; width: 100%; height: 100%;
            object-fit: cover; filter: grayscale(0.15); z-index: 1; transition: all 0.5s ease;
        }
        .modal-media::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.3) 40%, transparent 100%);
            z-index: 1; pointer-events: none;
        }
        .modal-media-logo {
            position: relative; z-index: 2; width: auto; max-width: 60%; max-height: 40%;
            object-fit: contain; display: none; filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
        }

        /* INFO DROITE */
        .modal-info {
            padding: 80px 10%; display: flex; flex-direction: column; justify-content: center;
            min-height: 100vh;
        }
        .modal-overlay.open .modal-info {
            animation: modalSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }
        @keyframes modalSlideUp {
            from { opacity: 0; transform: translateY(25px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-title {
            font-size: 3.8rem; font-weight: 800; font-family: 'Outfit', sans-serif;
            margin-bottom: 12px; line-height: 1.1;
            background: linear-gradient(135deg, #ffffff 40%, var(--text-dim) 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
        }
        .modal-desc { color: rgba(255, 255, 255, 0.75); font-size: 1.08rem; margin-bottom: 30px; line-height: 1.8; }
        
        .modal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; }
        .modal-stat-item {
            display: flex;align-items: center;gap: 30px;color: var(--text);padding: 1.2rem 1.5rem;background: rgba(255,255,255,0.05);border-radius: 12px;transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-stat-item span { color: var(--project-color, var(--accent)); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; width: 90px; flex-shrink: 0; font-weight: 600; }
        .modal-stat-item div { font-size: 1rem; font-weight: 600; }

        /* WARNING MODAL */
        .modal-warning {
            display: none; align-items: flex-start; gap: 15px;
            background: rgba(175, 19, 19, 0.12);
            border: 1px solid rgba(175, 19, 19, 0.4);
            color: #ff6b6b; padding: 18px 20px; border-radius: 12px;
            margin-bottom: 25px; font-size: 0.9rem; line-height: 1.6;
            backdrop-filter: blur(10px);
        }
        .modal-warning.active { display: flex; }
        .modal-warning-icon { width: 24px; height: 24px; flex-shrink: 0; stroke: var(--accent); }
        .modal-warning-text { flex-grow: 1; }

        .modal-info h4 {
            color: var(--project-color, var(--accent)) !important;
        }

        #modalLink {
            background: var(--project-color, var(--accent)) !important;
            color: #ffffff !important;
            border-color: var(--project-color, var(--accent)) !important;
        }

        /* SECTION EN DESSOUS DU CONTAINER */
        .modal-bottom-sections {
            width: 100%; padding: 100px 10%; background: var(--bg);
            border-top: 1px solid rgba(255, 255, 255, 0.08); display: none;
        }
        .modal-bottom-sections.active { display: block; }
        
        .modal-section-title { font-size: 2.5rem; font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--text); margin-bottom: 40px; }
        
        .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
        .feature-card {
            background: rgba(15, 15, 20, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 22px; border-radius: 16px; transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
        }

        .feature-card-title { color: var(--project-color, var(--accent)); font-weight: 700; font-size: 1.2rem; margin-bottom: 15px; font-family: 'Outfit', sans-serif; }
        .feature-card-desc { color: rgba(255, 255, 255, 0.7); font-size: 1rem; line-height: 1.6; }

        .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; }
        .gallery-item { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--border); background: transparent; overflow: hidden; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
        .gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: contain; filter: grayscale(0.2); transition: filter 0.3s; }
        .gallery-item:hover img, .gallery-item:hover video { filter: grayscale(0); }
        .video-play-icon { position: absolute; width: 60px; height: 60px; background: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; transition: all 0.3s; }
        .gallery-item:hover .video-play-icon { background: rgba(175,19,19,0.8); color: #fff; transform: scale(1.1); }

        /* LIGHTBOX */
        .lightbox-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 20000;
            display: flex; align-items: center; justify-content: center;
            opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
        }
        .lightbox-overlay.active { opacity: 1; pointer-events: auto; }
        .lightbox-img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 8px; }

        .lightbox-btn {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(15, 15, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; width: 50px; height: 50px; font-size: 20px;
            cursor: pointer; transition: all 0.2s; border-radius: 50%; z-index: 20001; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            display: flex; align-items: center; justify-content: center;
        }
        .lightbox-btn:hover { color: var(--accent); }
        .lightbox-prev { left: 40px; }
        .lightbox-next { right: 40px; }

        @media (max-width: 900px) {
            :root {
                --glass-blur: none;
            }
            *, *::before, *::after {
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }

            .section { padding: 60px 4%; }
            .section-header { margin-bottom: 2.5rem; }
            .section-title { font-size: 1.8rem; }
            
            .hero-section { height: auto; min-height: 100vh; padding: 100px 20px 120px 20px; }
            .hero-content { width: 100%; }
            .name { font-size: clamp(28px, 8vw, 42px); }
            .label { font-size: 11px; letter-spacing: 4px; margin-bottom: 25px; }
            .bio { font-size: 0.95rem; line-height: 1.7; padding: 0 10px; }
            .profile-pic { width: 120px; height: 120px; margin-bottom: 20px; }
            .hero-nav { position: relative; bottom: auto; margin-top: 35px; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
            
            .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
            .stats-container { gap: 1rem; }
            .stat-box { padding: 1.5rem; }
            .stat-value { font-size: 2rem; }
            
            .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
            .project-img-wrapper { height: 120px; }
            .project-content { padding: 1.5rem; }
            .project-name { font-size: 1.25rem; }
            
            .filters-bar, .filters-container {
                display: flex !important;
                flex-wrap: nowrap !important;
                overflow-x: auto !important;
                white-space: nowrap !important;
                padding-bottom: 8px !important;
                margin-bottom: 1.5rem !important;
                gap: 12px !important;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                justify-content: flex-start !important;
            }
            .filters-bar::-webkit-scrollbar, .filters-container::-webkit-scrollbar {
                display: none;
            }
            .custom-dropdown {
                flex-shrink: 0 !important;
            }

            .timeline { padding-left: 20px; }
            .timeline-dot { left: -26px; width: 12px; height: 12px; }
            .timeline-title { font-size: 1.15rem; }
            
            .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
            .contact-item { padding: 1.2rem; }
            .follow-grid { grid-template-columns: 1fr; gap: 1rem; }
            .follow-item { padding: 1rem; }

            .modal-content { grid-template-columns: 1fr; grid-template-rows: 280px auto; min-height: 100vh; }
            .modal-media { height: 280px; border-right: none; border-bottom: 1px solid var(--border); align-self: stretch; padding-bottom: 20px; }
            .modal-media-logo { max-width: 70%; max-height: 50%; }
            .modal-info { padding: 30px 20px; height: auto; min-height: auto; }
            .modal-title { font-size: 2.2rem; word-break: break-word; }
            .modal-desc { font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; }
            
            .modal-close, .lightbox-close { top: 15px; right: 15px; padding: 8px 16px; font-size: 10px; z-index: 20002; }
            .lightbox-btn { width: 44px; height: 44px; font-size: 18px; }
            .lightbox-prev { left: 8px; }
            .lightbox-next { right: 8px; }
            
            .modal-stats { gap: 10px; margin-bottom: 25px; }
            .modal-stat-item { padding: 1rem; flex-wrap: wrap; gap: 8px; }
            .modal-stat-item span { width: 100%; }
            
            #modalButtons { flex-direction: column; width: 100%; gap: 10px; }
            #modalButtons .nav-btn, #modalButtons .extra-modal-btn { width: 100% !important; justify-content: center; text-align: center; font-size: 11px; padding: 14px 20px !important; display: flex !important; }

            .modal-bottom-sections { padding: 30px 20px; }
            .modal-section-title { font-size: 1.6rem; margin-bottom: 20px; }
            .features-grid { grid-template-columns: 1fr; gap: 16px; }
            .feature-card { padding: 18px; }
            .gallery-grid { grid-template-columns: 1fr; gap: 16px; }

            .mute-btn { position: fixed; bottom: 20px; right: 20px; top: auto; z-index: 99999; width: 44px; height: 44px; }
        }

        @media (max-width: 600px) {
            .section { padding: 40px 4%; }
            .hero-section { padding: 80px 15px 100px 15px; }
            .name { font-size: 28px; }
            .label { font-size: 10px; letter-spacing: 2px; }
            .bio { font-size: 0.9rem; padding: 0; }
            
            .projects-grid { grid-template-columns: 1fr; gap: 16px; }
            .project-card { width: 100%; }
            .modal-content { grid-template-rows: 220px auto; }
            .modal-media { height: 220px; }
            .modal-info { padding: 20px 15px; }
            .modal-title { font-size: 1.75rem; }
            .modal-desc { font-size: 0.9rem; line-height: 1.6; }
            .modal-bottom-sections { padding: 20px 15px; }
            .modal-section-title { font-size: 1.4rem; }
            
            .lightbox-img { max-width: 96%; max-height: 72vh; }
        }


/* Complete Professional Footer Styles */
.site-footer {
  margin-top: 100px;
  padding: 60px 0 40px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  width: 100%;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
}

.footer-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  opacity: 0.7;
}

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  opacity: 0.8;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.footer-legal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.9;
}

.footer-legal-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
  opacity: 0.85;
}

.footer-legal-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 60px;
    padding: 40px 0 30px 0;
  }
  .footer-container {
    padding: 0 20px;
    gap: 20px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
