﻿/* REINITIALISATION & VARIABLES */
:root {
    --bg: #050505;
    --text: #e0e0e0;
    --accent: #0051ff;
    --accent-dim: rgba(0, 81, 255, 0.1);
    --accent-glow: rgba(0, 81, 255, 0.5);
    --border: #1f1f1f;
    --font: 'Space Mono', monospace;
}

* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    padding-bottom: 4rem;
    position: relative;
}

/* BARRE DE DEFILEMENT */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}


html {
    scrollbar-width: none;
    -ms-overflow-style: none;

}


.bg-static {
    position: fixed;
    inset: 0;
    background-color: #050505;
    background-image:
        linear-gradient(180deg, rgba(0, 12, 40, 0.35) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.45) 100%),
        radial-gradient(120% 80% at 20% 15%, rgba(0, 81, 255, 0.12), transparent 50%),
        radial-gradient(90% 70% at 80% 20%, rgba(0, 81, 255, 0.08), transparent 60%),
        radial-gradient(120% 90% at 50% 90%, rgba(0, 0, 0, 0.35), transparent 60%);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}


nav,
.container,
header.hero-section {
    position: relative;
    z-index: 10;
}


/* ANIMATIONS */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* NAVIGATION */
nav {
    position: fixed;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.logo {
    display: none;
}

.logo::after {
    content: none;
}

.logo span {
    color: var(--accent);
    font-weight: 300;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.nav-links::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 81, 255, 0.25) 15%, rgba(0, 81, 255, 0.35) 50%, rgba(0, 81, 255, 0.25) 85%, transparent);
    opacity: 0.8;
}

.nav-links a {
    padding: 12px 22px 12px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::before {
    display: none;
}

.nav-links a::after,
.nav-links a::before {
    content: none;
}

.nav-links {
    counter-reset: none;
}

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

.nav-links a.active {
    color: var(--accent);
}


.nav-links a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 81, 255, 0.35);
    border-radius: 4px;
}


.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 0 2rem;
    background-color: transparent;

}


/* SECTION ACCUEIL */
header.hero-section {

    position: relative;
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}


.hero-content {
    position: relative;
    z-index: 2;
    background: transparent;

    border: none;

    box-shadow: none;

    padding: 0;
}

h1 {
    font-size: 4.5rem;
    margin: 0;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 0 25px rgba(0, 81, 255, 0.8);
    animation: slideInDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent);
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink .75s step-end infinite;
    animation-delay: 1s;
    margin-top: 25px;
}

.hero-subtitle {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 4px;
    background: transparent;
    border: none;
    padding: 0;

}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent);
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: slideInUp 1s ease 2s forwards;
}

.scroll-down .arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    color: var(--accent);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}


/* SECTION PROFIL */
.profile-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    overflow: hidden;
    padding: 3rem;
    align-items: center;

    margin-top: 2rem;

}



.profile-visual {
    display: flex;
    justify-content: center;
}

.img-frame {
    position: relative;
    width: 250px;
    height: 320px;
    overflow: hidden;
    border: 1px solid #333;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: 0.5s;
}

.profile-title {
    font-size: 2rem;
    color: #fff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.profile-title .dot {
    color: var(--accent);
}

.info-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    color: #888;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.badge-glow {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 81, 255, 0.05);
}

.bio {
    color: #aaa;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.bio strong {
    color: #fff;
    font-weight: normal;
    border-bottom: 1px solid var(--accent);
}

.contact-buttons {
    display: flex;
    gap: 15px;
}

/* BOUTONS */
.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: 1;
    cursor: pointer;
    font-family: var(--font);
    text-align: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 81, 255, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    font-family: var(--font);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 81, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 81, 255, 0.15);
    transform: translateY(-2px);
}


