@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --neon-blue: #2979ff;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --loader-stars:
        radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 0.62px, transparent 1.05px),
        radial-gradient(circle, rgba(139, 200, 255, 0.26) 0 0.58px, transparent 1px);
}

/* OPTIMISATION SCROLL */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    cursor: none;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    caret-color: transparent;
}

section {
    scroll-margin-top: 120px;
}

body.is-loading {
    overflow: hidden;
}

input,
textarea,
[contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
    caret-color: auto;
}

/* --- CURSEUR BLEU --- */
.cursor-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.8), inset 0 0 10px rgba(41, 121, 255, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 13050;
    opacity: 0;
    transition:
        opacity 0.18s ease,
        transform 0.08s ease-out;
    will-change: transform, opacity;
}

body:not(.is-loading) .cursor-glow {
    opacity: 1;
}

body.is-loading .cursor-glow {
    opacity: 0;
    border-color: var(--neon-blue);
    box-shadow:
        0 0 16px rgba(41, 121, 255, 0.78),
        inset 0 0 10px rgba(41, 121, 255, 0.32);
}

/* --- NAVIGATION --- */
.nav-shell {
    position: fixed;
    top: 18px;
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    z-index: 1000;
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.98);
    animation: navShellEnter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) 0.18s forwards;
    will-change: transform, opacity;
}

body.is-loading .nav-shell,
body.intro-running .nav-shell {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.98);
    animation: none;
}

.navbar {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 14px 12px 14px;
    background:
        radial-gradient(circle at 12% 50%, rgba(41, 121, 255, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 38, 0.92), rgba(6, 10, 18, 0.82));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(139, 200, 255, 0.2);
    border-radius: 20px;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.34),
        0 0 36px rgba(41, 121, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: visible;
}

.nav-links-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.nav-progress {
    position: absolute;
    left: 92px;
    right: 18px;
    bottom: 7px;
    width: auto;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.07);
    pointer-events: none;
    box-shadow:
        inset 0 0 0 1px rgba(139, 200, 255, 0.1),
        0 0 12px rgba(41, 121, 255, 0.12);
}

.nav-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(41, 121, 255, 0.75), #7fd0ff 55%, #ffffff);
    box-shadow: 0 0 16px rgba(41, 121, 255, 0.55);
    transition: width 0.12s ease-out;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(139, 200, 255, 0.5), rgba(255, 255, 255, 0.06), rgba(41, 121, 255, 0.32));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.navbar::after {
    content: "";
    position: absolute;
    left: 74px;
    right: 18px;
    bottom: -1px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(139, 200, 255, 0.46), transparent);
    opacity: 0.72;
}

.logo {
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    min-height: 52px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(139, 200, 255, 0.14);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.14), rgba(255, 255, 255, 0.03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 1rem;
    color: #fff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(145deg, rgba(47, 134, 255, 0.98), rgba(22, 70, 185, 0.82));
    box-shadow:
        0 10px 24px rgba(41, 121, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 0 12px rgba(41, 121, 255, 0.28);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px;
    background: rgba(5, 9, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    position: relative;
    margin-left: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    font-size: 0.92rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    cursor: pointer;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--neon-blue);
    background: rgba(41, 121, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(41, 121, 255, 0.12);
    text-shadow: 0 0 15px rgba(41, 121, 255, 0.35);
    transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(139, 200, 255, 0.24);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(41, 121, 255, 0.22), rgba(255, 255, 255, 0.04)),
        rgba(5, 10, 18, 0.72);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 3;
}

@media (min-width: 901px) {
    .nav-toggle {
        display: none;
    }
}

@keyframes navShellEnter {
    0% {
        opacity: 0;
        transform: translate(-50%, -16px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

body.menu-open {
    overflow: hidden;
}

a, button, .btn {
    cursor: pointer;
}

/* --- ÉCRAN DE CHARGEMENT MODERNE --- */
.portfolio-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: #f7fbff;
    background:
        linear-gradient(145deg, #01040b 0%, #061023 42%, #02040a 100%);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.78s,
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-loader::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -2;
    background-image:
        var(--loader-stars),
        linear-gradient(115deg, transparent 0 38%, rgba(41, 121, 255, 0.16) 47%, transparent 58% 100%);
    background-size: 92px 92px, 148px 148px, 100% 100%;
    background-position: 0 0, 48px 24px, center;
    opacity: 0.68;
    animation: loaderStarDrift 13s linear infinite;
}

.portfolio-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.025) 0 1px,
            transparent 1px 5px
        ),
        radial-gradient(circle at 50% 42%, rgba(41, 121, 255, 0.2), transparent 36%),
        radial-gradient(circle at 72% 66%, rgba(100, 255, 218, 0.08), transparent 32%),
        radial-gradient(circle at 25% 24%, rgba(168, 140, 255, 0.12), transparent 34%);
    mix-blend-mode: screen;
    opacity: 0.72;
    pointer-events: none;
}

.portfolio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.loader-beam {
    position: absolute;
    width: 78vmax;
    height: 18vmax;
    left: 50%;
    top: 50%;
    background: linear-gradient(90deg, transparent, rgba(41, 121, 255, 0.18), rgba(100, 255, 218, 0.1), transparent);
    filter: blur(18px);
    opacity: 0.72;
    transform-origin: center;
}

.loader-beam-one {
    transform: translate(-56%, -90%) rotate(-18deg);
    animation: loaderBeamOne 5.8s ease-in-out infinite alternate;
}

.loader-beam-two {
    background: linear-gradient(90deg, transparent, rgba(168, 140, 255, 0.15), rgba(41, 121, 255, 0.1), transparent);
    transform: translate(-42%, 28%) rotate(18deg);
    animation: loaderBeamTwo 6.5s ease-in-out infinite alternate;
}

.loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 200, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 200, 255, 0.08) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, #000 0 46%, transparent 76%);
    opacity: 0.36;
    animation: loaderGridSlide 10s linear infinite;
}

.loader-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -22%;
    height: 18%;
    background: linear-gradient(180deg, transparent, rgba(139, 200, 255, 0.14), transparent);
    opacity: 0.6;
    animation: loaderScan 3.4s cubic-bezier(0.5, 0, 0.2, 1) infinite;
}

.loader-content {
    position: relative;
    z-index: 1;
    width: min(94vw, 590px);
    padding: 18px;
    perspective: 1100px;
}

.loader-card {
    position: relative;
    display: grid;
    gap: 26px;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(139, 200, 255, 0.24);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
        rgba(3, 10, 24, 0.74);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(41, 121, 255, 0.08),
        0 0 54px rgba(41, 121, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: loaderCardEntrance 0.82s cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.loader-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(100, 255, 218, 0.78), transparent 38%) left top / 46% 1px no-repeat,
        linear-gradient(180deg, rgba(100, 255, 218, 0.54), transparent 42%) left top / 1px 48% no-repeat,
        linear-gradient(270deg, rgba(41, 121, 255, 0.72), transparent 38%) right bottom / 46% 1px no-repeat,
        linear-gradient(0deg, rgba(41, 121, 255, 0.5), transparent 42%) right bottom / 1px 48% no-repeat;
    opacity: 0.82;
    pointer-events: none;
}

.loader-card::after {
    content: "";
    position: absolute;
    left: -24%;
    right: -24%;
    top: -40%;
    height: 60%;
    background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.18), transparent 72%);
    opacity: 0.38;
    transform: translateX(-35%) rotate(0.001deg);
    animation: loaderGlassSweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

.loader-card-glow {
    position: absolute;
    inset: auto 24px 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.74), rgba(41, 121, 255, 0.88), transparent);
    box-shadow: 0 0 24px rgba(41, 121, 255, 0.48);
    opacity: 0.85;
    pointer-events: none;
}

.loader-header,
.loader-console,
.loader-progress-section,
.loader-meta {
    position: relative;
    z-index: 1;
}

.loader-header {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
}

.loader-emblem {
    position: relative;
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
}

.loader-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 200, 255, 0.24);
    box-shadow: inset 0 0 22px rgba(41, 121, 255, 0.08);
}

.loader-orbit-one {
    inset: 5px;
    border-top-color: rgba(100, 255, 218, 0.82);
    border-right-color: rgba(41, 121, 255, 0.58);
    animation: loaderOrbitSpin 5.8s linear infinite;
}

.loader-orbit-two {
    inset: 19px;
    border-left-color: rgba(168, 140, 255, 0.68);
    border-bottom-color: rgba(255, 255, 255, 0.5);
    animation: loaderOrbitSpin 4.4s linear infinite reverse;
}

.loader-monogram {
    position: relative;
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    overflow: hidden;
    border: 1px solid rgba(235, 247, 255, 0.34);
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.3), transparent 30%),
        linear-gradient(145deg, #2f86ff 0%, #0a3a9a 56%, #06163d 100%);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 1.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.36);
    box-shadow:
        0 22px 58px rgba(41, 121, 255, 0.36),
        0 0 0 10px rgba(41, 121, 255, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.loader-monogram::after {
    content: "";
    position: absolute;
    inset: -20% -70%;
    background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.42) 50%, transparent 58%);
    transform: translateX(-45%);
    animation: loaderShimmer 2.5s ease-in-out infinite;
}

.loader-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.loader-kicker,
.loader-job,
.loader-console,
.loader-status,
.loader-meta {
    font-family: 'Space Mono', monospace;
}

.loader-kicker {
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(100, 255, 218, 0.18);
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.08);
    color: #9fffee;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.loader-name {
    margin: 0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0.06em;
    text-shadow:
        0 0 18px rgba(41, 121, 255, 0.34),
        0 0 32px rgba(100, 255, 218, 0.12);
}

.loader-job {
    color: rgba(202, 225, 255, 0.78);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.loader-console {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.loader-console span {
    min-width: 0;
    padding: 12px 12px 11px;
    border: 1px solid rgba(139, 200, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(222, 238, 255, 0.72);
    font-size: 0.68rem;
    line-height: 1.45;
}

.loader-console strong {
    display: block;
    margin-bottom: 4px;
    color: #64ffda;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.loader-progress-section {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.loader-progress-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px;
    align-items: center;
    gap: 16px;
}

.loader-progress-track {
    position: relative;
    min-width: 0;
    height: 13px;
    overflow: hidden;
    border: 1px solid rgba(139, 200, 255, 0.16);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.055);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.035),
        0 0 18px rgba(41, 121, 255, 0.12);
}

.loader-progress-track::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: repeating-linear-gradient(
        90deg,
        transparent 0 24px,
        rgba(255, 255, 255, 0.14) 24px 25px,
        transparent 25px 29px
    );
    opacity: 0.44;
    pointer-events: none;
}

.loader-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 58%),
        linear-gradient(90deg, #2979ff 0%, #64ffda 62%, #ffffff 100%);
    box-shadow:
        0 0 18px rgba(41, 121, 255, 0.62),
        0 0 28px rgba(100, 255, 218, 0.28);
    transition: width 0.24s ease;
}

.loader-progress-bar::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.9),
        0 0 28px rgba(100, 255, 218, 0.7);
    transform: translateY(-50%);
}

