    /* ─── Variables & Reset ─────────────────────────────────────── */
    :root {
        --accent: #7c3aed;
        --accent-soft: #ede9fe;
        --accent-mid: #a78bfa;
        --bg: #ffffff;
        --bg2: #f8f7ff;
        --text: #18181b;
        --muted: #71717a;
        --border: #e4e4e7;
        --nav-h: 64px;
        --radius: 12px;
        --radius-sm: 8px;
    }

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

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: 'Outfit', sans-serif;
        background: var(--bg);
        color: var(--text);
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    img {
        display: block;
        max-width: 100%;
    }

    /* ─── Scroll animations ─────────────────────────────────────── */
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity 0.65s ease, transform 0.65s ease;
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

    .reveal-delay-1 {
        transition-delay: 0.1s;
    }

    .reveal-delay-2 {
        transition-delay: 0.2s;
    }

    .reveal-delay-3 {
        transition-delay: 0.3s;
    }

    .reveal-delay-4 {
        transition-delay: 0.4s;
    }

    /* ─── Navigation ────────────────────────────────────────────── */
    nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--nav-h);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2.5rem;
        z-index: 100;
    }

    .nav-logo {
        font-family: 'Lora', serif;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: -0.3px;
        color: var(--text);
    }

    .nav-logo span {
        color: var(--accent);
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
        list-style: none;
    }

    .nav-links a {
        font-size: 0.875rem;
        font-weight: 400;
        color: var(--muted);
        transition: color 0.2s;
    }

    .nav-links a:hover {
        color: var(--text);
    }

    .nav-cv {
        font-size: 0.85rem;
        font-weight: 500;
        padding: 8px 18px;
        background: var(--accent);
        color: #fff;
        border-radius: 999px;
        transition: background 0.2s, transform 0.15s;
    }

    .nav-cv:hover {
        background: #6d28d9;
        transform: translateY(-1px);
    }

    /* Hamburger mobile */
    .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 4px;
    }

    .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* ─── Hero ──────────────────────────────────────────────────── */
    #hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: calc(var(--nav-h) + 4rem) 2.5rem 5rem;
        max-width: 1100px;
        margin: 0 auto;
        gap: 3rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.78rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1.4px;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 6px 14px;
        border-radius: 999px;
        margin-bottom: 1.5rem;
    }

    .hero-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        background: var(--accent);
        border-radius: 50%;
    }

    .hero-name {
        font-family: 'Lora', serif;
        font-size: clamp(2.4rem, 5vw, 3.8rem);
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: clamp(1rem, 2vw, 1.25rem);
        font-weight: 300;
        color: var(--muted);
        margin-bottom: 1.5rem;
    }

    .hero-title strong {
        color: var(--text);
        font-weight: 500;
    }

    .hero-desc {
        font-size: 1rem;
        color: var(--muted);
        max-width: 480px;
        margin-bottom: 2.5rem;
        line-height: 1.75;
    }

    .hero-cta {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 24px;
        border-radius: 999px;
        font-size: 0.9rem;
        font-weight: 500;
        font-family: 'Outfit', sans-serif;
        cursor: pointer;
        border: none;
        transition: all 0.2s;
    }

    .btn-primary {
        background: var(--accent);
        color: #fff;
    }

    .btn-primary:hover {
        background: #6d28d9;
        transform: translateY(-2px);
    }

    .btn-secondary {
        background: transparent;
        color: var(--text);
        border: 1px solid var(--border);
    }

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

    /* Hero visual */
    .hero-visual {
        flex-shrink: 0;
        width: 280px;
        height: 280px;
        position: relative;
    }

    .hero-avatar {
        width: 100%;
        height: 100%;
        border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
        background: linear-gradient(135deg, var(--accent-soft) 0%, #ddd6fe 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Lora', serif;
        font-size: 5rem;
        font-weight: 600;
        color: var(--accent);
        animation: morphBlob 8s ease-in-out infinite;
    }

    @keyframes morphBlob {

        0%,
        100% {
            border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
        }

        25% {
            border-radius: 55% 45% 40% 60% / 60% 55% 45% 40%;
        }

        50% {
            border-radius: 60% 40% 55% 45% / 40% 60% 45% 55%;
        }

        75% {
            border-radius: 45% 55% 60% 40% / 55% 45% 40% 60%;
        }
    }

    .hero-stat-cards {
        position: absolute;
        bottom: -10px;
        right: -20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .stat-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 8px 14px;
        font-size: 0.78rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .stat-card strong {
        display: block;
        font-size: 1.1rem;
        color: var(--accent);
    }

    /* ─── Section base ──────────────────────────────────────────── */
    section {
        padding: 5rem 2.5rem;
        max-width: 1100px;
        margin: 0 auto;
    }

    .section-label {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--accent);
        font-weight: 600;
        margin-bottom: 0.6rem;
    }

    .section-title {
        font-family: 'Lora', serif;
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 600;
        letter-spacing: -0.5px;
        margin-bottom: 0.5rem;
    }

    .section-sub {
        font-size: 0.95rem;
        color: var(--muted);
        max-width: 520px;
        margin-bottom: 3rem;
        line-height: 1.7;
    }

    /* ─── Projets ────────────────────────────────────────────────── */
    #projets {
        background: var(--bg2);
        max-width: 100%;
        padding: 5rem 0;
    }

    #projets .inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 2.5rem;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .project-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.75rem;
        transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
        position: relative;
        overflow: hidden;
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .project-card:hover {
        border-color: #c4b5fd;
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
    }

    .project-card:hover::before {
        transform: scaleX(1);
    }

    .project-icon {
        width: 44px;
        height: 44px;
        background: var(--accent-soft);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .project-badge {
        display: inline-block;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        padding: 3px 10px;
        border-radius: 999px;
        margin-bottom: 0.75rem;
    }

    .badge-e5 {
        background: #ede9fe;
        color: #6d28d9;
    }

    .badge-perso {
        background: #ecfdf5;
        color: #065f46;
    }

    .badge-stage {
        background: #fff7ed;
        color: #9a3412;
    }

    .badge-wip {
        background: #fef3c7;
        color: #92400e;
    }

    .project-name {
        font-size: 1.05rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .project-desc {
        font-size: 0.875rem;
        color: var(--muted);
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
        background: #f4f4f5;
        color: #52525b;
        border-radius: 999px;
        font-weight: 400;
    }

    .project-detail-list {
        margin: 0.85rem 0 1rem;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .project-detail {
        font-size: 0.78rem;
        color: var(--muted);
        display: flex;
        gap: 8px;
        align-items: baseline;
    }

    .detail-label {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: var(--accent);
        flex-shrink: 0;
        min-width: 60px;
    }

    /* ─── Documents ──────────────────────────────────────────────── */
    #documents {
        background: var(--bg2);
        max-width: 100%;
        padding: 5rem 0;
    }

    #documents .inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 2.5rem;
    }

    .docs-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }

    .doc-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    }

    .doc-card:hover {
        border-color: #c4b5fd;
        box-shadow: 0 8px 30px rgba(124, 58, 237, 0.09);
        transform: translateY(-3px);
    }

    .doc-icon-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .doc-icon {
        width: 46px;
        height: 46px;
        background: var(--accent-soft);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .doc-type {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--accent);
    }

    .doc-name {
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.35;
    }

    .doc-info {
        font-size: 0.8rem;
        color: var(--muted);
        line-height: 1.6;
        flex: 1;
    }

    .doc-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 18px;
        background: var(--accent-soft);
        color: var(--accent);
        border: 1px solid #c4b5fd;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        font-family: 'Outfit', sans-serif;
        transition: all 0.2s;
        align-self: flex-start;
    }

    .doc-btn:hover {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }

    .doc-btn svg {
        width: 14px;
        height: 14px;
    }

    .doc-placeholder {
        border: 2px dashed var(--border);
        background: transparent;
    }

    .doc-placeholder .doc-icon {
        background: #f4f4f5;
    }

    .doc-placeholder .doc-btn {
        background: transparent;
        color: var(--muted);
        border-color: var(--border);
        cursor: default;
    }

    .doc-placeholder .doc-btn:hover {
        background: transparent;
        color: var(--muted);
        border-color: var(--border);
        transform: none;
    }

    /* ─── Compétences ────────────────────────────────────────────── */
    .skills-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .skill-group {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.5rem;
    }

    .skill-group-title {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--muted);
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .skill-group-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .skill-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .skill-pill {
        font-size: 0.82rem;
        font-weight: 500;
        padding: 6px 14px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--text);
        transition: all 0.2s;
    }

    .skill-pill:hover {
        background: var(--accent-soft);
        border-color: var(--accent-mid);
        color: var(--accent);
    }

    .skill-pill.main {
        background: var(--accent-soft);
        border-color: #c4b5fd;
        color: var(--accent);
    }

    /* ─── À propos ───────────────────────────────────────────────── */
    #about {
        background: var(--bg2);
        max-width: 100%;
        padding: 5rem 0;
    }

    #about .inner {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 2.5rem;
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .about-text {
        font-size: 1rem;
        color: var(--muted);
        line-height: 1.85;
    }

    .about-text p+p {
        margin-top: 1rem;
    }

    .about-text strong {
        color: var(--text);
        font-weight: 500;
    }

    .about-facts {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .fact-card {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .fact-icon {
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .fact-label {
        font-size: 0.72rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .fact-value {
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* ─── Contact ────────────────────────────────────────────────── */
    .contact-wrapper {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .contact-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 2.5rem;
    }

    .contact-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 24px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.2s;
        color: var(--text);
    }

    .contact-link:hover {
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
    }

    .contact-link svg {
        width: 18px;
        height: 18px;
    }

    /* ─── Footer ─────────────────────────────────────────────────── */
    footer {
        border-top: 1px solid var(--border);
        padding: 1.5rem 2.5rem;
        text-align: center;
        font-size: 0.8rem;
        color: var(--muted);
    }
.project-links {
    margin-top: 15px;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.github-btn img {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.github-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

    /* ─── Mobile ─────────────────────────────────────────────────── */
    @media (max-width: 768px) {
        nav {
            padding: 0 1.25rem;
        }

        .nav-links {
            display: none;
            flex-direction: column;
        }

        .nav-links.open {
            display: flex;
            position: absolute;
            top: var(--nav-h);
            left: 0;
            right: 0;
            background: #fff;
            border-bottom: 1px solid var(--border);
            padding: 1rem 1.5rem 1.5rem;
            gap: 1rem;
            align-items: flex-start;
        }

        .hamburger {
            display: flex;
        }

        #hero {
            flex-direction: column-reverse;
            padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
            gap: 2rem;
            min-height: auto;
        }

        .hero-visual {
            width: 180px;
            height: 180px;
            margin: 0 auto;
        }

        .hero-stat-cards {
            display: none;
        }

        section {
            padding: 3.5rem 1.25rem;
        }

        #projets .inner,
        #about .inner {
            padding: 0 1.25rem;
        }

        #projets,
        #about {
            padding: 3.5rem 0;
        }

        .about-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    /* ─── Veille technologique ───────────────────────────── */

.veille-hero {
    padding: calc(var(--nav-h) + 4rem) 2.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.veille-hero h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.veille-hero em {
    color: var(--accent);
    font-style: normal;
}

.problematique-box {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.veille-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.stat-pill {
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 999px;
}

/* Timeline */

.timeline-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2.5rem 4rem;
}

.month-block {
    margin-bottom: 3rem;
}

.month-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.month-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.month-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.month-count {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Articles */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.25s;
}

.article-card {
    cursor: pointer;
    position: relative;
}

.article-card::after {
    content: "Voir l'article";
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.75rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.article-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.card-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

.source-badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

/* Couleurs badges */
.badge-violet { background: #ede9fe; color: #6d28d9; }
.badge-teal { background: #ecfeff; color: #0e7490; }
.badge-green { background: #ecfdf5; color: #065f46; }
.badge-gray { background: #f4f4f5; color: #52525b; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-orange { background: #fff7ed; color: #9a3412; }

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-link {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile */
@media (max-width: 768px) {
    .veille-hero,
    .timeline-section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