section {
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title {
    border-left: 4px solid var(--accent);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.section-num {
    color: var(--accent);
    font-size: 1rem;
    font-family: monospace;
    border: 1px solid var(--accent);
    padding: 2px 6px;
}





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



/* SECTION PROJETS */
.project-card {
    background: linear-gradient(160deg, rgba(15, 15, 20, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0,
            100% 0,
            100% calc(100% - 15px),
            calc(100% - 15px) 100%,
            0 100%,
            0 15px);
    height: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 81, 255, 0.1) 0%, transparent 50%, rgba(0, 81, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}



.project-card:hover .btn-project {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 81, 255, 0.4);
    transform: translateY(-2px);
    padding-right: 16px;
}

.project-card {
    cursor: pointer;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.p-type {
    color: var(--accent);
    background: rgba(0, 81, 255, 0.08);
    padding: 4px 8px;
    border: 1px solid rgba(0, 81, 255, 0.2);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.p-status {
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.online {
    color: #27c93f;
    text-shadow: 0 0 8px rgba(39, 201, 63, 0.6);
}

.p-status.online {
    border-color: rgba(39, 201, 63, 0.3);
    background: rgba(39, 201, 63, 0.1);
}

.warning {
    color: #ffbd2e;
    text-shadow: 0 0 8px rgba(255, 189, 46, 0.6);
}

.p-status.warning {
    border-color: rgba(255, 189, 46, 0.3);
    background: rgba(255, 189, 46, 0.1);
}

.offline {
    color: #ff5f56;
    text-shadow: 0 0 8px rgba(255, 95, 86, 0.6);
}

.p-status.offline {
    border-color: rgba(255, 95, 86, 0.3);
    background: rgba(255, 95, 86, 0.1);
}

/* Status Bar styles */
/* Status Styles: Integrated Border & Glow */
.project-card.online-card {
    border-color: rgba(39, 201, 63, 0.4);
    box-shadow: 0 4px 20px rgba(39, 201, 63, 0.05);
}

.project-card.online-card:hover {
    box-shadow: 0 8px 30px rgba(39, 201, 63, 0.15);
    border-color: rgba(39, 201, 63, 0.8);
}

.project-card.offline-card {
    border-color: rgba(255, 95, 86, 0.4);
    box-shadow: 0 4px 20px rgba(255, 95, 86, 0.05);
}

.project-card.offline-card:hover {
    box-shadow: 0 8px 30px rgba(255, 95, 86, 0.15);
    border-color: rgba(255, 95, 86, 0.8);
}

.project-card.wip-card {
    border-color: rgba(255, 189, 46, 0.4);
    box-shadow: 0 4px 20px rgba(255, 189, 46, 0.05);
}

.project-card.wip-card:hover {
    box-shadow: 0 8px 30px rgba(255, 189, 46, 0.15);
    border-color: rgba(255, 189, 46, 0.8);
}

/* Remove old bottom bar */
.project-card::after {
    content: none;
}


.online {
    color: #27c93f;
    text-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

.warning {
    color: #ffbd2e;
}

.offline {
    color: #ff5f56;
    text-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
}

.project-body h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.project-body p {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 12px;
    min-height: auto;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;

    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.p-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.p-stack span {
    font-size: 0.6rem;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 3px 8px;
    border-radius: 0;

}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none;

    padding-top: 10px;
    position: relative;
    z-index: 5;
    margin-top: auto;

}

.feat-box {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.feat-label {
    font-size: 0.65rem;
    color: #555;
    font-weight: bold;
    margin-bottom: 2px;
}

.feat-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.feat-box a:hover {
    text-decoration: underline;
}

.btn-project {
    background: rgba(0, 81, 255, 0.08);
    border: 1px solid rgba(0, 81, 255, 0.3);
    color: var(--accent);
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-project:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 81, 255, 0.4);
    transform: translateY(-2px);
    padding-right: 16px;

}

.btn-project::after,
.btn-project::before {
    content: none;
}

.wip-card {
    opacity: 0.9;
}


/* Removed online-card:hover and wip-card:hover rules */
.btn-locked {
    border-color: #444;
    color: #555;
    cursor: not-allowed;
}

.btn-locked:hover {
    background: transparent;
    color: #555;
    box-shadow: none;
}


/* SECTION PARCOURS */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px rgba(0, 81, 255, 0.5);
}

.timeline-block {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-block:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-block:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.timeline-block::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #000;
    border: 2px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-block:nth-child(odd)::after {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: rgba(10, 10, 10, 0.85);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    overflow: hidden;
    isolation: isolate;
    transition: 0.3s;
}


.active-tl {
    border-color: var(--accent);
    background: rgba(0, 81, 255, 0.05);
}



.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.timeline-block:nth-child(even) .tl-header {
    flex-direction: row-reverse;
}

.tl-date {
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
}

.tl-type {
    border: 1px solid #333;
    padding: 2px 6px;
    color: #666;
    border-radius: 4px;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
}

.tl-place {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.job-tags {
    margin-top: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.timeline-block:nth-child(even) .job-tags {
    justify-content: flex-end;
}

.job-tags span {
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
    padding: 3px 8px;
    color: #bbb;
}


/* SECTION INTERETS */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 1.5rem;
}

.interest-card {
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.92), rgba(7, 7, 7, 0.88));
    border: 1px solid #1d2330;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    isolation: isolate;
    gap: 25px;
    height: auto;
    min-height: 140px;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 81, 255, 0.7), transparent 60%);
    opacity: 0.7;
}

.interest-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(0, 81, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
}


.interest-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.interest-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.interest-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.interest-content p {
    color: var(--accent);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    /* Force single line */
}



footer {
    text-align: center;
    padding: 4rem 0;
    font-size: 0.8rem;
    color: #444;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}


@media(max-width: 900px) {
    nav {
        padding: 0 1rem;
        gap: 0.5rem;
        top: 10px;
        width: 95%;
        max-width: 95%;
    }

    .logo {
        font-size: 1rem;
        border-right: none;
        padding-right: 0;
        margin-bottom: 5px;
    }

    .nav-links {
        gap: 5px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .profile-visual {
        margin-bottom: 20px;
    }

    .info-badges {
        justify-content: center;
    }

    .contact-buttons {
        justify-content: center;
    }

    .projects-grid,
    .interests-grid,
    .skills-wrapper {
        grid-template-columns: 1fr;
    }



    .soft-skills-container {
        justify-content: center;
    }

    .timeline-container::after {
        left: 31px;
    }

    .timeline-block {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-block:nth-child(even),
    .timeline-block:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .timeline-block::after {
        left: 21px !important;
    }

    .tl-header {
        flex-direction: row !important;
    }

    .timeline-block:nth-child(even) .job-tags {
        justify-content: flex-start;
    }
}

/* SECTION PARTICIPATIONS */
.participation-container {
    width: 100%;
}

.participation-wide {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 0 !important;
}

.participation-split {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.participation-info {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.participation-image-side {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
    border-left: 1px solid #222;
    position: relative;
}

.participation-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}




@media(max-width: 900px) {
    .participation-split {
        flex-direction: column;
    }

    .participation-image-side {
        order: -1;
        /* Image en haut */
        min-height: 250px;
        border-left: none;
        border-bottom: 1px solid #222;
    }

    .participation-info {
        padding: 30px 20px;
    }
}

/* NAVIGATION MOBILE */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 3px;
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        padding: 0 1.5rem;
        height: 60px;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        background: rgba(5, 5, 5, 0.95);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
        animation: none;
    }

    .logo {
        display: block;
        margin-bottom: 0;
    }

    .nav-toggle-label {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1rem;
        overflow-y: auto;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease;
        z-index: 999;
        opacity: 0;
    }

    #nav-toggle:checked~.nav-links {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 14px 12px;
        letter-spacing: 1px;
    }

    .nav-links::before,
    .nav-links a::before,
    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        padding-left: 0;
        letter-spacing: 1px;
    }


    #nav-toggle:checked~.nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #nav-toggle:checked~.nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    #nav-toggle:checked~.nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }


    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }


    .profile-card {
        padding: 1.5rem;
        margin-top: 0;
    }

    .img-frame {
        width: 200px;
        height: 250px;
    }

    .profile-title {
        font-size: 1.5rem;
    }


    .timeline-container::after {
        left: 20px;
    }

    .timeline-block {
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-block::after {
        left: 11px !important;
    }


    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        padding-top: 90px;
    }

    main.container {
        padding-top: 80px;
    }
}

/* POPUP EMAIL */
.email-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-popup.show {
    display: flex;
    opacity: 1;
}

.email-popup-content {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(15, 15, 30, 0.98) 100%);
    border: 1px solid rgba(0, 81, 255, 0.3);
    padding: 45px;
    position: relative;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 81, 255, 0.15);
    animation: popupSlide 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

@keyframes popupSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.email-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.email-popup-close:hover {
    color: var(--accent);
}

.email-popup-content h3 {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-weight: bold;
}

.email-display {
    background: rgba(12, 14, 18, 0.6);
    border: 1px solid rgba(0, 81, 255, 0.2);
    padding: 18px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.email-display:hover {
    border-color: rgba(0, 81, 255, 0.5);
    background: rgba(0, 81, 255, 0.12);
}

.email-display span {
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font);
    letter-spacing: 1px;
}

.btn-copy {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 32px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: var(--font);
    position: relative;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    z-index: 1;
}

.btn-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-copy:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 81, 255, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-copy:hover::before {
    transform: translateX(0);
}

#btn-contact {
    cursor: pointer;
    font-family: var(--font);
}