.loader-percentage {
    display: grid;
    place-items: center;
    min-width: 62px;
    height: 42px;
    border: 1px solid rgba(139, 200, 255, 0.18);
    border-radius: 14px;
    background: rgba(2, 8, 20, 0.72);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.loader-status {
    min-height: 20px;
    color: rgba(206, 226, 246, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.loader-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(139, 200, 255, 0.5);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.loader-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.loader-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #64ffda;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.8);
}

body.intro-progress-complete .loader-card {
    box-shadow:
        0 34px 110px rgba(0, 0, 0, 0.56),
        0 0 70px rgba(100, 255, 218, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.intro-progress-complete .loader-monogram {
    animation: loaderEmblemPulse 0.72s ease both;
}

/* Animations Sortie */
body.intro-reveal .portfolio-loader {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-26px) scale(1.015);
}

body.intro-reveal .loader-card {
    transform: translateY(-12px) rotateX(6deg) scale(0.96);
    opacity: 0;
    transition:
        transform 0.68s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.55s ease;
}

@keyframes loaderCardEntrance {
    from {
        opacity: 0;
        transform: translateY(28px) rotateX(8deg) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes loaderShimmer {
    0%, 32% {
        transform: translateX(-45%);
    }
    68%, 100% {
        transform: translateX(45%);
    }
}

@keyframes loaderStarDrift {
    to {
        background-position: 92px 92px, 196px 172px, center;
    }
}

@keyframes loaderBeamOne {
    from {
        transform: translate(-58%, -92%) rotate(-20deg);
    }
    to {
        transform: translate(-48%, -80%) rotate(-12deg);
    }
}

@keyframes loaderBeamTwo {
    from {
        transform: translate(-45%, 32%) rotate(18deg);
    }
    to {
        transform: translate(-54%, 22%) rotate(10deg);
    }
}

@keyframes loaderGridSlide {
    to {
        background-position: 58px 58px, 58px 58px;
    }
}

@keyframes loaderScan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    18% {
        opacity: 0.72;
    }
    100% {
        transform: translateY(780%);
        opacity: 0;
    }
}

@keyframes loaderGlassSweep {
    0%, 28% {
        transform: translateX(-35%) rotate(0.001deg);
        opacity: 0;
    }
    48% {
        opacity: 0.38;
    }
    72%, 100% {
        transform: translateX(35%) rotate(0.001deg);
        opacity: 0;
    }
}

@keyframes loaderOrbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderEmblemPulse {
    0%, 100% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.08);
    }
}

@media (max-width: 640px) {
    .loader-content {
        width: min(100vw, 430px);
        padding: 14px;
    }

    .loader-card {
        gap: 22px;
        padding: 26px 20px;
        border-radius: 24px;
    }

    .loader-header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .loader-emblem {
        width: 112px;
        height: 112px;
    }

    .loader-monogram {
        width: 74px;
        height: 74px;
        font-size: 1.72rem;
    }

    .loader-kicker {
        margin: 0 auto;
        font-size: 0.62rem;
    }

    .loader-name {
        font-size: 1.35rem;
    }

    .loader-job {
        font-size: 0.66rem;
        line-height: 1.45;
        white-space: normal;
    }

    .loader-console {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .loader-console span {
        padding: 10px 12px;
        font-size: 0.66rem;
    }

    .loader-progress-wrapper {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 12px;
    }

    .loader-percentage {
        min-width: 58px;
        height: 38px;
        font-size: 0.86rem;
    }

    .loader-status {
        font-size: 0.68rem;
        line-height: 1.45;
    }

    .loader-meta {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-loader::before,
    .loader-beam,
    .loader-grid,
    .loader-scan,
    .loader-card,
    .loader-card::before,
    .loader-card::after,
    .loader-orbit,
    .loader-monogram,
    .loader-monogram::after {
        animation: none !important;
    }
}


/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: radial-gradient(circle at 30% 50%, rgba(41, 121, 255, 0.06) 0%, transparent 60%),
    radial-gradient(circle at top right, #111a2e 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hello {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--neon-blue);
    background-color: rgba(41, 121, 255, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 25px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.1) inset;
}

#hacker-name {
    font-family: 'Space Mono', monospace;
    font-size: 4.5rem;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    text-transform: uppercase;
    margin: 15px 0 25px 0;
    text-shadow: 0 0 30px rgba(41, 121, 255, 0.6);
    cursor: pointer;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 300;
    color: #e0e0e0;
}

.highlight {
    color: var(--neon-blue);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(41, 121, 255, 0.4);
}

.hero p {
    margin-bottom: 40px;
    color: #a0a0a0;
    font-size: 1.1rem;
    max-width: 500px;
}

.top-projects-section {
    padding: 85px 5% 70px;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08) 0%, transparent 28%),
        linear-gradient(180deg, #0d0d0d 0%, #090909 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(41, 121, 255, 0.08);
}

.top-projects-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-projects-header {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-projects-kicker {
    display: inline-block;
    margin-top: 18px;
    margin-bottom: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4af37;
}

.top-projects-subtitle {
    max-width: 740px;
    margin-bottom: 0;
}

.top-projects-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: end;
}

.top-project-podium-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(41, 121, 255, 0.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-project-podium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.top-project-podium-card:focus-visible {
    outline: 2px solid rgba(41, 121, 255, 0.8);
    outline-offset: 3px;
}

.top-project-podium-card strong {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: #fff;
}

.top-project-podium-card p {
    color: #aeb7c2;
    line-height: 1.65;
    margin: 0;
}

.podium-gold {
    min-height: 360px;
    transform: translateY(-24px);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(255,255,255,0.04));
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.14);
}

.podium-silver {
    min-height: 320px;
    background: linear-gradient(180deg, rgba(153, 165, 184, 0.12), rgba(255,255,255,0.03));
    border-color: rgba(153, 165, 184, 0.3);
}

.podium-bronze {
    min-height: 292px;
    background: linear-gradient(180deg, rgba(174, 116, 52, 0.12), rgba(255,255,255,0.03));
    border-color: rgba(174, 116, 52, 0.28);
}

.podium-medal {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f1116;
    background: #d9deea;
}

.podium-gold .podium-medal {
    background: linear-gradient(135deg, #f8e7a1, #d4af37 58%, #b8871b);
}

.podium-silver .podium-medal {
    background: linear-gradient(135deg, #f2f5fb, #aeb7c7 62%, #8d97a7);
}

.podium-bronze .podium-medal {
    background: linear-gradient(135deg, #efc19d, #b87441 62%, #925a2d);
}

.project-rating {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.rating-star {
    border: 0;
    background: transparent;
    color: rgba(255,255,255,0.24);
    font-size: 1.45rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.rating-star:hover,
.rating-star.is-active {
    color: #f3d56b;
    transform: scale(1.08);
}

.project-rating-value {
    font-size: 0.9rem;
    color: #96a3b8;
}

.top-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    color: #fff;
    background: rgba(41, 121, 255, 0.12);
    border: 1px solid rgba(41, 121, 255, 0.24);
}

.top-project-link:hover {
    border-color: rgba(41, 121, 255, 0.45);
    background: rgba(41, 121, 255, 0.18);
}

/* BOUTONS */
.buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 0 5px rgba(41, 121, 255, 0.2) !important;
    transition: 0.05s;
}

.btn-primary {
    background-color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(41, 121, 255, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-secondary:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background-color: rgba(41, 121, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(41, 121, 255, 0.2);
}

/* ANIMATION DROITE */
.hero-visual {
    position: relative;
    z-index: 2;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.cyber-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 100%; height: 100%;
    border-top: 2px solid var(--neon-blue);
    border-right: 2px solid rgba(41, 121, 255, 0.2);
    animation: spin 12s linear infinite;
    box-shadow: 0 0 25px rgba(41, 121, 255, 0.3);
}

.ring-2 {
    width: 70%; height: 70%;
    border-bottom: 4px solid var(--neon-blue);
    border-left: 2px solid rgba(41, 121, 255, 0.2);
    animation: spin 18s linear infinite reverse;
    box-shadow: inset 0 0 20px rgba(41, 121, 255, 0.2);
}

.ring-3 {
    width: 40%; height: 40%;
    border: 1px dashed rgba(41, 121, 255, 0.5);
    animation: spin 25s linear infinite;
}

.code-symbol {
    font-family: 'Space Mono', monospace;
    font-size: 3.5rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 30px var(--neon-blue);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.animate-text {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.8s; }

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
    }
    #hacker-name { font-size: 2.8rem; }
    .hero-content { margin-bottom: 60px; }
    .buttons { justify-content: center; }
    .hero-visual { width: 320px; height: 320px; }
    .nav-shell {
        top: 12px;
        width: calc(100% - 20px);
    }
    .navbar {
        padding: 10px 66px 16px 12px;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
        border-radius: 18px;
        overflow: visible;
        min-height: 66px;
    }
    .logo {
        gap: 10px;
        min-height: 44px;
        padding: 4px 12px 4px 4px;
        flex-shrink: 0;
    }
    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 0.9rem;
    }
    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }
    .nav-toggle {
        display: inline-flex !important;
        position: absolute;
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        gap: 4px;
        margin-left: auto;
        flex-shrink: 0;
        background:
            radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 38%),
            linear-gradient(145deg, rgba(47, 134, 255, 0.9), rgba(12, 28, 64, 0.9));
        box-shadow:
            0 12px 28px rgba(41, 121, 255, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        opacity: 1;
        visibility: visible;
    }
    .nav-toggle span {
        width: 18px;
        background: #ffffff;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.34);
    }
    .nav-links-stack {
        width: auto;
        order: 2;
        margin-left: 0;
        position: relative;
        align-items: flex-end;
        gap: 0;
        flex-shrink: 0;
    }
    .nav-links {
        width: min(280px, calc(100vw - 24px));
        margin-top: 0;
        padding: 8px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-6px) scale(0.98);
        transform-origin: top right;
        transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        z-index: 20;
        background: rgba(8, 10, 16, 0.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(41, 121, 255, 0.16);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    }
    .nav-progress {
        position: absolute;
        left: 12px;
        right: 12px;
        bottom: 6px;
        width: auto;
        height: 3px;
        opacity: 1;
        transform: none;
        transition: width 0.2s ease;
        margin-right: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 999px;
        overflow: hidden;
    }
    .nav-links a {
        justify-content: flex-start;
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.9rem;
    }
    .nav-links a::after {
        left: 14px;
        right: auto;
        width: 24px;
        bottom: 10px;
        transform-origin: left center;
    }
    .navbar.menu-open .nav-links {
        max-height: 520px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
    .navbar.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .navbar.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .navbar.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .top-projects-podium .podium-gold {
        order: -1;
    }

    * { cursor: auto; }
    .cursor-glow { display: none; }
}

/* --- SECTION A PROPOS --- */
.about {
    min-height: 100vh;
    background-color: #0e0e0e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 10%;
    position: relative;
    border-top: 1px solid rgba(41, 121, 255, 0.05);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Centralisation des éléments */
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 80px;
}

.about-visual { flex: 1; display: flex; justify-content: center; min-width: 300px; }

/* Styles pour l'image (commentés car l'image n'est pas dans le HTML actuel, mais gardés en cas de réutilisation)
.profile-frame {
    position: relative;
    width: 350px;
    height: 350px;
    padding: 20px;
    border: 1px solid rgba(41, 121, 255, 0.3);
    background: rgba(41, 121, 255, 0.02);
    transition: 0.3s;
}
.profile-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.15);
    border-color: var(--neon-blue);
}
.profile-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%); transition: 0.5s;
}
.profile-frame:hover .profile-img { filter: grayscale(0%); }

.corner-top-left, .corner-bottom-right {
    position: absolute; width: 40px; height: 40px;
    border: 3px solid var(--neon-blue);
}
.corner-top-left { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.corner-bottom-right { bottom: -2px; right: -2px; border-left: none; border-top: none; }
*/

.about-text {
    flex: 1.2;
    min-width: 300px;
    text-align: center; /* Centrage du texte */
    max-width: 800px;
    margin: 0 auto;
}

.section-title,
.kb-title,
.tz-big-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.section-title::after,
.kb-title::after,
.tz-big-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--neon-blue), #6fd7c2);
    box-shadow: 0 0 14px rgba(41, 121, 255, 0.38);
}

.section-title {
    margin-bottom: 16px;
}

.section-title .highlight,
.kb-title .highlight,
.tz-big-title .highlight,
.subsection-title .highlight,
.subtitle .highlight,
.modal-title .highlight,
.synthesis-hero-copy h3 .highlight {
    color: inherit;
    text-shadow: none;
    font-weight: inherit;
}

/* SOUS-TITRE */
.subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: #e0e0e0;
    margin-top: 20px; margin-bottom: 20px;
    font-size: 1.4rem;
}

.about-desc { color: #b0b0b0; font-size: 1.05rem; margin-bottom: 20px; line-height: 1.8; }

.about-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center; /* Centrage des badges */
}
.badge {
    display: flex; align-items: center; gap: 10px; padding: 10px 20px;
    background: rgba(41, 121, 255, 0.05);
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 4px; color: #fff;
    font-family: 'Space Mono', monospace; font-size: 0.9rem; transition: 0.3s;
}
.badge:hover {
    background: rgba(41, 121, 255, 0.15);
    border-color: var(--neon-blue); transform: translateY(-2px);
}

.about-details { width: 100%; max-width: 1000px; margin: 0 auto; }
.subsection-title {
    font-family: 'Poppins', sans-serif; font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #fff; text-align: center; margin-bottom: 20px;
}
.bts-intro p, .exam-intro {
    text-align: center; color: #888; max-width: 700px; margin: 0 auto 40px auto;
}

.bts-options { display: flex; gap: 30px; margin-bottom: 80px; flex-wrap: wrap; }
.option-card {
    flex: 1; min-width: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px; border-radius: 8px; transition: 0.3s;
}
.active-card {
    border-color: rgba(41, 121, 255, 0.4);
    background: linear-gradient(145deg, rgba(41,121,255,0.05) 0%, rgba(0,0,0,0) 100%);
    box-shadow: 0 10px 30px -10px rgba(41, 121, 255, 0.1);
}
.option-card h4 {
    font-family: 'Poppins', sans-serif; font-size: 1.5rem; color: #fff; margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.option-full-name {
    color: var(--neon-blue); font-size: 0.9rem; font-weight: 600;
    margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px;
}
.option-desc { color: #ccc; margin-bottom: 20px; font-size: 0.95rem; }
.jobs-list strong { display: block; color: #fff; margin-bottom: 10px; }
.jobs-list ul { list-style: none; padding-left: 10px; }
.jobs-list li {
    position: relative; padding-left: 15px; color: #888; margin-bottom: 5px; font-size: 0.9rem;
}
.jobs-list li::before {
    content: '>'; position: absolute; left: 0; color: var(--neon-blue);
}

.table-wrapper {
    overflow-x: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
}
.cyber-table {
    width: 100%; border-collapse: collapse;
    font-family: 'Space Mono', monospace; font-size: 0.9rem;
    background: rgba(10, 10, 10, 0.5);
}
.cyber-table th {
    text-align: left; padding: 18px;
    background: rgba(41, 121, 255, 0.1);
    color: var(--neon-blue); text-transform: uppercase;
}
.cyber-table td {
    padding: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: #ccc;
}
.cyber-table tr:hover td { background: rgba(41, 121, 255, 0.05); color: #fff; }

@media (max-width: 900px) {
    .about-container { flex-direction: column; text-align: center; }
    .profile-frame { width: 280px; height: 280px; margin-bottom: 40px; }
    .section-title::after { left: 50%; transform: translateX(-50%); }
    .about-badges { justify-content: center; }
    .bts-options { flex-direction: column; }
}

.cyber-table tr.highlight-row td {
    background: rgba(41, 121, 255, 0.15);
    color: #fff;
    border-top: 1px solid var(--neon-blue);
    border-bottom: 1px solid var(--neon-blue);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(41, 121, 255, 0.4);
}

.about-text .buttons {
    justify-content: center;
    margin-top: 20px;
}

.btn-icon {
    padding: 0;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 6px;
}

/* --- SECTION PARCOURS --- */

.parcours-section {
    width: 100%;
    margin-top: 0;
}

.parcours-header {
    text-align: center;
    margin-bottom: 28px;
}

.parcours-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #8ea4bf;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.parcours-divider {
    width: 90px;
    height: 3px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--neon-blue), #6fd7c2);
    box-shadow: 0 0 18px rgba(41, 121, 255, 0.22);
}

.parcours-seek-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    margin: 0 auto 34px;
    max-width: 1180px;
    border-radius: 18px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    background:
        radial-gradient(circle at left center, rgba(111, 215, 194, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(41, 121, 255, 0.12), rgba(255, 255, 255, 0.02)),
        rgba(8, 13, 22, 0.92);
}

.parcours-seek-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6fd7c2;
    box-shadow: 0 0 0 0 rgba(111, 215, 194, 0.45);
    animation: seekPulse 1.8s infinite;
}

@keyframes seekPulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 215, 194, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(111, 215, 194, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 215, 194, 0); }
}

