        /* ===== DESIGN SYSTEM ===== */
        :root {
            --bg:       #060910;
            --bg2:      #0b1120;
            --bg3:      #111c35;
            --bg4:      #172040;
            --border:   rgba(99,179,237,0.12);
            --border2:  rgba(99,179,237,0.25);
            --c1:       #38bdf8;
            --c2:       #a78bfa;
            --c3:       #f472b6;
            --c4:       #fb923c;
            --green:    #34d399;
            --red:      #f87171;
            --text:     #e2e8f0;
            --muted:    #64748b;
            --mono:     'Space Mono', monospace;
            --sans:     'Outfit', sans-serif;
            --radius:   14px;
            --shadow:   0 8px 32px rgba(0,0,0,.4);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; font-size: 16px; }

        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            overflow-x: hidden;
            line-height: 1.6;
        }

        /* Grid bg */
        body::before {
            content: '';
            position: fixed; inset: 0;
            background-image:
                linear-gradient(rgba(56,189,248,.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(56,189,248,.025) 1px, transparent 1px);
            background-size: 44px 44px;
            pointer-events: none; z-index: 0;
        }

        /* Noise */
        body::after {
            content: '';
            position: fixed; inset: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            pointer-events: none; z-index: 0; opacity: 0.4;
        }

        /* Blobs */
        .blob { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
        .blob-1 { width: 700px; height: 700px; background: radial-gradient(circle, #1e40af 0%, transparent 70%); top: -300px; left: -200px; opacity: .25; }
        .blob-2 { width: 600px; height: 600px; background: radial-gradient(circle, #7c3aed 0%, transparent 70%); bottom: -200px; right: -150px; opacity: .2; }
        .blob-3 { width: 400px; height: 400px; background: radial-gradient(circle, #0e7490 0%, transparent 70%); top: 40%; left: 50%; opacity: .15; }

        /* ===== NAV ===== */
        nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 200;
            background: rgba(6,9,16,.88);
            backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid var(--border);
            height: 64px;
            display: flex; align-items: center;
            padding: 0 5vw;
            justify-content: space-between;
        }
        .nav-logo {
            font-family: var(--mono);
            font-size: .85rem;
            color: var(--c1);
            letter-spacing: .06em;
            text-decoration: none;
        }
        .nav-logo span { color: rgba(255,255,255,.4); }
        .nav-links {
            display: flex; gap: 1.75rem; align-items: center;
        }
        .nav-links a {
            font-size: .78rem; font-family: var(--mono);
            color: var(--muted); text-decoration: none;
            transition: color .2s; letter-spacing: .04em;
        }
        .nav-links a:hover { color: var(--c1); }
        .nav-links a.active { color: var(--c1); }

        /* Hamburger */
        .nav-burger {
            display: none; flex-direction: column; gap: 5px;
            cursor: pointer; padding: 8px; background: none; border: none;
        }
        .nav-burger span {
            display: block; width: 22px; height: 2px;
            background: var(--text); border-radius: 2px;
            transition: all .3s;
        }
        .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-burger.open span:nth-child(2) { opacity: 0; }
        .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* Mobile nav drawer */
        .nav-drawer {
            display: none; position: fixed;
            top: 64px; left: 0; right: 0;
            background: rgba(6,9,16,.97);
            border-bottom: 1px solid var(--border);
            padding: 1.5rem 5vw; z-index: 199;
            flex-direction: column; gap: 1rem;
        }
        .nav-drawer.open { display: flex; }
        .nav-drawer a {
            font-family: var(--mono); font-size: .85rem;
            color: var(--muted); text-decoration: none; padding: .5rem 0;
            border-bottom: 1px solid var(--border);
        }
        .nav-drawer a:hover { color: var(--c1); }

        /* ===== LAYOUT ===== */
        main { position: relative; z-index: 1; }
        section { padding: 100px 5vw; max-width: 1300px; margin: 0 auto; }

        /* ===== SECTION TITLE ===== */
        .sec-eyebrow {
            display: inline-flex; align-items: center; gap: .5rem;
            font-family: var(--mono); font-size: .68rem;
            color: var(--c1); letter-spacing: .18em;
            text-transform: uppercase; margin-bottom: .75rem;
        }
        .sec-eyebrow::before {
            content: ''; display: block;
            width: 28px; height: 1px; background: var(--c1);
        }
        .sec-title {
            font-size: clamp(1.8rem, 3.5vw, 2.75rem);
            font-weight: 800; color: #fff;
            line-height: 1.12; margin-bottom: 3rem;
            letter-spacing: -.02em;
        }
        .sec-title .hi { color: var(--c1); }

        /* ===== CARD ===== */
        .card {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.75rem;
            transition: border-color .3s, transform .3s, box-shadow .3s;
        }
        .card:hover {
            border-color: var(--border2);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        /* ===== TAG BADGE ===== */
        .badge {
            display: inline-flex; align-items: center; gap: .3rem;
            font-family: var(--mono); font-size: .62rem;
            padding: .2rem .55rem; border-radius: 4px;
            background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.07);
            color: var(--muted);
        }
        .badge-color {
            color: #fff; border-color: currentColor;
        }

        /* ===== FILTER BUTTONS ===== */
        .filter-row {
            display: flex; flex-wrap: wrap; gap: .5rem;
            margin-bottom: 2rem;
        }
        .filter-btn {
            font-family: var(--mono); font-size: .68rem;
            padding: .35rem 1rem; border-radius: 100px;
            border: 1px solid var(--border);
            background: transparent; color: var(--muted);
            cursor: pointer; transition: all .2s;
            letter-spacing: .04em;
        }
        .filter-btn.active, .filter-btn:hover {
            background: rgba(56,189,248,.12);
            border-color: var(--c1); color: var(--c1);
        }

        /* ===== HERO ===== */
        #hero {
            min-height: 100vh; display: flex;
            align-items: center; padding-top: 80px;
        }
        .hero-wrap { width: 100%; }
        .hero-grid {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 4rem; align-items: center;
        }
        .hero-tag {
            display: inline-flex; align-items: center; gap: .5rem;
            font-family: var(--mono); font-size: .68rem;
            color: var(--c1);
            background: rgba(56,189,248,.08);
            border: 1px solid rgba(56,189,248,.2);
            padding: .35rem 1rem; border-radius: 100px;
            margin-bottom: 1.5rem; letter-spacing: .08em;
        }
        .hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

        h1 {
            font-size: clamp(2.8rem, 6vw, 4.5rem);
            font-weight: 800; color: #fff;
            line-height: 1.05; margin-bottom: 1.5rem;
            letter-spacing: -.03em;
        }
        h1 .accent { color: var(--c1); }
        h1 .accent2 { color: var(--c2); }

        .hero-desc {
            color: var(--muted); line-height: 1.8;
            max-width: 520px; margin-bottom: 2.5rem;
            font-size: 1.0rem; font-weight: 400;
        }

        .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

        .btn-primary {
            display: inline-flex; align-items: center; gap: .5rem;
            background: var(--c1); color: #000;
            padding: .75rem 1.75rem; border-radius: 10px;
            font-weight: 700; font-size: .875rem;
            text-decoration: none; transition: all .2s;
            border: none; cursor: pointer;
        }
        .btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(56,189,248,.3); }

        .btn-secondary {
            display: inline-flex; align-items: center; gap: .5rem;
            background: transparent; color: var(--text);
            padding: .75rem 1.75rem; border-radius: 10px;
            font-weight: 600; font-size: .875rem;
            text-decoration: none; transition: all .2s;
            border: 1px solid var(--border); cursor: pointer;
        }
        .btn-secondary:hover { border-color: var(--border2); background: rgba(255,255,255,.04); }

        /* Avatar */
        .avatar-wrap {
            position: relative;
            width: 260px; height: 260px; flex-shrink: 0;
        }
        /* Seul ce div tourne — il contient le dégradé */
        .avatar-ring {
            position: absolute; inset: 0;
            width: 260px; height: 260px; border-radius: 50%;
            background: var(--c1);
            animation: rotateRing 8s linear infinite;
        }
        @keyframes rotateRing { to { transform: rotate(360deg); } }
        /* Ce div ne tourne PAS — il est positionné par-dessus */
        .avatar-inner {
            position: absolute;
            top: 3px; left: 3px;
            width: calc(100% - 6px);
            height: calc(100% - 6px);
            border-radius: 50%;
            background: var(--bg2);
            overflow: hidden;
            display: flex; align-items: center; justify-content: center;
        }
        .avatar-inner img {
            width: 100%; height: 100%;
            object-fit: cover;
            object-position: center top;
            border-radius: 50%;
        }
        .avatar-inner span { font-size: 4rem; }
        .avatar-status {
            position: absolute; bottom: 8px; right: -10px;
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: 100px; padding: .3rem .8rem;
            font-family: var(--mono); font-size: .62rem;
            color: var(--green); display: flex; align-items: center; gap: .4rem;
            z-index: 10; white-space: nowrap;
        }
        .avatar-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
        @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

        /* KPI bar */
        .kpi-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px; margin-top: 3rem;
            background: var(--border);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
        }
        .kpi-item {
            text-align: center; padding: 1.5rem 1rem;
            background: var(--bg2);
            transition: background .2s;
        }
        .kpi-item:hover { background: var(--bg3); }
        .kpi-value {
            font-family: var(--mono);
            font-size: 2rem; font-weight: 700;
            color: var(--c1); display: block;
            letter-spacing: -.02em;
        }
        .kpi-label {
            font-size: .68rem; color: var(--muted);
            text-transform: uppercase; letter-spacing: .1em;
            margin-top: .3rem;
        }

        /* ===== TECH SKILLS ===== */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 1rem;
        }
        .skill-item {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: 12px; padding: 1rem 1.25rem;
            transition: all .25s; cursor: default;
        }
        .skill-item:hover { border-color: var(--border2); transform: translateY(-2px); }
        .skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
        .skill-name { font-size: .875rem; font-weight: 600; color: #fff; }
        .skill-pct { font-family: var(--mono); font-size: .68rem; color: var(--c1); }
        .skill-bar-bg { height: 3px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
        .skill-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); transform-origin: left; animation: fillBar 1.2s cubic-bezier(.4,0,.2,1) forwards; }
        @keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
        .skill-cat-badge { font-size: .62rem; color: var(--muted); font-family: var(--mono); margin-top: .4rem; }

        /* ===== COMPETENCES ===== */
        .comp-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: start; }
        .comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .comp-card {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 1.5rem;
            cursor: pointer; transition: all .3s;
            position: relative; overflow: hidden;
        }
        .comp-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
            background: var(--color); opacity: 0; transition: opacity .3s;
        }
        .comp-card:hover::before, .comp-card.active::before { opacity: 1; }
        .comp-card.active { border-color: var(--color); }
        .comp-icon {
            width: 38px; height: 38px; border-radius: 9px;
            background: rgba(255,255,255,.05);
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; margin-bottom: .75rem; color: var(--color);
        }
        .comp-title { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
        .comp-desc { font-size: .75rem; color: var(--muted); line-height: 1.6; }
        .comp-detail {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 2rem; min-height: 340px;
            position: sticky; top: 80px;
        }
        .comp-detail h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
        .ac-item {
            display: flex; align-items: flex-start; gap: .75rem;
            padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.04);
        }
        .ac-item:last-child { border-bottom: none; }
        .ac-id {
            font-family: var(--mono); font-size: .62rem; color: var(--c1);
            background: rgba(56,189,248,.1); padding: .2rem .45rem;
            border-radius: 4px; white-space: nowrap; flex-shrink: 0;
        }
        .ac-label { font-size: .8rem; color: var(--text); line-height: 1.5; }

        /* Doughnut */
        .doughnut-wrap { margin-top: 1.5rem; }

        /* ===== STATS ===== */
        .period-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
        .period-btn {
            font-family: var(--mono); font-size: .68rem;
            padding: .4rem 1rem; border-radius: 100px;
            border: 1px solid var(--border); background: transparent;
            color: var(--muted); cursor: pointer; transition: all .2s;
        }
        .period-btn.active { background: var(--c1); color: #000; border-color: var(--c1); font-weight: 700; }

        /* ===== NOTES ===== */
        .notes-kpi-grid {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 1rem; margin-bottom: 2rem;
        }
        .notes-kpi-card {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: 12px; padding: 1.25rem;
            border-left: 3px solid var(--accent-color, var(--c1));
        }
        .notes-kpi-value { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: #fff; }
        .notes-kpi-label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

        .sem-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
        .sem-btn {
            font-family: var(--mono); font-size: .68rem;
            padding: .35rem .9rem; border-radius: 100px;
            border: 1px solid var(--border); background: transparent;
            color: var(--muted); cursor: pointer; transition: all .2s;
        }
        .sem-btn.active { background: var(--c2); color: #fff; border-color: var(--c2); }

        /* Notes charts: stacked — RESPONSIVE */
        .charts-stack { display: flex; flex-direction: column; gap: 1.5rem; }
        .chart-card-label {
            font-size: .72rem; color: var(--muted);
            font-family: var(--mono); letter-spacing: .1em;
            text-transform: uppercase; margin-bottom: 1rem;
        }
        /* Chart 1 — Notes par module: hauteur auto selon nb notes */
        .notes-bar-container {
            position: relative;
            width: 100%;
        }
        /* Chart 2 — Distribution: hauteur fixe agréable */
        .notes-hist-container {
            position: relative;
            width: 100%;
            height: 180px;
        }
        

        /* ===== PROJETS ===== */
        .projets-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; align-items: center; }
        .projets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
            gap: 1.5rem;
        }
        .projet-card {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: 16px; overflow: hidden;
            transition: transform .3s, border-color .3s, box-shadow .3s;
            cursor: pointer;
        }
        .projet-card:hover {
            transform: translateY(-5px);
            border-color: var(--project-color, var(--c1));
            box-shadow: 0 12px 40px rgba(0,0,0,.5);
        }
        .projet-header {
            padding: 1.5rem 1.5rem 1rem;
            border-bottom: 1px solid var(--border);
            display: flex; align-items: flex-start; gap: 1rem;
        }
        .projet-icon {
            width: 46px; height: 46px; border-radius: 11px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; flex-shrink: 0;
            background: rgba(255,255,255,.05);
        }
        .projet-title { font-weight: 700; font-size: .95rem; color: #fff; margin-bottom: .25rem; }
        .projet-subtitle { font-size: .73rem; color: var(--muted); }
        .projet-type-badge {
            font-family: var(--mono); font-size: .6rem;
            padding: .15rem .55rem; border-radius: 4px;
            border: 1px solid; margin-top: .3rem;
            display: inline-block;
        }
        .projet-body { padding: 1rem 1.5rem 1.5rem; }
        .projet-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .875rem; }
        .projet-tag {
            font-family: var(--mono); font-size: .6rem;
            padding: .18rem .5rem; border-radius: 4px;
            background: rgba(255,255,255,.05);
            color: var(--muted); border: 1px solid rgba(255,255,255,.06);
        }
        .projet-desc { font-size: .8rem; color: #94a3b8; line-height: 1.65; margin-bottom: 1rem; }
        .projet-meta { display: flex; gap: 1rem; font-size: .7rem; color: var(--muted); font-family: var(--mono); flex-wrap: wrap; }
        .diff-dots { display: flex; gap: 3px; align-items: center; }
        .diff-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
        .diff-dot.filled { background: var(--project-color, var(--c1)); }

        /* ===== DOCUMENTS ===== */
        #documents { padding-top: 100px; }
        .docs-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
        .docs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.25rem;
        }
        .doc-card {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 1.5rem;
            transition: all .3s; cursor: pointer;
            display: flex; flex-direction: column; gap: 1rem;
        }
        .doc-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
        .doc-header { display: flex; align-items: center; gap: .875rem; }
        .doc-icon {
            width: 44px; height: 44px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1.2rem; flex-shrink: 0;
            background: rgba(255,255,255,.05);
        }
        .doc-title { font-weight: 700; font-size: .9rem; color: #fff; }
        .doc-type { font-family: var(--mono); font-size: .62rem; color: var(--muted); margin-top: .15rem; }
        .doc-desc { font-size: .78rem; color: #94a3b8; line-height: 1.6; }
        .doc-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
        .doc-date { font-family: var(--mono); font-size: .65rem; color: var(--muted); }
        .doc-actions { display: flex; gap: .5rem; }
        .doc-btn {
            font-family: var(--mono); font-size: .65rem;
            padding: .3rem .75rem; border-radius: 6px;
            border: 1px solid var(--border);
            background: transparent; color: var(--muted);
            cursor: pointer; transition: all .2s; text-decoration: none;
            display: inline-flex; align-items: center; gap: .3rem;
        }
        .doc-btn:hover { border-color: var(--c1); color: var(--c1); }
        .doc-btn.primary { background: var(--c1); color: #000; border-color: var(--c1); font-weight: 700; }
        .doc-btn.primary:hover { opacity: .85; }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(0,0,0,.85);
            backdrop-filter: blur(8px);
            z-index: 500; display: none;
            align-items: center; justify-content: center; padding: 2rem;
        }
        .modal-overlay.open { display: flex; }
        .modal-box {
            background: var(--bg2); border: 1px solid var(--border);
            border-radius: 20px; max-width: 780px; width: 100%;
            max-height: 88vh; overflow-y: auto;
            position: relative; padding: 2rem;
        }
        .modal-close {
            position: absolute; top: 1.25rem; right: 1.25rem;
            background: rgba(255,255,255,.07); border: 1px solid var(--border);
            color: var(--muted); border-radius: 8px;
            width: 32px; height: 32px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all .2s; font-size: .8rem;
        }
        .modal-close:hover { background: rgba(255,255,255,.12); color: #fff; }

        /* Modal sections */
        .modal-section { margin-bottom: 1.5rem; }
        .modal-section-label {
            font-family: var(--mono); font-size: .65rem;
            color: var(--muted); text-transform: uppercase;
            letter-spacing: .12em; margin-bottom: .6rem;
            display: flex; align-items: center; gap: .5rem;
        }
        .modal-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

        /* Steps timeline */
        .steps-list { display: flex; flex-direction: column; gap: .75rem; }
        .step-item { display: flex; gap: .75rem; align-items: flex-start; }
        .step-num {
            width: 22px; height: 22px; border-radius: 50%;
            background: rgba(56,189,248,.15); border: 1px solid rgba(56,189,248,.3);
            color: var(--c1); font-family: var(--mono); font-size: .6rem;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .step-text { font-size: .82rem; color: var(--text); line-height: 1.5; padding-top: .15rem; }

        /* PDF preview modal */
        .pdf-modal { max-width: 900px; }
        .pdf-frame { width: 100%; height: 70vh; border: none; border-radius: 8px; }

        /* ===== PROGRESS LINE CHART ===== */
        .progress-wrap { margin-bottom: 1.5rem; }

        /* ===== FOOTER ===== */
        footer {
            position: relative; z-index: 1;
            border-top: 1px solid var(--border);
            padding: 2.5rem 5vw;
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 1rem;
            font-size: .78rem; color: var(--muted);
            font-family: var(--mono);
        }
        footer a { color: var(--c1); text-decoration: none; }
        footer .footer-links { display: flex; gap: 1.5rem; }

        /* ===== CANVAS ===== */
        canvas { max-width: 100%; }

        /* ===== SCROLLBAR ===== */
        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

        /* ===== ANIMATIONS ===== */
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(28px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .fade-up { animation: fadeUp .65s cubic-bezier(.4,0,.2,1) forwards; }
        .delay-1 { animation-delay: .1s; opacity: 0; }
        .delay-2 { animation-delay: .2s; opacity: 0; }
        .delay-3 { animation-delay: .3s; opacity: 0; }
        .delay-4 { animation-delay: .45s; opacity: 0; }

        /* Intersection observer */
        .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
        .reveal.visible { opacity: 1; transform: none; }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .comp-layout { grid-template-columns: 1fr; }
            .comp-detail { position: static; }
        }
        @media (max-width: 768px) {
            section { padding: 80px 5vw; }
            .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
            .hero-grid > div:last-child { display: none; }
            .kpi-bar { grid-template-columns: repeat(2, 1fr); }
            .notes-kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .comp-grid { grid-template-columns: 1fr; }
            .projets-grid { grid-template-columns: 1fr; }
            .docs-grid { grid-template-columns: 1fr; }
            .skills-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
            .nav-links { display: none; }
            .nav-burger { display: flex; }
            footer { flex-direction: column; text-align: center; }
        }
        @media (max-width: 480px) {
            h1 { font-size: 2.2rem; }
            .kpi-bar { grid-template-columns: 1fr 1fr; }
            .notes-kpi-grid { grid-template-columns: 1fr 1fr; }
            .hero-btns { flex-direction: column; }
            .modal-box { padding: 1.25rem; }
        }