.git-mini {
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    text-decoration: none;
    border-radius: 4px;
    padding: 4px;
}

.git-mini:hover {
    color: #fff;
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
}

.git-mini svg {
    width: 18px;
    height: 18px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media(min-width: 900px) {
    .wide-card {
        grid-column: 1 / -1 !important;
    }
}

/* SECTION COMPETENCES */
.skills-wrapper-redesign {
    max-width: 900px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.skill-tab {
    background: rgba(12, 14, 18, 0.8);
    border: 1px solid rgba(0, 81, 255, 0.2);
    color: #888;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    position: relative;
    overflow: hidden;
}

.skill-tab:hover {
    border-color: var(--accent);
    color: #fff;
    background: rgba(0, 81, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 81, 255, 0.2);
}

.skill-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 81, 255, 0.4);
}

.skills-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.skill-card-modern {
    background: rgba(12, 14, 18, 0.8);
    border: 1px solid rgba(0, 81, 255, 0.2);
    padding: 25px;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: default;
}



.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.skill-icon-box svg {
    width: 24px;
    height: 24px;
}

.skill-name-large {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.skill-dots {
    display: flex;
    gap: 4px;
}

.skill-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-dot.filled {
    border-color: var(--accent);
    background: rgba(0, 81, 255, 0.1);
}

.skill-dot svg {
    width: 8px;
    height: 8px;
    color: var(--accent);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.skill-dot.filled svg {
    opacity: 1;
    transform: scale(1);
}

.skill-progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;

    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent);
    position: relative;
}