.parcours-seek-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.parcours-seek-copy strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.parcours-seek-copy span {
    color: #b9c5d3;
    line-height: 1.55;
}

.parcours-seek-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.3);
    background: rgba(41, 121, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
    box-shadow: 0 0 0 rgba(41, 121, 255, 0);
}

.parcours-seek-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.96);
    color: #0b1220;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.12);
}

.parcours-seek-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 0 10px rgba(41, 121, 255, 0.14);
}

.parcours-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.parcours-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.parcours-column-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.parcours-column-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    background: rgba(41, 121, 255, 0.1);
    color: var(--neon-blue);
}

.parcours-column-title {
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.parcours-card,
.parcours-academic-body {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(41, 121, 255, 0.15);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018)),
        rgba(8, 12, 20, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.parcours-card:hover,
.parcours-academic-body:hover {
    transform: translateY(-3px);
    border-color: rgba(41, 121, 255, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 34px rgba(3, 8, 18, 0.32);
}

.parcours-card--featured,
.parcours-academic-card--future .parcours-academic-body {
    border-color: rgba(111, 215, 194, 0.24);
    background:
        linear-gradient(180deg, rgba(111, 215, 194, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(8, 12, 20, 0.95);
}

.parcours-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.parcours-card-head-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.parcours-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.3);
    background: rgba(9, 14, 24, 0.9);
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    overflow: hidden;
}

.parcours-logo--image {
    background: #ffffff !important;
    padding: 2px;
}

.parcours-logo--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.parcours-logo--future {
    border-color: rgba(111, 215, 194, 0.3);
    background: rgba(111, 215, 194, 0.1);
}

.parcours-logo--success {
    border-color: rgba(67, 181, 129, 0.3);
    background: rgba(67, 181, 129, 0.1);
}

.parcours-logo--small {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
}

.parcours-logo-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.parcours-logo-group .parcours-logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
}

.parcours-card-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.02rem;
}

.parcours-card-company {
    margin: 4px 0 0;
    color: #8ea4bf;
    font-size: 0.92rem;
}

.parcours-card-badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    background: rgba(41, 121, 255, 0.12);
    color: #d7e6ff;
    font-family: 'Space Mono', monospace;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.parcours-card-badge--soft {
    background: rgba(255, 255, 255, 0.06);
    color: #d7dee6;
}

.parcours-card-badge--future {
    background: rgba(111, 215, 194, 0.14);
    border-color: rgba(111, 215, 194, 0.22);
    color: #dffff8;
}

.parcours-card-badge--success {
    background: rgba(67, 181, 129, 0.14);
    border-color: rgba(67, 181, 129, 0.22);
    color: #dbfff0;
}

.parcours-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 14px;
    color: #aeb9c6;
    font-size: 0.88rem;
}

.parcours-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.parcours-card-desc {
    margin: 0;
    color: #d3dbe4;
    line-height: 1.68;
}

.parcours-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.parcours-card-stats div {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.parcours-card-stat-link-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.parcours-card-stat-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    border-radius: 12px;
    background: rgba(41, 121, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.parcours-card-stat-link i {
    color: var(--neon-blue);
}

.parcours-card-stat-link:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
}

.parcours-card-stat-link:hover i {
    color: #000000;
}

.parcours-card-stats strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
}

.parcours-card-stats span {
    display: block;
    margin-top: 4px;
    color: #8ea4bf;
    font-size: 0.82rem;
}

.parcours-missions {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(41, 121, 255, 0.12);
    background: rgba(255, 255, 255, 0.028);
}

.parcours-missions h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 0.92rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.parcours-missions ul {
    margin: 0;
    padding-left: 18px;
    color: #c8d1db;
    line-height: 1.68;
}

.parcours-missions li + li {
    margin-top: 8px;
}

.parcours-experience-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.parcours-experience-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 122, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 209, 122, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.024);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.parcours-experience-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.parcours-experience-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parcours-experience-item-head h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.98rem;
}

.parcours-experience-item-head p {
    margin: 4px 0 0;
    color: #9aa8b8;
    font-size: 0.84rem;
}

.parcours-experience-item-head span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 122, 0.2);
    background: rgba(255, 209, 122, 0.1);
    color: #ffe7b3;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.parcours-experience-item ul {
    margin: 0;
    padding-left: 18px;
    color: #d5dde6;
    line-height: 1.7;
}

.parcours-experience-item li + li {
    margin-top: 8px;
}

.parcours-details {
    margin-top: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.parcours-details summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    color: #ffffff;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.parcours-details summary::-webkit-details-marker {
    display: none;
}

.parcours-details summary:hover {
    background: rgba(41, 121, 255, 0.08);
    color: #dfeaff;
}

.parcours-details ul {
    margin: 0;
    padding: 0 16px 16px 34px;
    color: #c5d0db;
    line-height: 1.65;
}

.parcours-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.parcours-actions {
    margin-top: 14px;
}

.parcours-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    border-radius: 12px;
    background: rgba(41, 121, 255, 0.1);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.parcours-link-btn i {
    color: var(--neon-blue);
}

.parcours-link-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(41, 121, 255, 0.4);
    background: rgba(41, 121, 255, 0.16);
    box-shadow: 0 10px 24px rgba(10, 24, 48, 0.28);
}

.parcours-chips span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(41, 121, 255, 0.18);
    background: rgba(41, 121, 255, 0.08);
    color: #d6e6ff;
    font-size: 0.84rem;
}

.parcours-academic-line {
    position: absolute;
    left: 18px;
    top: 78px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.5), rgba(111, 215, 194, 0.2));
}

.parcours-card:last-child .parcours-missions {
    background:
        linear-gradient(180deg, rgba(255, 209, 122, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.028);
    border-color: rgba(255, 209, 122, 0.16);
}

.parcours-card:last-child .parcours-experience-list {
    margin-top: 18px;
}

.parcours-column:last-child {
    position: relative;
}

.parcours-academic-card {
    position: relative;
    padding-left: 46px;
}

.parcours-academic-dot {
    position: absolute;
    left: 9px;
    top: 28px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #08101d;
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 14px rgba(41, 121, 255, 0.24);
}

.parcours-academic-card--future .parcours-academic-dot {
    border-color: #6fd7c2;
    box-shadow: 0 0 14px rgba(111, 215, 194, 0.24);
}

.parcours-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #c5d0db;
    line-height: 1.65;
}

.parcours-progress {
    margin-top: 16px;
}

.parcours-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: #9fb1c4;
    font-size: 0.84rem;
}

.parcours-progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.parcours-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--neon-blue), #6fd7c2);
}

.parcours-validated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(67, 181, 129, 0.24);
    background: rgba(67, 181, 129, 0.12);
    color: #dbfff0;
    font-weight: 700;
}

.parcours-validated i {
    color: #58d99d;
}

@media (max-width: 980px) {
    .parcours-grid {
        grid-template-columns: 1fr;
    }

    .parcours-seek-banner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .parcours-seek-btn {
        width: fit-content;
    }
}

@media (max-width: 640px) {
    .parcours-section {
        margin-top: 0;
    }

    .parcours-card-head,
    .parcours-card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .parcours-card-stats {
        grid-template-columns: 1fr;
    }

    .parcours-experience-item-head {
        flex-direction: column;
    }

    .parcours-experience-item-head span {
        align-self: flex-start;
    }
}

/* --- SECTION PROJETS (STYLE TERMINAL) --- */
.projects {
    min-height: 100vh;
    background-color: #0b0b0b;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(41, 121, 255, 0.1);
}

.projects-container {
    width: 100%;
    max-width: 1200px;
}

.project-subtitle {
    color: #666;
    font-family: 'Space Mono', monospace; /* Comme le titre hacker */
    font-size: 1rem;
    margin-bottom: 50px;
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* CARTE STYLE TERMINAL */
.terminal-card {
    background-color: #050505;
    border: 1px solid rgba(41, 121, 255, 0.3); /* Bordure bleue fine */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terminal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.15); /* Lueur bleue au survol */
    border-color: var(--neon-blue);
}

/* En-tête du terminal (Barre grise en haut) */
.terminal-header {
    background: rgba(41, 121, 255, 0.1);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(41, 121, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Les petits ronds (Mac OS style mais cyber) */
.traffic-lights {
    display: flex;
    gap: 6px;
}
.light { width: 10px; height: 10px; border-radius: 50%; }
.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-title {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
    opacity: 0.8;
}

/* Corps de la carte */
.terminal-body {
    padding: 25px;
    text-align: left;
}

.p-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: #fff;
    margin-bottom: 15px;
}

.project-stage-badge,
.project-context-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: -4px 0 12px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(41, 121, 255, 0.24);
    background: rgba(41, 121, 255, 0.08);
    color: #b8d7ff;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-context-badge-school {
    border-color: rgba(205, 214, 225, 0.28);
    background: rgba(205, 214, 225, 0.08);
    color: #d8e0eb;
}

.project-context-badge-cyalink {
    border-color: rgba(111, 215, 194, 0.3);
    background: rgba(111, 215, 194, 0.08);
    color: #a9eadc;
}

.project-context-badge-client {
    border-color: rgba(245, 184, 75, 0.32);
    background: rgba(245, 184, 75, 0.08);
    color: #f5d18b;
}

.p-desc {
    font-family: 'Poppins', sans-serif;
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Badges (Comme dans la section A Propos) */
.p-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.code-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
    background: rgba(41, 121, 255, 0.05);
    padding: 5px 10px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 4px;
}

/* Bouton bas de carte */
.btn-console {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid var(--neon-blue);
    padding-bottom: 2px;
    transition: 0.3s;
}

.btn-console:hover {
    color: var(--neon-blue);
    padding-right: 10px; /* Petit effet de mouvement */
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .top-projects-podium {
        grid-template-columns: 1fr;
    }

    .podium-gold,
    .podium-silver,
    .podium-bronze {
        min-height: auto;
        transform: none;
    }
}

/* --- AMÉLIORATION CARTES CLIQUABLES --- */
.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(41, 121, 255, 0.2);
}

.featured-project-card {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08), 0 12px 30px rgba(212, 175, 55, 0.08);
}

.featured-project-card:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.18);
}

.featured-project-card-secondary {
    border-color: rgba(205, 214, 225, 0.52);
    box-shadow: 0 0 0 1px rgba(205, 214, 225, 0.10), 0 12px 30px rgba(190, 198, 210, 0.12);
}

.featured-project-card-secondary:hover {
    border-color: rgba(224, 231, 240, 0.88);
    box-shadow: 0 12px 28px rgba(198, 206, 219, 0.22);
}

.featured-project-card-bronze {
    border-color: rgba(174, 116, 52, 0.48);
    box-shadow: 0 0 0 1px rgba(174, 116, 52, 0.1), 0 12px 30px rgba(174, 116, 52, 0.12);
}

.featured-project-card-bronze:hover {
    border-color: rgba(191, 126, 68, 0.82);
    box-shadow: 0 12px 28px rgba(174, 116, 52, 0.2);
}

.project-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1300;
    background: linear-gradient(135deg, #f8e7a1, #d4af37 58%, #b8871b);
    border: 1px solid rgba(255, 231, 150, 0.45);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.18);
}

.project-rank-badge-secondary {
    color: #0f141b;
    background: linear-gradient(135deg, #f8fbff, #d4dbe5 48%, #a4aebb 78%, #8c95a3);
    border-color: rgba(244, 247, 252, 0.58);
    box-shadow: 0 8px 18px rgba(190, 198, 210, 0.24);
}

.project-rank-badge-bronze {
    color: #160d05;
    background: linear-gradient(135deg, #efc19d, #b87441 62%, #925a2d);
    border-color: rgba(239, 193, 157, 0.56);
    box-shadow: 0 8px 18px rgba(174, 116, 52, 0.24);
}

.card-prompt {
    margin-top: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
    opacity: 0.7;
}

.blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- STYLE DES MODALES (POPUP) --- */
.modal {
    display: none; /* Caché par défaut */
    position: fixed;
    z-index: 2000; /* Au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fond sombre */
    backdrop-filter: blur(5px); /* Effet flou derrière */
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: 5% auto;
    width: 90%;
    max-width: 700px;
    border: 1px solid var(--neon-blue); /* Bordure brillante pour le focus */
    box-shadow: 0 0 30px rgba(41, 121, 255, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-modal .modal-content {
    max-width: 1080px;
}

.project-modal .terminal-body {
    counter-reset: project-gallery-step;
}

.close-modal {
    color: #ff5f56;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto; /* Pousse la croix à droite */
    line-height: 1;
}

.close-modal:hover { color: #fff; }

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 10px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.modal-text {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-text strong { color: #fff; }

#modal-projet .modal-content {
    max-width: 920px;
}

.career-modal {
    display: grid;
    gap: 18px;
    color: #d5dde6;
    text-align: left;
}

.career-hero,
.career-card,
.career-roadmap article,
.career-conclusion {
    border: 1px solid rgba(41, 121, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.career-hero,
.career-conclusion {
    padding: 20px;
}

.career-eyebrow,
.career-conclusion strong {
    display: block;
    margin-bottom: 8px;
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.career-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    background:
        linear-gradient(180deg, rgba(41, 121, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
}

.career-hero h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.25;
}

.career-hero p,
.career-card p,
.career-conclusion p {
    margin: 0;
}

.career-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 280px;
}

.career-hero-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(100, 255, 218, 0.18);
    border-radius: 999px;
    background: rgba(100, 255, 218, 0.08);
    color: #c7fff2;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    white-space: nowrap;
}

.career-roadmap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.career-roadmap article {
    padding: 16px;
}

.career-roadmap span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
}

.career-roadmap strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.career-roadmap p {
    margin: 0;
    color: #aeb7c2;
    line-height: 1.55;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.career-card {
    padding: 18px;
}

.career-card-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(41, 121, 255, 0.16);
    border: 1px solid rgba(41, 121, 255, 0.24);
}

.career-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.career-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.career-card li {
    position: relative;
    padding-left: 18px;
    color: #aeb7c2;
    line-height: 1.5;
}

.career-card li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-blue);
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.career-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 999px;
    background: rgba(41, 121, 255, 0.08);
    color: #d8e7ff;
    font-size: 0.84rem;
}

.career-conclusion {
    background: rgba(41, 121, 255, 0.08);
    border-color: rgba(41, 121, 255, 0.28);
}

.career-conclusion span {
    color: #64ffda;
    font-weight: 700;
}

.project-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.project-summary-card {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(41, 121, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
        rgba(10, 14, 22, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-summary-card--wide {
    grid-column: 1 / -1;
}

.project-summary-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(41, 121, 255, 0.22);
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.16), rgba(41, 121, 255, 0.06));
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.project-summary-title i {
    color: var(--neon-blue);
    font-size: 1rem;
    text-shadow: 0 0 16px rgba(41, 121, 255, 0.35);
}

.project-summary-lead {
    margin: 0;
    color: #d6dce5;
    line-height: 1.7;
}

.project-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.project-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c4cdd6;
    line-height: 1.65;
}

.project-summary-list i {
    flex: 0 0 auto;
    margin-top: 0.28rem;
    color: var(--neon-blue);
}

.project-feature-flow {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-feature-flow-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.35fr);
    gap: 10px;
    align-items: end;
    margin: 0 0 8px;
}

.project-feature-flow-head-left,
.project-feature-flow-head-right {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8ea4bf;
}

.project-feature-flow-head-right {
    grid-column: 3;
}

.project-feature-flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.project-feature-flow-list li {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.35fr);
    gap: 10px;
    align-items: start;
    color: #d3dae3;
    line-height: 1.65;
}

.project-feature-label {
    color: #ffffff;
    font-weight: 700;
}

.project-feature-arrow {
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    font-weight: 700;
}

.project-feature-solution {
    color: #c4cdd6;
}

.project-modal-image {
    display: block;
    width: 100%;
    max-width: 860px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 1px solid rgba(41,121,255,0.2);
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
    cursor: zoom-in;
}

.project-modal-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 2880 / 1618;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
    cursor: zoom-in;
}

.project-modal-hero-image--natural {
    aspect-ratio: auto;
    object-fit: initial;
}

.project-modal-image-hero {
    margin-bottom: 20px;
}

.planifique-gallery-block {
    margin-top: 28px;
}

.planifique-gallery-title {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--neon-blue);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.planifique-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.planifique-gallery-item {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(41, 121, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-modal .planifique-gallery-item {
    counter-increment: project-gallery-step;
}

.project-modal .planifique-gallery-item[data-step] {
    counter-increment: none;
}

.project-modal .planifique-gallery-item--no-step {
    counter-increment: none;
}

.planifique-gallery-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center center;
    border-radius: 8px;
    border: 1px solid rgba(41, 121, 255, 0.18);
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
    cursor: zoom-in;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.planifique-gallery-item:hover img {
    transform: translateY(-2px);
    border-color: rgba(41, 121, 255, 0.35);
}

.planifique-gallery-item figcaption {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #aeb7c2;
}

.project-modal .planifique-gallery-item figcaption::before {
    content: counter(project-gallery-step);
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--neon-blue);
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 14px rgba(41, 121, 255, 0.32);
}

.project-modal .planifique-gallery-item figcaption[data-step]::before {
    content: attr(data-step);
}

.project-modal .planifique-gallery-item--no-step figcaption::before {
    content: none;
    display: none;
}

.conventio-proof-note,
.project-proof-note {
    margin: 24px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 10px;
    background: rgba(41, 121, 255, 0.06);
    color: #c7d0dc;
    font-size: 0.92rem;
    line-height: 1.65;
}

.conventio-proof-note strong,
.project-proof-note strong {
    color: #ffffff;
}

.conventio-proof-note a,
.project-proof-note a {
    color: var(--neon-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(41, 121, 255, 0.45);
}

.project-awareness-card {
    margin-top: 24px;
}

.project-awareness-card--veille {
    padding: 28px;
}

.conventio-gallery-section-label {
    margin: 20px 0 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8ea4bf;
}

#modal-stage .conventio-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#modal-stage .conventio-gallery-grid--emails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#modal-stage .planifique-gallery-item img {
    aspect-ratio: 144 / 100;
    object-fit: cover;
    object-position: center top;
}

#modal-stage .planifique-gallery-item img.conventio-gallery-image--design {
    aspect-ratio: auto;
    height: clamp(220px, 24vw, 280px);
    object-fit: contain;
}

#modal-stage .planifique-gallery-item--mobile img {
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #05070c;
}

#modal-stage .planifique-gallery-item--mobile {
    width: min(100%, 360px);
    grid-column: 1 / -1;
    justify-self: center;
}

#modal-ak-cleaning .planifique-gallery-item img {
    aspect-ratio: 6 / 5;
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-dzyli .planifique-gallery-item img {
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-planifique .planifique-gallery-item img {
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-planifique .planifique-gallery-item--mobile img {
    padding: 0;
    background: #05070c;
}

#modal-2fa .planifique-gallery-item img {
    aspect-ratio: 36 / 35;
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-gsb .planifique-gallery-item img {
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center center;
    padding: 8px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-planifique {
    --project-accent: #38bdf8;
    --project-accent-rgb: 56, 189, 248;
}

#modal-stage {
    --project-accent: #cbd5e1;
    --project-accent-rgb: 203, 213, 225;
}

#modal-phishsense {
    --project-accent: #ef4444;
    --project-accent-rgb: 239, 68, 68;
}

#modal-radar-veille-tech {
    --project-accent: #22c55e;
    --project-accent-rgb: 34, 197, 94;
}

#modal-gsb {
    --project-accent: #8b5cf6;
    --project-accent-rgb: 139, 92, 246;
}

#modal-ak-cleaning {
    --project-accent: #06b6d4;
    --project-accent-rgb: 6, 182, 212;
}

#modal-dzyli {
    --project-accent: #f59e0b;
    --project-accent-rgb: 245, 158, 11;
}

#modal-2fa {
    --project-accent: #a855f7;
    --project-accent-rgb: 168, 85, 247;
}

.project-modal .modal-content {
    border-color: rgba(var(--project-accent-rgb, 41, 121, 255), 0.68);
    box-shadow: 0 0 30px rgba(var(--project-accent-rgb, 41, 121, 255), 0.22);
}

.project-modal .modal-meta,
.project-modal .planifique-gallery-title,
.project-modal .project-feature-arrow,
.project-modal .project-summary-list i,
.project-modal .project-summary-title i,
.project-modal .conventio-proof-note a,
.project-modal .project-proof-note a {
    color: var(--project-accent, var(--neon-blue));
}

.project-modal .project-summary-card,
.project-modal .conventio-timeline,
.project-modal .planifique-gallery-item,
.project-modal .planifique-note-card,
.project-modal .project-proof-note,
.project-modal .conventio-proof-note,
.project-modal .veille-card,
.project-modal .veille-pdf-frame {
    border-color: rgba(var(--project-accent-rgb, 41, 121, 255), 0.18);
}

.project-modal .veille-badge {
    color: var(--project-accent, var(--neon-blue));
    background: rgba(var(--project-accent-rgb, 41, 121, 255), 0.1);
    border-color: rgba(var(--project-accent-rgb, 41, 121, 255), 0.24);
}

.project-modal .veille-pdf-toolbar {
    border-bottom-color: rgba(var(--project-accent-rgb, 41, 121, 255), 0.12);
}

.project-modal .project-summary-title,
.project-modal .conventio-timeline-title {
    border-color: rgba(var(--project-accent-rgb, 41, 121, 255), 0.28);
    background: linear-gradient(
        180deg,
        rgba(var(--project-accent-rgb, 41, 121, 255), 0.18),
        rgba(var(--project-accent-rgb, 41, 121, 255), 0.06)
    );
}

.project-modal .conventio-timeline li::before,
.project-modal .planifique-gallery-item figcaption::before {
    background: var(--project-accent, var(--neon-blue));
    box-shadow: 0 0 14px rgba(var(--project-accent-rgb, 41, 121, 255), 0.32);
}

#modal-radar-veille-tech .planifique-gallery-item img {
    aspect-ratio: 144 / 110;
    object-fit: contain;
    object-position: center top;
    padding: 8px;
    background: linear-gradient(180deg, rgba(5, 15, 10, 0.96), rgba(12, 24, 18, 0.96));
}

#modal-radar-veille-tech .project-modal-hero-image,
#modal-radar-veille-tech .planifique-gallery-item:first-child img,
#modal-radar-veille-tech .planifique-gallery-item--no-step img {
    aspect-ratio: 2880 / 1618;
}

#modal-ak-cleaning .planifique-gallery-item--mobile {
    width: min(100%, 420px);
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
}

#modal-ak-cleaning .planifique-gallery-item--mobile img {
    width: min(100%, 300px);
    aspect-ratio: 390 / 900;
    object-fit: contain;
    background: #080806;
}

#modal-stage .planifique-gallery-item--portrait img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-phishsense .phishsense-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#modal-phishsense .planifique-gallery-item img {
    aspect-ratio: 144 / 100;
    object-fit: cover;
    object-position: center top;
}

#modal-phishsense .planifique-gallery-item--portrait img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.96), rgba(19, 24, 37, 0.96));
}

#modal-phishsense .planifique-gallery-item--mobile {
    width: min(100%, 460px);
    grid-column: 1 / -1;
    justify-self: center;
    align-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(41, 121, 255, 0.14), transparent 42%),
        rgba(255, 255, 255, 0.035);
}

#modal-phishsense .planifique-gallery-item--mobile img {
    width: min(100%, 300px);
    aspect-ratio: 390 / 844;
    object-fit: contain;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #05070c;
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.34),
        0 0 0 6px rgba(255, 255, 255, 0.035);
}

#modal-phishsense .planifique-gallery-item--mobile figcaption {
    width: 100%;
    max-width: 360px;
}

.conventio-timeline {
    margin-top: 26px;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(41, 121, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(41, 121, 255, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(5, 9, 18, 0.62);
}

.conventio-timeline-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.3);
    background:
        linear-gradient(180deg, rgba(41, 121, 255, 0.24), rgba(41, 121, 255, 0.1)),
        rgba(10, 14, 22, 0.86);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(41, 121, 255, 0.12);
}

.conventio-timeline ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: conventio-step;
}

.conventio-timeline li {
    position: relative;
    min-height: 100%;
    padding: 14px 14px 14px 48px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #d7dee6;
    line-height: 1.6;
    counter-increment: conventio-step;
}

.conventio-timeline li::before {
    content: counter(conventio-step);
    position: absolute;
    left: 14px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--neon-blue);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(41, 121, 255, 0.3);
}

.conventio-timeline strong {
    color: #fff;
}