@media(max-width: 600px) {
    .skill-cards-grid {
        grid-template-columns: 1fr;
    }

    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .skill-dots {
        align-self: flex-end;
    }
}

/* COMPETENCES SOCIALES (SOFT SKILLS) */
.soft-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 60px;
}

.soft-skill-card {
    background: rgba(12, 14, 18, 0.8);
    border: 1px solid rgba(0, 81, 255, 0.15);
    padding: 20px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    cursor: default;
}



.soft-skill-icon {
    color: var(--accent);
    margin-bottom: 5px;
}

.soft-skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0e0;
    letter-spacing: 0.5px;
}


/* GRILLE LANGUES */
.lang-grid-center {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.lang-grid-center .skill-card-modern {
    flex: 1 1 0;
    min-width: 200px;

}

/* SECTION CERTIFICATIONS CUSTOM - HORIZONTAL STYLE */
.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.cert-card-horizontal {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(160deg, rgba(15, 15, 20, 0.9) 0%, rgba(5, 5, 5, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(0, 81, 255, 0.3);
    /* Default subtle accent */
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    text-decoration: none;
    /* Reset link style */
    cursor: pointer;
}

.cert-card-horizontal:hover {
    transform: translateY(-5px) translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent);
    /* Bright accent on hover */
    box-shadow: -5px 5px 20px rgba(0, 81, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cert-visual-side {
    width: 160px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    transition: background 0.3s;
}

.cert-card-horizontal:hover .cert-visual-side {
    background: rgba(0, 81, 255, 0.05);
    /* Subtle glow in visual area */
}

.cert-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)) grayscale(20%);
    transition: all 0.4s ease;
}

.cert-card-horizontal:hover .cert-logo-img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)) grayscale(0%);
    transform: scale(1.05);
}

.cert-content-side {
    flex: 1;
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cert-content-side h3 {
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cert-tag {
    font-size: 0.65rem;
    background: rgba(0, 81, 255, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 4px 12px;
    font-weight: bold;
    letter-spacing: 1px;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    box-shadow: 0 0 10px rgba(0, 81, 255, 0.1);
}

.cert-card-horizontal:hover .cert-tag {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px rgba(0, 81, 255, 0.4);
}

.cert-org {
    display: block;
    font-family: var(--font);
    color: #888;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
}

.cert-org::before {
    content: '//';
    color: var(--accent);
    font-weight: normal;
    margin-right: 8px;
}

.cert-content-side p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 95%;
}

.btn-cert-link {
    font-size: 0.8rem;
    color: #bbb;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.btn-cert-link::after {
    content: '→';
    font-size: 1.1em;
    transition: transform 0.3s;
    color: var(--accent);
}

.btn-cert-link:hover {
    color: #fff;
    border-bottom-color: var(--accent);
}

.btn-cert-link:hover::after {
    transform: translateX(6px);
}

.cert-cta {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.cert-card-horizontal:hover .cert-cta {
    color: var(--accent);
}

@media (max-width: 700px) {
    .cert-card-horizontal {
        flex-direction: column;
        max-width: 400px;
        clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    }

    .cert-visual-side {
        width: 100%;
        min-height: 120px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(0, 0, 0, 0.2);
    }

    .cert-logo-img {
        max-width: 100px;
    }

    .cert-content-side {
        padding: 25px;
        width: 100%;
        text-align: center;
    }

    .cert-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .cert-org {
        display: inline-block;
        padding-left: 0;
        margin-bottom: 15px;
    }

    .cert-org::before {
        display: none;
    }

    .btn-cert-link {
        align-self: center;
    }
}