.planifique-user-stories {
    margin-top: 26px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(111, 215, 194, 0.22);
    background:
        linear-gradient(180deg, rgba(111, 215, 194, 0.08), rgba(255, 255, 255, 0.018)),
        rgba(7, 18, 19, 0.56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.planifique-user-stories .planifique-gallery-title {
    color: #8fe2d3;
}

.planifique-user-stories-intro {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 3px solid rgba(111, 215, 194, 0.78);
    background: rgba(111, 215, 194, 0.08);
    color: #d4e9e4;
    line-height: 1.7;
}

.planifique-user-stories .conventio-gallery-section-label {
    margin-top: 18px;
    color: #8fe2d3;
}

.planifique-user-stories ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.planifique-user-stories li {
    position: relative;
    min-height: 100%;
    padding: 14px 14px 14px 18px;
    border-radius: 10px;
    border-left: 3px solid rgba(111, 215, 194, 0.72);
    background: rgba(255, 255, 255, 0.03);
    color: #e3e6eb;
    line-height: 1.6;
}

.planifique-user-stories li::before {
    content: none;
}

.planifique-user-stories strong {
    color: #effffb;
}

.planifique-note-card {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.2);
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: #d7dee6;
}

.planifique-note-card p {
    margin: 0;
    line-height: 1.8;
}

.planifique-lightbox-shell {
    width: min(94vw, 1400px);
    margin: 3vh auto;
    padding: 18px;
    background: rgba(8, 10, 16, 0.98);
    border: 1px solid rgba(41, 121, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

#image-lightbox {
    z-index: 3000;
}

.planifique-lightbox-shell img {
    display: block;
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 10px;
    background: #05070c;
}

.planifique-lightbox-shell p {
    margin: 12px 0 0;
    color: #d7dee6;
    line-height: 1.6;
}

#image-lightbox .close-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    padding: 2px 8px;
}

@media (max-width: 640px) {
    .planifique-gallery-grid {
        grid-template-columns: 1fr;
    }

    #modal-stage .conventio-gallery-grid,
    #modal-stage .conventio-gallery-grid--emails {
        grid-template-columns: 1fr;
    }

    .conventio-timeline ol {
        grid-template-columns: 1fr;
    }

    .project-modal-image {
        aspect-ratio: 4 / 3;
        max-width: 100%;
    }

    .project-summary-grid {
        grid-template-columns: 1fr;
    }

    .project-feature-flow-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .project-feature-flow-head {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .project-feature-flow-head-right {
        grid-column: auto;
    }

    .project-modal-hero-image {
        width: 100%;
    }

    .planifique-gallery-item {
        padding: 10px;
    }

    .planifique-gallery-item img {
        aspect-ratio: 4 / 3;
    }

    #modal-stage .planifique-gallery-item img.conventio-gallery-image--design {
        aspect-ratio: auto;
        height: clamp(180px, 52vw, 240px);
    }

    .project-awareness-card--veille {
        padding: 20px;
    }

    .planifique-lightbox-shell {
        width: 96vw;
        padding: 14px;
    }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ============================= */
/* COMPÉTENCES / CERTIFICATIONS  */
/* ============================= */

.kb-section {
    min-height: 100vh;
    padding: 130px 5% 80px;
    background: #0b0b0b;
    border-top: 1px solid rgba(41, 121, 255, 0.08);
}

.kb-section-alt {
    background: #0a0a0a;
}

.kb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.kb-title {
    margin-bottom: 50px;
}

.kb-panel {
    --kb-accent: var(--neon-blue);
    --kb-accent-rgb: 41, 121, 255;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(var(--kb-accent-rgb), 0.18);
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.20);
}

.kb-panel--web {
    --kb-accent: #ff8a3d;
    --kb-accent-rgb: 255, 138, 61;
}

.kb-panel--software {
    --kb-accent: #46c6ff;
    --kb-accent-rgb: 70, 198, 255;
}

.kb-panel--cloud {
    --kb-accent: #5f8cff;
    --kb-accent-rgb: 95, 140, 255;
}

.kb-panel--infra {
    --kb-accent: #2fd38a;
    --kb-accent-rgb: 47, 211, 138;
}

.kb-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(var(--kb-accent-rgb), 0.18);
}

.kb-panel-header i {
    font-size: 1.6rem;
    color: var(--kb-accent);
    text-shadow: 0 0 12px rgba(var(--kb-accent-rgb), 0.35);
}

.kb-panel-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
}

.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 22px;
}

.kb-card {
    min-height: 160px;
    background: #111111;
    border: 1px solid rgba(var(--kb-accent-rgb), 0.14);
    border-radius: 12px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kb-card:hover {
    transform: translateY(-5px);
    border-color: var(--kb-accent);
    box-shadow: 0 0 20px rgba(var(--kb-accent-rgb), 0.18);
}

.skill-logo {
    font-size: 3.1rem;
    line-height: 1;
    margin-bottom: 16px;
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(var(--kb-accent-rgb), 0.10);
    border: 1px solid rgba(var(--kb-accent-rgb), 0.16);
    transition: transform 0.25s ease, filter 0.25s ease;
    color: var(--kb-accent) !important;
    text-shadow: 0 0 12px rgba(var(--kb-accent-rgb), 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    text-align: center;
    overflow: hidden;
}

.skill-logo::before {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    color: inherit !important;
}

.skill-logo-text {
    font-family: 'Space Mono', monospace;
    font-size: 2.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--kb-accent) !important;
    text-shadow: 0 0 12px rgba(var(--kb-accent-rgb), 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-logo-text-sm {
    font-size: 2.25rem;
}

.kb-card:hover .skill-logo {
    transform: scale(1.08);
}

.kb-card > span:not(.skill-logo) {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
}

.kb-card small {
    display: block;
    margin-top: 8px;
    color: #9aa4b2;
    font-size: 0.88rem;
    line-height: 1.4;
}

.logo-rust,
.logo-spring-security,
.logo-javafx,
.logo-github,
.logo-api,
.logo-postman,
.logo-network,
.logo-cyber {
    color: inherit !important;
    text-shadow: inherit;
}

.kb-card .skill-logo,
.kb-card .skill-logo::before,
.kb-card .skill-logo-text {
    color: var(--kb-accent) !important;
    text-shadow: 0 0 12px rgba(var(--kb-accent-rgb), 0.28) !important;
}

/* Certifications */
.kb-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.kb-cert-card {
    background: #111111;
    border: 1px solid rgba(41, 121, 255, 0.12);
    border-radius: 14px;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kb-cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.15);
}

.kb-cert-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.kb-badge-link {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(41, 121, 255, 0.06);
    border: 1px solid rgba(41, 121, 255, 0.15);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kb-badge-link:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--neon-blue);
    box-shadow: 0 0 18px rgba(41, 121, 255, 0.18);
}

.kb-badge-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.kb-cert-badge,
.kb-cert-status {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(41, 121, 255, 0.08);
    border: 1px solid rgba(41, 121, 255, 0.18);
    color: var(--neon-blue);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

.kb-cert-provider {
    display: inline-block;
    margin-bottom: 10px;
    color: #8e9bb0;
    font-size: 0.92rem;
}

.kb-cert-card h4 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    line-height: 1.35;
}

.kb-cert-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

.kb-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kb-cert-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.kb-cert-link:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(41, 121, 255, 0.35);
}

.veille-section {
    padding: 96px 5% 82px;
    background:
        radial-gradient(circle at top right, rgba(41, 121, 255, 0.08) 0%, transparent 26%),
        linear-gradient(180deg, #0d0f15 0%, #090b11 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(41, 121, 255, 0.08);
}

.veille-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.veille-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.veille-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Space Mono', monospace;
    color: #2979ff;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.veille-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.veille-divider {
    display: block;
    width: 60px;
    height: 4px;
    margin-bottom: 28px;
    background: #2979ff;
}

.veille-heading p {
    color: #b7c0cb;
    font-size: 1rem;
    line-height: 1.75;
}

.veille-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.veille-focus-card {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(41, 121, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(41, 121, 255, 0.075), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.025);
}

.veille-focus-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(41, 121, 255, 0.2);
    border: 1px solid rgba(41, 121, 255, 0.28);
}

.veille-focus-card h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.04rem;
    letter-spacing: 0;
}

.veille-focus-card p {
    margin: 0;
    color: #aeb7c2;
    line-height: 1.65;
    font-size: 0.94rem;
}

.veille-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.veille-layout--support {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 22px;
}

.veille-side {
    display: grid;
    gap: 20px;
}

.veille-side--compact {
    gap: 16px;
}

.veille-card {
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(41, 121, 255, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.veille-card--main {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.veille-card--support {
    padding: 24px;
}

.veille-card-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.veille-badge,
.veille-file,
.veille-support-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.76rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.veille-badge {
    color: var(--neon-blue);
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.2);
}

.veille-file {
    color: #c8d5e8;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.veille-card h3 {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.veille-card > .veille-badge + h3 {
    margin-top: 18px;
}

.veille-card p {
    color: #b7c0cb;
    line-height: 1.7;
}

.veille-support-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.veille-support-meta span {
    gap: 8px;
    color: #d8e7ff;
    background: rgba(41, 121, 255, 0.08);
    border: 1px solid rgba(41, 121, 255, 0.16);
    text-transform: none;
    letter-spacing: 0;
}

.veille-support-meta i {
    color: var(--neon-blue);
}

.veille-youtube-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.veille-youtube-card {
    display: grid;
    gap: 8px;
    min-height: 190px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 0, 0, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.veille-youtube-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 65, 65, 0.36);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.veille-youtube-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: #ff0033;
    box-shadow: 0 0 18px rgba(255, 0, 51, 0.25);
}

.veille-youtube-card strong {
    color: #ffffff;
    font-size: 1.08rem;
}

.veille-youtube-card em {
    color: var(--neon-blue);
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 700;
}

.veille-youtube-card p {
    margin: 0;
    color: #aeb7c2;
    font-size: 0.92rem;
    line-height: 1.58;
}

.veille-card--method {
    background:
        linear-gradient(180deg, rgba(111, 215, 194, 0.055), rgba(255,255,255,0.018)),
        rgba(255, 255, 255, 0.025);
    border-color: rgba(111, 215, 194, 0.16);
}

.veille-card--method .veille-badge {
    color: #6fd7c2;
    background: rgba(111, 215, 194, 0.08);
    border-color: rgba(111, 215, 194, 0.2);
}

.veille-card--radar-project {
    border-color: rgba(34, 197, 94, 0.22);
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255,255,255,0.02)),
        rgba(255, 255, 255, 0.025);
}

.veille-card--radar-project .veille-badge {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.24);
}

.veille-card--radar-project .btn-primary {
    background-color: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.veille-card--radar-project .btn-primary:hover {
    color: #22c55e;
    background-color: transparent;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.42);
}

.veille-pdf-frame {
    margin-top: 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(41, 121, 255, 0.16);
    background: rgba(7, 11, 18, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.veille-pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(41, 121, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.veille-pdf-toolbar-label {
    color: #9eb0c7;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.veille-present-btn {
    min-height: 40px;
}

.veille-pdf-frame iframe {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
    background: #0b0f16;
}

.veille-card--support .veille-pdf-frame iframe {
    height: min(72vh, 780px);
}

.veille-pdf-frame.is-fullscreen {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #05070c;
}

.veille-pdf-frame.is-fullscreen .veille-pdf-toolbar {
    padding: 16px 20px;
    background: rgba(5, 7, 12, 0.88);
}

.veille-pdf-frame.is-fullscreen iframe {
    height: calc(100vh - 73px);
}

.veille-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.veille-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.veille-list li {
    position: relative;
    padding-left: 20px;
    color: #d8e0ea;
    line-height: 1.55;
}

.veille-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 12px rgba(41, 121, 255, 0.45);
}

/* Tableau de synthese */
.synthesis-hero-card {
    margin-bottom: 30px;
}

.synthesis-hero-copy {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(41, 121, 255, 0.15);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.synthesis-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(41, 121, 255, 0.08);
    border: 1px solid rgba(41, 121, 255, 0.18);
    color: var(--neon-blue);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

.synthesis-hero-copy h3 {
    color: #ffffff;
    font-size: 1.9rem;
    line-height: 1.35;
    margin-bottom: 16px;
}

.synthesis-hero-copy p {
    color: #b0b0b0;
    line-height: 1.8;
}

.synthesis-document {
    margin-bottom: 30px;
    padding: 24px;
    border: 1px solid rgba(41, 121, 255, 0.15);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 20, 35, 0.82), rgba(10, 10, 12, 0.94));
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
}

.synthesis-preview-frame {
    display: block;
    width: min(100%, 1120px);
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.synthesis-preview-image {
    display: block;
    width: 100%;
    min-width: 980px;
    height: auto;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .kb-section {
        padding: 120px 24px 70px;
    }

    .kb-title {
        font-size: 2.4rem;
    }

    .kb-panel {
        padding: 22px;
    }

    .kb-panel-header h3 {
        font-size: 1.2rem;
    }

    .synthesis-preview-frame {
        width: 100%;
    }

    .synthesis-preview-image {
        min-width: 860px;
    }

    .synthesis-hero-copy h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .kb-grid,
    .kb-cert-grid {
        grid-template-columns: 1fr;
    }

    .kb-card {
        min-height: 145px;
    }

    .kb-title {
        font-size: 2rem;
    }

    .kb-cert-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .synthesis-hero-copy {
        padding: 20px;
    }

    .synthesis-hero-copy h3 {
        font-size: 1.35rem;
    }
}
/* ============================= */
/* CERTIFICATIONS - BADGES ONLY  */
/* ============================= */

.kb-badges-only-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 26px;
    align-items: stretch;
}

.kb-badge-only-card {
    min-height: 180px;
    background: #111111;
    border: 1px solid rgba(41, 121, 255, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kb-badge-only-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.18);
}

.kb-badge-only-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .kb-badges-only-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .kb-badge-only-card {
        min-height: 140px;
        padding: 16px;
    }

    .kb-badge-only-image {
        width: 90px;
        height: 90px;
    }
}

/* ============================= */
/* ORGANISATION PLUS AÉRÉE       */
/* ============================= */

.kb-panel {
    padding: 34px;
    margin-bottom: 36px;
}

.kb-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 28px;
}

.kb-card {
    min-height: 185px;
    padding: 28px 20px;
}

.kb-card span {
    font-size: 1.08rem;
}

.kb-card small {
    margin-top: 10px;
    font-size: 0.9rem;
}

.kb-badges-only-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.kb-badge-only-card {
    min-height: 220px;
    padding: 28px;
    gap: 14px;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top, rgba(41, 121, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid rgba(41, 121, 255, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 12px 24px rgba(0, 0, 0, 0.22);
}

.kb-badge-only-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

.kb-badge-only-image--document {
    border-radius: 8px;
    background: #ffffff;
}

.kb-badge-only-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3em;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}

.kb-badge-only-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(41, 121, 255, 0.18);
    background: rgba(41, 121, 255, 0.08);
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-badge-only-link {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: #dce8f5;
    opacity: 0.88;
    border-bottom: 1px solid rgba(41, 121, 255, 0.32);
    padding-bottom: 2px;
}

@media (max-width: 992px) {
    .kb-grid-large {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 22px;
    }

    .kb-badges-only-grid-large {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 22px;
    }

    .kb-card {
        min-height: 170px;
    }

    .kb-badge-only-card {
        min-height: 190px;
        gap: 12px;
    }

    .kb-badge-only-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .kb-grid-large,
    .kb-badges-only-grid-large {
        grid-template-columns: 1fr 1fr;
    }

    .kb-card {
        min-height: 155px;
        padding: 20px 14px;
    }

    .kb-card span {
        font-size: 0.98rem;
    }

    .kb-badge-only-card {
        min-height: 150px;
        padding: 18px;
    }

    .kb-badge-only-title {
        font-size: 0.88rem;
    }

    .kb-badge-only-provider {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    .kb-badge-only-image {
        width: 90px;
        height: 90px;
    }
}

.blog-section {
    padding: 120px 5% 90px;
    background:
        radial-gradient(circle at top right, rgba(41, 121, 255, 0.08) 0%, transparent 26%),
        linear-gradient(180deg, #0a0a0a 0%, #080808 100%);
    border-top: 1px solid rgba(41, 121, 255, 0.08);
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-header {
    margin-bottom: 34px;
    text-align: center;
}

.blog-kicker {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4af37;
}

.blog-subtitle {
    max-width: 780px;
    color: #aeb7c2;
    line-height: 1.8;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.blog-card {
    --blog-accent: var(--neon-blue);
    --blog-accent-rgb: 41, 121, 255;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border: 1px solid rgba(var(--blog-accent-rgb), 0.18);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 152px;
    gap: 18px;
    align-items: start;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--blog-accent-rgb), 0.42);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.blog-card:focus-visible {
    outline: 2px solid rgba(var(--blog-accent-rgb), 0.8);
    outline-offset: 4px;
}

.blog-card--ai { --blog-accent: #4aa8ff; --blog-accent-rgb: 74, 168, 255; }
.blog-card--business { --blog-accent: #f5b84b; --blog-accent-rgb: 245, 184, 75; }
.blog-card--claude { --blog-accent: #ff7b72; --blog-accent-rgb: 255, 123, 114; }
.blog-card--rgpd { --blog-accent: #6fd7c2; --blog-accent-rgb: 111, 215, 194; }
.blog-card--data { --blog-accent: #a88cff; --blog-accent-rgb: 168, 140, 255; }
.blog-card--bitcoin { --blog-accent: #ffb25a; --blog-accent-rgb: 255, 178, 90; }
.blog-card--cyber { --blog-accent: #43d18d; --blog-accent-rgb: 67, 209, 141; }

.blog-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(var(--blog-accent-rgb), 0.22);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015) 58%),
        rgba(10, 13, 20, 0.96);
    aspect-ratio: 16 / 9;
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    align-self: stretch;
}

.blog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-card-media--icon {
    background:
        radial-gradient(circle at 50% 35%, rgba(var(--blog-accent-rgb), 0.28), rgba(var(--blog-accent-rgb), 0.04) 52%, transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(8, 11, 18, 0.98);
}

.blog-card-media--icon i {
    font-size: clamp(2.6rem, 4vw, 3.7rem);
    color: rgba(var(--blog-accent-rgb), 0.96);
    text-shadow:
        0 0 22px rgba(var(--blog-accent-rgb), 0.18),
        0 0 40px rgba(var(--blog-accent-rgb), 0.12);
}

.blog-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #081018;
    background: rgba(var(--blog-accent-rgb), 0.95);
}

.blog-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: #8d98a8;
}

.blog-card h3 {
    margin: 0 0 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: #fff;
}

.blog-card p {
    margin: 0;
    color: #c8d0d9;
    line-height: 1.55;
    font-size: 0.9rem;
}

.blog-card-main {
    min-width: 0;
}

.blog-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.blog-card-read {
    font-size: 0.74rem;
    color: #8f9aab;
    line-height: 1.45;
    text-align: left;
}

.blog-points {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #dce3ea;
}

.blog-points li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid rgba(var(--blog-accent-rgb), 0.16);
}

.blog-sources span {
    width: 100%;
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    color: var(--blog-accent);
}

.blog-sources a {
    text-decoration: none;
    color: #d9e4ef;
    font-size: 0.92rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(var(--blog-accent-rgb), 0.28);
}

.blog-sources a:hover {
    color: #fff;
    border-color: rgba(var(--blog-accent-rgb), 0.55);
}

.blog-card-link {
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(var(--blog-accent-rgb), 0.28);
    background: rgba(var(--blog-accent-rgb), 0.10);
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-card-link:hover {
    background: rgba(var(--blog-accent-rgb), 0.18);
    border-color: rgba(var(--blog-accent-rgb), 0.48);
    transform: translateY(-1px);
}

.blog-modal-content {
    --blog-accent: var(--neon-blue);
    --blog-accent-rgb: 41, 121, 255;
    max-width: 980px;
    border: 1px solid rgba(var(--blog-accent-rgb), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--blog-accent-rgb), 0.12), rgba(255,255,255,0.02) 18%, rgba(9, 12, 20, 0.96) 100%);
}

.blog-modal-visual {
    margin: 22px 0 24px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(var(--blog-accent-rgb), 0.18);
    background: rgba(var(--blog-accent-rgb), 0.05);
    aspect-ratio: 16 / 9;
}

.blog-modal-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-modal-visual--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 35%, rgba(var(--blog-accent-rgb), 0.22), rgba(var(--blog-accent-rgb), 0.04) 52%, transparent 72%),
        linear-gradient(180deg, rgba(var(--blog-accent-rgb), 0.08), rgba(255, 255, 255, 0.01)),
        rgba(8, 11, 18, 0.98);
}

.blog-modal-visual--icon i {
    font-size: clamp(3rem, 7vw, 4.8rem);
    color: rgba(var(--blog-accent-rgb, 41, 121, 255), 0.96);
    text-shadow:
        0 0 28px rgba(var(--blog-accent-rgb, 41, 121, 255), 0.16),
        0 0 56px rgba(var(--blog-accent-rgb, 41, 121, 255), 0.12);
}

.contact-section {
    min-height: 100vh;
    padding: 112px 5% 84px;
    background:
        radial-gradient(circle at top center, rgba(41, 121, 255, 0.08), transparent 28%),
        linear-gradient(180deg, #0d0f15 0%, #090b11 100%);
    border-top: 1px solid rgba(41, 121, 255, 0.08);
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 36px;
    text-align: center;
}

.contact-subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.contact-card {
    border-radius: 24px;
    padding: 30px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(41, 121, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.contact-card--info {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 100%;
}

.contact-visual {
    position: relative;
    width: min(100%, 460px);
    min-height: clamp(520px, 48vw, 640px);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 24%, rgba(111, 215, 194, 0.12), transparent 34%),
        radial-gradient(circle at 72% 70%, rgba(41, 121, 255, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(7, 10, 18, 0.92);
    border: 1px solid rgba(41, 121, 255, 0.14);
    box-shadow:
        inset 0 0 50px rgba(41, 121, 255, 0.06),
        0 18px 42px rgba(0, 0, 0, 0.18);
}

.contact-signal-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(139, 200, 255, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 200, 255, 0.14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.contact-message-card,
.contact-response-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(139, 200, 255, 0.18);
    background: linear-gradient(180deg, rgba(15, 23, 38, 0.94), rgba(8, 13, 23, 0.94));
    box-shadow:
        0 24px 46px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.contact-message-card {
    left: 8%;
    top: 10%;
    width: 72%;
    min-height: 238px;
    padding: 22px;
    border-radius: 24px;
    animation: contactCardFloat 6s ease-in-out infinite;
}

.contact-message-top {
    display: flex;
    gap: 7px;
    margin-bottom: 28px;
}

.contact-message-top span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(139, 200, 255, 0.42);
}

.contact-message-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.55rem;
    background: linear-gradient(145deg, #2f86ff 0%, #1d55da 100%);
    box-shadow:
        0 14px 32px rgba(41, 121, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.contact-message-lines {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-message-lines span {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(201, 228, 255, 0.42), rgba(201, 228, 255, 0.08));
}

.contact-message-lines span:nth-child(1) {
    width: 88%;
}

.contact-message-lines span:nth-child(2) {
    width: 68%;
}

.contact-message-lines span:nth-child(3) {
    width: 46%;
}

.contact-flow {
    position: absolute;
    left: 15%;
    right: 12%;
    top: 62%;
    height: 56px;
    z-index: 1;
}

.contact-flow-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(41, 121, 255, 0), rgba(139, 200, 255, 0.42), rgba(111, 215, 194, 0.65));
    overflow: hidden;
}

.contact-flow-line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
    animation: contactFlowSweep 2.8s ease-in-out infinite;
}

.contact-flow-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #8bc8ff;
    box-shadow: 0 0 18px rgba(139, 200, 255, 0.44);
    transform: translate(-50%, -50%);
}

.contact-flow-dot--one {
    left: 18%;
    animation: contactDotPulse 2.8s ease-in-out infinite;
}

.contact-flow-dot--two {
    left: 52%;
    animation: contactDotPulse 2.8s ease-in-out 0.3s infinite;
}

.contact-flow-dot--three {
    left: 86%;
    background: #6fd7c2;
    box-shadow: 0 0 18px rgba(111, 215, 194, 0.44);
    animation: contactDotPulse 2.8s ease-in-out 0.6s infinite;
}

.contact-response-card {
    right: 8%;
    bottom: 10%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 184px;
    padding: 16px 18px;
    border-radius: 20px;
    color: #dff7ef;
    font-size: 0.95rem;
    font-weight: 700;
    animation: contactResponseFloat 6s ease-in-out 0.8s infinite;
}

.contact-response-card i {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #06120e;
    background: #6fd7c2;
}

.contact-response-card span {
    white-space: nowrap;
}

.contact-topic-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.contact-topic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    color: #d7e1ee;
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-topic:hover,
.contact-topic:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(41, 121, 255, 0.28);
    background: rgba(41, 121, 255, 0.08);
    box-shadow: 0 8px 20px rgba(41, 121, 255, 0.12);
}

.contact-topic.active {
    border-color: rgba(41, 121, 255, 0.4);
    background: linear-gradient(180deg, rgba(41, 121, 255, 0.16), rgba(41, 121, 255, 0.08));
    color: #fff;
    box-shadow: 0 14px 24px rgba(41, 121, 255, 0.16);
}

.contact-topic i {
    color: var(--neon-blue);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-hp {
    display: none;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field span {
    color: #f1f5fb;
    font-size: 0.92rem;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(7, 10, 18, 0.82);
    color: #fff;
    padding: 15px 16px;
    font: inherit;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-field textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #748194;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: rgba(41, 121, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.12);
    transform: translateY(-1px);
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-form-note {
    margin: 0;
    max-width: 420px;
    color: #95a3b5;
    font-size: 0.92rem;
    line-height: 1.65;
}

.contact-submit-btn {
    min-width: 210px;
}

.contact-submit-btn.is-sending {
    pointer-events: none;
    opacity: 0.8;
}

.contact-form-status {
    min-height: 24px;
    margin: 2px 0 0;
    color: #9eb7d8;
    font-size: 0.92rem;
}

.contact-form-status.is-success {
    color: #8de2b6;
}

.contact-form-status.is-error {
    color: #ff9e9e;
}

@keyframes contactCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes contactResponseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes contactFlowSweep {
    0% { transform: translateX(-110%); opacity: 0; }
    18% { opacity: 1; }
    72% { opacity: 1; }
    100% { transform: translateX(260%); opacity: 0; }
}

@keyframes contactDotPulse {
    0%, 100% {
        opacity: 0.48;
        transform: translate(-50%, -50%) scale(0.86);
    }
    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.16);
    }
}

.site-footer {
    padding: 34px 5%;
    background: linear-gradient(180deg, rgba(9, 11, 17, 0.98), rgba(5, 6, 10, 1));
    border-top: 1px solid rgba(41, 121, 255, 0.16);
}

.site-footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f4f8ff;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.site-footer-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(41, 121, 255, 0.9), rgba(41, 121, 255, 0.35));
    color: #fff;
    box-shadow: 0 10px 22px rgba(41, 121, 255, 0.24);
}

.site-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.site-footer-nav a {
    color: #aeb7c2;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
    color: #fff;
}

.site-footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer-socials a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(41, 121, 255, 0.22);
    color: #d8e8ff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.035);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer-socials a:hover,
.site-footer-socials a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(41, 121, 255, 0.48);
    background: rgba(41, 121, 255, 0.12);
}

.site-footer-copy {
    grid-column: 1 / -1;
    margin: 0;
    color: #7f8a99;
    font-size: 0.84rem;
    text-align: center;
}

.blog-modal-visual--icon-only {
    min-height: 170px;
}

.blog-modal-content .terminal-header {
    border-bottom: 1px solid rgba(var(--blog-accent-rgb), 0.18);
    background: linear-gradient(180deg, rgba(var(--blog-accent-rgb), 0.1), rgba(255,255,255,0.01));
}

.blog-modal-content .terminal-title,
.blog-modal-content .modal-title {
    color: #ffffff;
}

.blog-modal-content .modal-meta span {
    border: 1px solid rgba(var(--blog-accent-rgb), 0.18);
    background: rgba(var(--blog-accent-rgb), 0.08);
}

.blog-modal-content .modal-meta i {
    color: rgb(var(--blog-accent-rgb));
}

.blog-modal-content .blog-sources {
    border-top-color: rgba(var(--blog-accent-rgb), 0.16);
}

.blog-modal-content .blog-sources span {
    color: rgb(var(--blog-accent-rgb));
}

#modal-blog-ai .blog-modal-content { --blog-accent: #4aa8ff; --blog-accent-rgb: 74, 168, 255; }
#modal-blog-business .blog-modal-content { --blog-accent: #f5b84b; --blog-accent-rgb: 245, 184, 75; }
#modal-blog-claude .blog-modal-content { --blog-accent: #ff7b72; --blog-accent-rgb: 255, 123, 114; }
#modal-blog-rgpd .blog-modal-content { --blog-accent: #6fd7c2; --blog-accent-rgb: 111, 215, 194; }
#modal-blog-data .blog-modal-content { --blog-accent: #a88cff; --blog-accent-rgb: 168, 140, 255; }
#modal-blog-bitcoin .blog-modal-content { --blog-accent: #ffb25a; --blog-accent-rgb: 255, 178, 90; }
#modal-blog-cyber .blog-modal-content { --blog-accent: #43d18d; --blog-accent-rgb: 67, 209, 141; }

@media (max-width: 900px) {
    .intro-core {
        width: min(90vw, 390px);
        gap: 22px;
    }

    .intro-logo-shell {
        width: min(76%, 250px);
        border-radius: 24px;
        padding: 24px 22px;
    }

    .intro-logo-card {
        width: min(58%, 112px);
        border-radius: 18px;
    }

    .intro-code-name {
        letter-spacing: 0.14em;
        padding-left: 0.14em;
    }

    .intro-progress {
        grid-template-columns: minmax(0, 1fr) 54px;
        width: min(80vw, 324px);
        gap: 10px;
        padding: 14px;
        border-radius: 18px;
    }

    .intro-progress-track {
        height: 17px;
    }

    .intro-progress-value {
        height: 30px;
        font-size: 0.82rem;
    }

    .blog-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-media {
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .nav-shell {
        width: calc(100% - 16px);
        top: 10px;
    }

    .navbar {
        padding: 12px 12px 12px 14px;
        border-radius: 18px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    .hero,
    .about,
    .projects,
    .kb-section,
    .blog-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        min-height: 100svh;
        justify-content: center;
        align-items: center;
        padding-top: 112px;
        padding-bottom: 44px;
        gap: 22px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: min(100%, 360px);
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        min-width: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hello {
        margin-bottom: 18px;
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    #hacker-name {
        max-width: 100%;
        font-size: clamp(2.05rem, 9.5vw, 2.55rem);
        line-height: 1;
        margin: 12px 0 18px;
        margin-left: auto;
        margin-right: auto;
        overflow-wrap: normal;
        white-space: nowrap;
        text-wrap: balance;
    }

    .hero h2 {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(1.02rem, 4.2vw, 1.28rem);
        margin-bottom: 16px;
        overflow-wrap: break-word;
    }

    .hero h2 .highlight {
        display: block;
        margin-top: 2px;
    }

    .hero p {
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.98rem;
        margin-bottom: 26px;
    }

    .buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px 52px;
        gap: 12px;
        justify-content: stretch;
        width: 100%;
        max-width: 340px;
    }

    .social-buttons {
        display: contents;
    }

    .buttons > .btn-primary {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .buttons > .btn-secondary:not(.btn-icon) {
        width: 100%;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    .btn {
        min-height: 48px;
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .btn-icon {
        width: 52px;
        min-width: 52px;
        height: 52px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(56vw, 220px);
        height: min(56vw, 220px);
        opacity: 0.95;
        pointer-events: none;
    }

    .code-symbol {
        font-size: clamp(2.3rem, 10vw, 3rem);
    }

    .top-projects-section {
        padding: 64px 16px 52px;
    }

    .top-projects-header,
    .blog-header {
        align-items: flex-start;
        text-align: left;
    }

    .top-projects-podium {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .top-project-podium-card,
    .podium-gold,
    .podium-silver,
    .podium-bronze {
        min-height: auto;
        transform: none;
    }

    .section-title,
    .kb-title,
    .tz-big-title {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
        line-height: 1.08;
    }

    .subtitle,
    .project-subtitle,
    .top-projects-subtitle,
    .blog-subtitle {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .about {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 70px;
    }

    .about-container {
        gap: 28px;
        margin-bottom: 44px;
    }

    .about-details {
        max-width: 100%;
    }

    .about-desc,
    .bts-intro p,
    .exam-intro,
    .option-desc,
    .option-full-name,
    .jobs-list li,
    .tz-desc,
    .modal-text,
    .synthesis-hero-copy p,
    .kb-cert-card p,
    .blog-card p {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .bts-options {
        gap: 18px;
        margin-bottom: 48px;
    }

    .option-card {
        padding: 22px 18px;
    }

    .table-wrapper {
        border-radius: 12px;
    }

    .cyber-table {
        min-width: 640px;
        font-size: 0.84rem;
    }

    .cyber-table th,
    .cyber-table td {
        padding: 12px;
    }

    #section-timelines {
        margin-top: 70px !important;
    }

    .tz-timeline-item {
        gap: 12px;
        padding-bottom: 20px;
    }

    .tz-visual {
        width: 28px;
    }

    .projects {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 70px;
    }

    .projects-grid {
        gap: 18px;
    }

    .terminal-body {
        padding: 20px 18px;
    }

    .terminal-header {
        padding: 10px 12px;
        gap: 10px;
    }

    .terminal-title {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 0.72rem;
    }

    .p-title {
        font-size: 1.12rem;
    }

    .p-desc {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }

    .p-stack {
        gap: 8px;
        margin-bottom: 20px;
    }

    .code-badge {
        font-size: 0.74rem;
        padding: 4px 8px;
    }

    .modal-content {
        width: calc(100% - 20px);
        margin: 16px auto;
    }

    .modal-title {
        font-size: 1.35rem;
        line-height: 1.3;
        padding-right: 10px;
    }

    .modal-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 0.8rem;
    }

    .close-modal {
        font-size: 1.3rem;
    }

    .kb-section {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 64px;
    }

    .kb-panel {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .kb-panel-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .kb-panel-header h3 {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .kb-grid-large,
    .kb-grid,
    .kb-cert-grid {
        grid-template-columns: 1fr;
    }

    .kb-card,
    .kb-cert-card,
    .synthesis-hero-copy {
        border-radius: 14px;
    }

    .kb-card {
        min-height: 138px;
        padding: 18px 14px;
    }

    .skill-logo {
        width: 62px;
        height: 62px;
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .skill-logo-text {
        font-size: 2.3rem;
    }

    .kb-cert-top,
    .kb-cert-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .synthesis-hero-card {
        gap: 18px;
    }

    .synthesis-hero-copy h3 {
        font-size: 1.28rem;
    }

    .blog-section {
        padding-top: 76px;
        padding-bottom: 64px;
    }

    .blog-card {
        padding: 16px;
        border-radius: 16px;
    }

    .blog-card-media {
        min-height: 180px;
    }

    .blog-card-media img {
        min-height: 180px;
    }

    .blog-card-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .blog-card h3 {
        font-size: 1rem;
    }

    .blog-points {
        padding-left: 16px;
        margin-bottom: 14px;
    }

    .blog-card-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    #contact {
        min-height: auto !important;
        height: auto !important;
        padding: 88px 16px 64px !important;
        text-align: center;
    }

    #contact > div {
        width: 100%;
        max-width: 100%;
    }

    .contact-layout,
    .contact-form-grid,
    .contact-topic-picker {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 22px;
        border-radius: 20px;
    }

    .contact-visual {
        width: min(100%, 330px);
        min-height: 430px;
        margin: 0 auto;
        border-radius: 22px;
    }

    .contact-message-card {
        left: 8%;
        top: 10%;
        width: 72%;
        min-height: 186px;
        padding: 16px;
        border-radius: 18px;
    }

    .contact-message-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        font-size: 1.15rem;
    }

    .contact-flow {
        left: 14%;
        right: 10%;
        top: 61%;
    }

    .contact-response-card {
        right: 6%;
        bottom: 10%;
        min-width: 150px;
        padding: 12px 14px;
        font-size: 0.82rem;
        border-radius: 16px;
    }

    .contact-form-footer {
        align-items: stretch;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .site-footer {
        padding: 30px 16px;
    }

    .site-footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .site-footer-nav {
        max-width: 280px;
    }

    .veille-section {
        padding: 88px 16px 64px;
    }

    .veille-title {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
        line-height: 1.08;
    }

    .veille-overview-grid {
        grid-template-columns: 1fr;
    }

    .veille-layout {
        grid-template-columns: 1fr;
    }

    .veille-youtube-grid {
        grid-template-columns: 1fr;
    }

    .veille-card {
        padding: 20px;
        border-radius: 18px;
        text-align: left;
    }

    .veille-pdf-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .veille-present-btn {
        width: 100%;
        justify-content: center;
    }

    .veille-pdf-frame iframe {
        height: 62vh;
    }

    .veille-actions {
        flex-direction: column;
    }

    .veille-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .career-hero,
    .career-roadmap,
    .career-grid {
        grid-template-columns: 1fr;
    }

    .career-hero-tags {
        justify-content: flex-start;
        max-width: none;
    }

    .career-hero,
    .career-card,
    .career-roadmap article,
    .career-conclusion {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        margin-top: 10px;
        padding: 8px;
    }

    .nav-links a {
        min-height: 44px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 104px;
        padding-bottom: 36px;
        gap: 20px;
    }

    #hacker-name {
        font-size: clamp(2rem, 10.4vw, 2.36rem);
        line-height: 1;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        white-space: nowrap;
    }

    .hero h2 {
        max-width: 18rem;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .hero h2 .highlight {
        display: block;
        margin-top: 2px;
    }

    .hero p {
        max-width: 20rem;
        font-size: 0.92rem;
    }

    .buttons {
        grid-template-columns: minmax(0, 1fr) 50px 50px;
        justify-content: stretch;
    }

    .buttons > .btn {
        width: auto;
        min-width: 0;
    }

    .social-buttons {
        display: contents;
    }

    .social-buttons .btn-icon {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }

    .hero-visual {
        right: auto;
        bottom: auto;
        width: min(54vw, 205px);
        height: min(54vw, 205px);
    }

    .top-project-link,
    .btn-console,
    .blog-card-link,
    .kb-cert-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .top-project-podium-card,
    .terminal-card,
    .kb-panel,
    .kb-cert-card,
    .blog-card {
        border-radius: 14px;
    }

    .top-project-podium-card {
        padding: 18px 16px;
    }

    .terminal-body {
        padding: 18px 16px;
    }

    .modal-content {
        width: calc(100% - 14px);
        margin: 10px auto;
    }

    .modal-title {
        font-size: 1.18rem;
    }

    .project-modal-image,
    .project-modal-hero-image {
        border-radius: 10px;
    }

    .kb-title,
    .section-title,
    .tz-big-title {
        font-size: 1.7rem;
    }

    .kb-panel-header i {
        font-size: 1.3rem;
    }

    .kb-card > span:not(.skill-logo) {
        font-size: 0.98rem;
    }

    .blog-tag,
    .podium-medal,
    .project-rank-badge {
        font-size: 0.7rem;
    }

    .intro-core {
        width: min(92vw, 340px);
        gap: 18px;
    }

    .intro-logo-shell {
        width: min(78%, 220px);
    }

    .intro-logo-card {
        width: min(58%, 98px);
    }

    .intro-code-name {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        padding-left: 0.1em;
    }

    .intro-progress {
        grid-template-columns: minmax(0, 1fr) 48px;
        width: min(78vw, 292px);
        gap: 8px;
        padding: 13px 12px;
        border-radius: 17px;
    }

    .intro-progress-track {
        height: 16px;
    }

    .intro-progress-value {
        min-width: 0;
        height: 28px;
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   NOUVELLE SECTION À PROPOS
   ========================================================================== */

.about-new {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 992px) {
    .about-new {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Carte profil (gauche) --- */
.ap-profile {
    background: rgba(13, 20, 38, 0.7);
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ap-avatar-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #64ffda);
    box-shadow: 0 0 20px rgba(41, 121, 255, 0.3);
}

.ap-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #090e18;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

.ap-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.ap-role {
    font-size: 0.95rem;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    margin-bottom: 15px;
}

.ap-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(41, 121, 255, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.8rem;
    margin-bottom: 25px;
}

.ap-status-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    box-shadow: 0 0 10px #43b581;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.ap-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9aa8b8;
    font-size: 0.9rem;
}

.ap-contacts li svg {
    color: var(--accent);
    flex-shrink: 0;
}

.ap-contacts li a {
    color: inherit;
    transition: color 0.2s;
}

.ap-contacts li a:hover {
    color: #ffffff;
}

.ap-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-stat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
}

.ap-stat-lbl {
    font-size: 0.75rem;
    color: #9aa8b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Colonne droite --- */
.ap-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ap-who {
    background: rgba(13, 20, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
}

.ap-who-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* ==========================================================================
   NOUVELLE SECTION À PROPOS
   ========================================================================== */

.section-alt {
    background: rgba(13, 20, 38, 0.3);
    padding: 80px 0;
}

.about-new {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .about-new {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Carte profil (gauche) --- */
.ap-profile {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid rgba(41, 121, 255, 0.3);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    position: sticky;
    top: 100px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ap-avatar-ring {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), #64ffda);
    box-shadow: 0 0 25px rgba(41, 121, 255, 0.4);
}

.ap-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #090e18;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--neon-blue);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    border: 2px solid rgba(41, 121, 255, 0.2);
}

.ap-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.ap-role {
    font-size: 0.85rem;
    color: var(--neon-blue);
    font-family: 'Space Mono', monospace;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.ap-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(41, 121, 255, 0.15);
    border: 1px solid rgba(41, 121, 255, 0.3);
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.75rem;
    margin-bottom: 25px;
}

.ap-status-dot {
    width: 8px;
    height: 8px;
    background: #43b581;
    border-radius: 50%;
    box-shadow: 0 0 10px #43b581;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.ap-contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ap-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9aa8b8;
    font-size: 0.85rem;
}

.ap-contacts li svg {
    color: var(--neon-blue);
    flex-shrink: 0;
}

.ap-contacts li a {
    color: inherit;
    transition: color 0.2s;
    text-decoration: none;
}

.ap-contacts li a:hover {
    color: var(--neon-blue);
}

.ap-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap-stat-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
}

.ap-stat-lbl {
    font-size: 0.65rem;
    color: #9aa8b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Colonne droite --- */
.ap-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ap-who {
    background: rgba(13, 20, 38, 0.5);
    border: 1px solid rgba(41, 121, 255, 0.15);
    border-radius: 20px;
    padding: 30px;
}

.ap-who-head {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ap-who-icon {
    width: 36px;
    height: 36px;
    background: rgba(41, 121, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
}

.ap-who-head h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0;
}

.ap-who p {
    color: #d5dde6;
    line-height: 1.7;
    margin-bottom: 15px;
}

.ap-link {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.ap-link:hover {
    border-bottom-color: var(--neon-blue);
}

.ap-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.ap-card {
    background: rgba(13, 20, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
}

.ap-card-title {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9aa8b8;
    font-size: 0.95rem;
}

.ap-list li::before {
    content: "▹";
    color: var(--neon-blue);
    font-size: 1.1rem;
}

.btn-see-cv {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--neon-blue);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-see-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 121, 255, 0.4);
}

/* --- RESTAURATION NAVBAR ANCIENNE --- */
.nav-shell {
    top: 18px;
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    opacity: 1;
    transform: translateX(-50%);
    animation: none;
}

body.is-loading .nav-shell,
body.intro-running .nav-shell {
    opacity: 1;
    transform: translateX(-50%);
    animation: none;
}

.navbar {
    width: 100%;
    gap: 24px;
    padding: 14px 20px 14px 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
        rgba(10, 10, 10, 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(41, 121, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.navbar::before {
    background: linear-gradient(120deg, rgba(41, 121, 255, 0.45), rgba(255, 255, 255, 0.08), rgba(41, 121, 255, 0.2));
}

.navbar::after {
    content: none;
}

.logo {
    gap: 12px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(145deg, rgba(41, 121, 255, 0.9), rgba(41, 121, 255, 0.35));
    box-shadow: 0 10px 24px rgba(41, 121, 255, 0.28);
}

.logo-text {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.nav-links {
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    box-shadow: none;
}

.nav-links a {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.nav-progress {
    position: static;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(41, 121, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
}

@media (max-width: 900px) {
    .nav-shell {
        top: 10px;
        width: calc(100% - 16px);
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 9px 10px 8px;
        gap: 8px;
        min-height: 0;
        border-radius: 16px;
    }

    .logo {
        gap: 10px;
        min-height: 0;
        padding: 0;
        align-self: flex-start;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .logo-text {
        font-size: 1.12rem;
        letter-spacing: 0.07em;
    }

    .nav-toggle {
        display: none !important;
    }

    .nav-links-stack {
        width: 100%;
        margin-left: 0;
        align-items: stretch;
        gap: 0;
        position: relative;
    }

    .nav-links {
        display: none;
    }

    .nav-progress {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 4px;
        margin: 4px 0 0;
        background: rgba(41, 121, 255, 0.16);
        box-shadow: inset 0 0 0 1px rgba(139, 200, 255, 0.1);
    }
}

/* --- LOADER SIMPLE + ANIMATION D'ENTRÉE --- */
.portfolio-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 50%, rgba(41, 121, 255, 0.18), transparent 34%),
        linear-gradient(145deg, #02050d 0%, #071326 50%, #010307 100%);
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition:
        opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.82s;
}

.portfolio-loader::before {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: -2;
    background-image: var(--loader-stars);
    background-size: 120px 120px, 180px 180px;
    background-position: 0 0, 44px 28px;
    opacity: 0.5;
    animation: loaderStarsSimple 11s linear infinite;
}

.portfolio-loader::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.026) 0 1px,
            transparent 1px 6px
        ),
        linear-gradient(90deg, transparent, rgba(41, 121, 255, 0.09), transparent);
    opacity: 0.58;
    pointer-events: none;
}

.portfolio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-shutter {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    height: calc(50% + 2px);
    overflow: visible;
    pointer-events: none;
    background:
        var(--loader-stars),
        radial-gradient(circle at center, rgba(41, 121, 255, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(2, 5, 13, 0.99), rgba(4, 9, 20, 0.995));
    background-size: 120px 120px, 180px 180px, auto, auto;
    background-position: 0 0, 44px 28px, center, center;
    transform: translateY(0);
    will-change: transform;
}

.intro-shutter-bottom {
    background-position: 62px 48px, 12px 126px, center, center;
}

.intro-shutter::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.74),
        0 0 54px rgba(139, 200, 255, 0.38);
}

.intro-shutter-top {
    top: 0;
}

.intro-shutter-top::after {
    bottom: 0;
}

.intro-shutter-bottom {
    bottom: 0;
}

.intro-shutter-bottom::after {
    top: 0;
}

.loader-name-stage {
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    place-items: center;
    row-gap: clamp(0.7rem, 1.4vw, 1.1rem);
    z-index: 2;
    width: min(92vw, 1180px);
    padding: 24px;
    text-align: center;
}

.loader-name-stage::before,
.loader-name-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    width: min(72vw, 760px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 200, 255, 0.76), transparent);
    box-shadow: 0 0 26px rgba(41, 121, 255, 0.5);
    transform: translateX(-50%) scaleX(0);
    animation: loaderNameLine 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.loader-name-stage::before {
    top: 0;
}

.loader-name-stage::after {
    bottom: 0;
}

.loader-full-name {
    display: block;
    color: #ffffff;
    font-family: 'Space Mono', monospace;
    font-size: clamp(3.6rem, 10.6vw, 10rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.3),
        0 0 42px rgba(41, 121, 255, 0.54),
        0 0 90px rgba(41, 121, 255, 0.26);
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.96);
    filter: blur(8px);
    backface-visibility: hidden;
    transform-origin: center;
    will-change: transform, opacity;
    animation:
        loaderNameEnter 0.95s cubic-bezier(0.2, 0.85, 0.2, 1) 0.12s forwards,
        loaderNamePulse 2.4s ease-in-out 1.15s infinite;
}

.loader-subtitle {
    display: block;
    color: rgba(222, 237, 255, 0.84);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.72rem, 1.25vw, 1rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-shadow:
        0 0 16px rgba(139, 200, 255, 0.28),
        0 0 34px rgba(41, 121, 255, 0.22);
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    animation: loaderSubtitleEnter 0.72s cubic-bezier(0.2, 0.85, 0.2, 1) 0.42s forwards;
}

.loader-progress-hidden {
    display: none;
}

.intro-tv-line {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 100vw;
    height: 2px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.98), transparent);
    box-shadow:
        0 0 16px rgba(255, 255, 255, 0.76),
        0 0 54px rgba(139, 200, 255, 0.42);
    transform: translate(-50%, -50%) scaleX(0.2);
    will-change: transform, opacity;
}

.intro-tv-flash {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(246, 251, 255, 0.34), transparent 34%),
        linear-gradient(180deg, rgba(139, 200, 255, 0.14), transparent 16%, transparent 84%, rgba(139, 200, 255, 0.14));
    mix-blend-mode: screen;
    will-change: opacity;
}

body.intro-progress-complete:not(.intro-reveal) .loader-full-name {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
    animation:
        loaderNameComplete 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.intro-progress-complete:not(.intro-reveal) .loader-subtitle {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.intro-reveal .portfolio-loader {
    opacity: 1;
    visibility: visible;
    background: transparent;
    transform: none;
}

body.intro-reveal .portfolio-loader::before,
body.intro-reveal .portfolio-loader::after {
    opacity: 0;
}

body.intro-reveal .portfolio-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.intro-reveal .loader-full-name {
    filter: none;
    animation: loaderNameExit 0.62s cubic-bezier(0.28, 0, 0.16, 1) forwards;
}

body.intro-reveal .loader-subtitle {
    animation: loaderSubtitleExit 0.42s cubic-bezier(0.28, 0, 0.16, 1) forwards;
}

body.intro-reveal .loader-name-stage::before,
body.intro-reveal .loader-name-stage::after {
    opacity: 0;
    transition: opacity 0.42s ease;
}

body.intro-reveal .intro-shutter-top {
    animation: introShutterTopOpen 2s cubic-bezier(0.42, 0, 0.2, 1) 0.2s forwards;
}

body.intro-reveal .intro-shutter-bottom {
    animation: introShutterBottomOpen 2s cubic-bezier(0.42, 0, 0.2, 1) 0.2s forwards;
}

body.intro-reveal .intro-shutter::after {
    animation: introShutterGlow 1.65s cubic-bezier(0.42, 0, 0.2, 1) 0.1s forwards;
}

body.intro-reveal .intro-tv-line {
    animation: introTvLine 0.58s cubic-bezier(0.16, 0.84, 0.2, 1) 0.12s forwards;
}

body.intro-reveal .intro-tv-flash {
    animation: introTvFlash 0.58s cubic-bezier(0.16, 0.84, 0.2, 1) 0.2s forwards;
}

body.is-loading:not(.intro-reveal) .nav-shell {
    opacity: 0 !important;
    pointer-events: none;
    transform: translate(-50%, -18px) scale(0.98) !important;
    animation: none !important;
}

body.intro-reveal .nav-shell {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.98);
    animation: navShellEnter 0.92s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s forwards;
}

body.is-loading:not(.intro-reveal) .animate-text,
body.is-loading:not(.intro-reveal) #hacker-name {
    opacity: 0;
    transform: translateY(40px);
    animation: none !important;
}

body.intro-reveal .animate-text,
body.intro-reveal #hacker-name {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1.18s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

body.intro-reveal #hacker-name {
    animation-delay: 0.36s;
}

body.intro-reveal .delay-1 {
    animation-delay: 0.28s;
}

body.intro-reveal .delay-3 {
    animation-delay: 0.52s;
}

body.intro-reveal .delay-4 {
    animation-delay: 0.76s;
}

body.intro-reveal .delay-5 {
    animation-delay: 1s;
}

@keyframes loaderNameEnter {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes loaderSubtitleEnter {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes loaderNamePulse {
    0%, 100% {
        text-shadow:
            0 0 18px rgba(255, 255, 255, 0.3),
            0 0 42px rgba(41, 121, 255, 0.54),
            0 0 90px rgba(41, 121, 255, 0.26);
    }
    50% {
        text-shadow:
            0 0 24px rgba(255, 255, 255, 0.42),
            0 0 58px rgba(41, 121, 255, 0.72),
            0 0 118px rgba(41, 121, 255, 0.36);
    }
}

@keyframes loaderNameComplete {
    0%, 100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
    46% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.018);
        filter: blur(0);
    }
}

@keyframes loaderNameExit {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scaleX(1) scaleY(1);
    }
    38% {
        opacity: 0.92;
        transform: translate3d(0, 0, 0) scaleX(1.018) scaleY(0.78);
    }
    72% {
        opacity: 0.32;
        transform: translate3d(0, 0, 0) scaleX(1.06) scaleY(0.16);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scaleX(1.1) scaleY(0.04);
    }
}

@keyframes loaderSubtitleExit {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes loaderNameLine {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes loaderStarsSimple {
    to {
        background-position: 120px 120px, 224px 208px;
    }
}

@keyframes introTvLine {
    0%, 8% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(0.12);
    }
    18% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scaleX(0.72);
    }
    34% {
        opacity: 0.34;
        transform: translate(-50%, -50%) scaleX(1);
    }
    54% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(1.02);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scaleX(1.03);
    }
}

@keyframes introTvFlash {
    0%, 18% {
        opacity: 0;
    }
    28% {
        opacity: 0.14;
    }
    38% {
        opacity: 0.34;
    }
    50% {
        opacity: 0.02;
    }
    100% {
        opacity: 0;
    }
}

@keyframes introShutterGlow {
    0%, 8% {
        opacity: 0;
        transform: scaleX(0.28);
    }
    16% {
        opacity: 0.78;
        transform: scaleX(0.62);
    }
    30% {
        opacity: 0.52;
        transform: scaleX(1);
    }
    62% {
        opacity: 0.22;
        transform: scaleX(1.04);
    }
    82% {
        opacity: 0.08;
        transform: scaleX(1.05);
    }
    96%, 100% {
        opacity: 0;
        transform: scaleX(1.06);
    }
}

@keyframes introShutterTopOpen {
    0%, 8% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-112%);
    }
}

@keyframes introShutterBottomOpen {
    0%, 8% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(112%);
    }
}

@media (max-width: 640px) {
    .loader-name-stage {
        width: min(100vw, 390px);
        padding: 18px 14px;
        row-gap: 0.65rem;
    }

    .loader-full-name {
        font-size: clamp(3rem, 16vw, 5.2rem);
        line-height: 1;
        letter-spacing: 0.04em;
    }

    .loader-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.28em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-loader::before,
    .loader-name-stage::before,
    .loader-name-stage::after,
    .intro-shutter,
    .intro-shutter::after,
    .intro-tv-line,
    .intro-tv-flash,
    .loader-full-name,
    .loader-subtitle,
    body.intro-progress-complete .loader-full-name,
    body.intro-progress-complete .loader-subtitle,
    body.intro-reveal .nav-shell,
    body.intro-reveal .animate-text,
    body.intro-reveal #hacker-name {
        animation: none !important;
    }

    .loader-full-name,
    .loader-subtitle,
    body.intro-reveal .nav-shell,
    body.intro-reveal .animate-text,
    body.intro-reveal #hacker-name {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
