@font-face {
    font-family: 'Poppins-Regular';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins-Bold';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins-Italic';
    src: url('fonts/Poppins-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

:root {
    --blue: #238de4;
    --primary: #48A6A7;
    --primaryhover: #81cbd3;
    --bg: #181c24;
    --bgtr: rgba(40, 44, 54, 0.7);
    --txt: #f7f7fa;
    --overlay-dark: rgba(10, 18, 40, 0.68);
    --overlay-blur: blur(8px);
    --green: #1ecb5c;
    --gold: #ffb800;
    --warm: #ffefc1;
    --navbar-bg: rgba(24, 28, 36, 0.98);
    --navbar-txt: #fff;
    --navbar-shadow: 0 2px 16px 0 rgba(35, 141, 228, 0.10);
    --skill-bg: #232b3e;
    --skill-hover: #48A6A7;
    --primary-bold: #48A6A7;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: none;
    text-decoration: none;
    list-style: none;
    transition: all 0.3s cubic-bezier(.4, 2, .3, 1);
}

::-webkit-scrollbar {
    width: .5em;
    height: 1vmin;
}

::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, var(--bg) 0%, var(--primary) 50%);
    border: none;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(120deg, var(--bg) 0%, var(--primaryhover) 30%);
    border: none;
    border-radius: 50px;
}

::-webkit-scrollbar-track:hover {
    background: var(--bg);
    border: none;
    border-radius: 0px;
}

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

::-moz-selection {
    background-color: #48a5a751;
}

::selection {
    background-color: #48a5a751;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins-Regular', Arial, sans-serif;
    background: linear-gradient(120deg, #232b3e 0%, #181c24 100%);
    color: var(--txt);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
}

button {
    transition: all 0.2s;
    cursor: pointer;
}

button:hover {
    transition: all 0.2s;
    transform: translateY(-2px);
}

.lang-switch-topright {
    position: fixed;
    top: 2em;
    right: 2em;
    z-index: 2001;
}

#lang-switch {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2em;
    padding: 0.3em 0.7em;
    border-radius: 2em;
    box-shadow: 0 2px 8px 0 rgba(35, 141, 228, 0.10);
    background: rgba(30, 34, 44, 0.98);
    transition: background 0.2s;
}

#lang-switch img {
    width: 2em;
    height: 2em;
    filter: drop-shadow(0 0 2px var(--primary));
}

#lang-switch:hover {
    background: var(--primary);
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    padding-top: .5em;
    padding-bottom: .5em;
}

section {
    width: 100%;
    max-width: 1200px;
    padding-top: 5em;
    padding-bottom: 5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border: none;
    min-height: unset;
    justify-content: flex-start;
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: visible;
}

.section-card {
    width: 100%;
    border-radius: 2em;
    background: rgba(40, 44, 54, 0.55);
    box-shadow: 0 8px 48px 0 rgba(35, 141, 228, 0.087);
    border: 1.5px solid rgba(129, 203, 211, 0.189);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 510px;
    box-sizing: border-box;
    padding: 2em;
}

.section-title {
    font-size: clamp(1.7em, 4vw, 2.2em);
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    margin: 0;
    letter-spacing: 0.01em;
}

.section-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5em;
    margin-top: 0;
    text-align: center;
}

.name-diploma {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.1em;
    justify-content: space-between;
}

#age {
    color: var(--primaryhover);
    margin-top: -0.8em;
    margin-bottom: 0.7em;
    font-size: 1.1em;
    font-weight: bold;
    display: block;
}

.home-role {
    color: white !important;
}

.about-content h2 {
    color: var(--blue);
    font-size: 1.1em;
    font-family: 'Poppins-Bold', Arial, sans-serif;
    margin-bottom: 0.7em;
    margin-top: 0;
}

.about-text h3 {
    font-size: 1.3em;
    color: var(--primary);
    margin-bottom: 0.7em;
}

.about-text p {
    color: #f7f7fa;
    font-size: 1.08em;
    margin-bottom: 1em;
    line-height: 1.7;
    overflow: visible;
    word-break: break-word;
}

.about-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: bold;
}

.primary-bold {
    color: var(--primary-bold);
    font-weight: bold;
}

.about-contacts {
    display: flex;
    gap: 1.5em;
    margin-top: 1.2em;
    flex-wrap: wrap;
    justify-content: center;
}

.about-contacts .contact-link {
    color: var(--primary);
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: #232b3e;
    padding: 0.5em 1.2em;
    border-radius: 1em;
    box-shadow: 0 1px 6px 0 rgba(35, 141, 228, 0.04);
}

.about-contacts .contact-link:hover {
    color: var(--primaryhover);
    border-bottom: 2px solid var(--primaryhover);
    color: #fff;
}

.about-contacts .contact-link .icon-inline {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.skills-section,
.projects-section {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2em;
}

.skills-row {
    display: flex;
    flex-direction: row;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    gap: 2em;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

.skills-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.skills-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    align-items: center;
}

.skill-tag {
    background: #232b3e;
    color: #f7f7fa;
    font-weight: 600;
    border-radius: 0.7em;
    padding: 0.7em 1.7em 0.7em 1em;
    font-size: 1.13em;
    box-shadow: 0 1px 6px 0 rgba(35, 141, 228, 0.04);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    cursor: default;
    border: 1px solid #232b3e;
    display: flex;
    align-items: center;
    gap: 0.7em;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSkill 0.7s cubic-bezier(.4, 2, .3, 1) forwards;
}

.skill-tag img.skill-icon {
    width: 1.7em;
    height: 1.7em;
    margin-right: 0.3em;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px var(--primary));
    flex-shrink: 0;
}

.skill-tag.fade-in-delay {
    animation-delay: calc(var(--i, 0) * 0.07s + 0.5s);
}

.skill-tag:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.07);
    border-color: var(--primaryhover);
}

@keyframes diplomaFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.diploma-list {
    display: flex;
    flex-direction: column;
    gap: 1.7em;
    margin-top: 1.5em;
}

.diploma-item {
    display: flex;
    align-items: center;
    gap: 1.2em;
    background: #181c24;
    border-radius: 1em;
    padding: 1.2em 1.7em;
    box-shadow: 0 2px 12px 0 rgba(35, 141, 228, 0.10);
    border: 1.5px solid rgba(129, 203, 211, 0.10);
    transition: box-shadow 0.2s, border 0.2s, background 0.2s;
    animation: fadeInUp 1.2s cubic-bezier(.4, 2, .3, 1);
}

.diploma-item:hover {
    box-shadow: 0 6px 24px 0 rgba(72, 166, 167, 0.18);
    border: 1.5px solid var(--primary);
    background: #232b3e;
}

.diploma-badge {
    font-size: 1em;
    font-weight: bold;
    border-radius: 1em;
    padding: 0.4em 1.2em;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 1px 6px 0 rgba(35, 141, 228, 0.08);
    display: flex;
    align-items: center;
    gap: 0.4em;
    letter-spacing: 0.02em;
}

.diploma-badge.blue {
    background: var(--blue);
}

.diploma-badge.gold {
    background: var(--gold);
}

.diploma-badge.toeic {
    background: #22c55e;
    color: #fff;
    font-weight: bold;
    font-size: 1.05em;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 8px 0 rgba(34, 197, 94, 0.13);
}

.diploma-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.2em;
}

.diploma-school {
    color: #eaeaea;
    font-size: 1em;
}

.diploma-year {
    color: #aaa;
    font-size: 0.95em;
    margin-top: 0.2em;
}

/* ANIMATIONS UNIQUES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

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

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInSkill {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInPopup {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInPopup {
    from {
        transform: translateY(60px) scale(0.98);
    }

    to {
        transform: none;
    }
}

@keyframes fadeInRole {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInProfileOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInProfileImg {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutProfileOverlay {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
.diploma-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    align-items: center;
    justify-content: center;
    background: rgba(10, 18, 40, 0.65);
    /* autres styles si besoin */
}

.diploma-popup.open {
    display: flex;
    /* animation ou transition si besoin */
}
/* diploma-popup-content unique et optimisé */
.diploma-popup-content {
    background: #232b3e;
    border-radius: 1.5em;
    box-shadow: 0 8px 24px 0 rgba(35, 141, 228, 0.13);
    padding: 2.5em 2em 2em 2em;
    min-width: 320px;
    max-width: 95vw;
    animation: slideInPopup 0.5s cubic-bezier(.4, 2, .3, 1);
    position: relative;
    color: var(--txt);
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
textarea,
select,
a,
p,
span,
div {
    font-family: 'Poppins', 'Poppins-Regular', Arial, sans-serif !important;
}

.diploma-btn-elegant {
    display: flex;
    align-items: center;
    gap: 0.7em;
    padding: 0.5em 1.3em;
    background: transparent;
    border: 1.5px solid rgba(129, 203, 211, 0.18);
    border-radius: 2em;
    color: #e0e0e0;
    font-size: 1.08em;
    font-weight: 500;
    box-shadow: 0 2px 8px 0 rgba(35, 141, 228, 0.06);
    transition: border 0.2s, color 0.2s, background 0.2s;
}

.diploma-btn-elegant:hover {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: rgba(72, 166, 167, 0.08);
}

.diploma-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5em;
}

.diploma-btn-icon img {
    width: 1.5em;
    height: 1.5em;
    display: block;
}

.about-photo {
    flex: 0 0 320px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 90%;
}

.profile-pic-large.no-bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: auto;
    height: 70vh;
    max-height: 480px;
    min-height: 220px;
    object-fit: cover;
    box-shadow: none;
    background: none;
    border: none;
    align-self: flex-end;
}

.cursor-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 203, 211, 0.1) 0%, rgba(72, 166, 167, 0.01) 60%, transparent 100%);
    filter: blur(32px);
    z-index: 1;
    mix-blend-mode: lighten;
    transition: opacity 0.2s;
    opacity: 0.7;
    display: none;
}

/* Navbar compacte et traits */
.navbar-vertical {
    position: fixed;
    top: 50%;
    left: 2em;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    background: rgba(30, 34, 44, 0.488);
    border-radius: 2em;
    padding: 0.7em 0.5em;
    z-index: 2000;
    width: 56px;
    min-height: unset;
    height: auto;
}

.navbar-vertical .nav-link {
    width: 48px;
    height: 48px;
    margin: 0.2em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--navbar-txt);
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.navbar-vertical .nav-link:hover {
    filter: drop-shadow(0 0 20px var(--primary));
    color: #fff;
}

.navbar-vertical .nav-link.active {
    filter: drop-shadow(0 0 5px var(--primary));
    color: #fff;
}

.navbar-vertical .nav-link img {
    width: 2.2em;
    height: 2.2em;
}

.navbar-vertical .nav-separator {
    width: 3px;
    height: 36px;
    background: #fff;
    border-radius: 2px;
    margin: 0.1em 0;
    transition: background 0.3s, box-shadow 0.3s;
    opacity: 0.7;
    box-shadow: 0 0 8px 0 rgba(72, 166, 167, 0.08);
}

.navbar-vertical .nav-separator.active {
    background: var(--primary);
    opacity: 1;
    box-shadow: 0 0 10px 0 var(--primaryhover);
}

.navbar-section-label {
    position: fixed;
    left: 90px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary);
    background: rgba(24, 28, 36, 0.98);
    border-radius: 1.2em;
    padding: 0.5em 1.2em;
    box-shadow: 0 2px 16px 0 rgba(35, 141, 228, 0.10);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, color 0.3s;
    white-space: nowrap;
}

.navbar-section-label.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Palette plus sobre */
body,
.section,
.about-content,
.skills-section,
.projects-section {
    color: #e0e0e0;
    background: none;
}

.primary-bold {
    color: var(--primary-bold);
    font-weight: bold;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 3em;
    width: 100%;
    max-width: 1100px;
}

.about-photo-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    height: 100%;
    min-width: 220px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    min-width: 320px;
    max-width: 620px;
    justify-content: flex-start;
}

.about-content h1 {
    color: var(--primary);
    font-size: 2.5em;
    margin-bottom: 0.1em;
    margin-top: 0;
}

.about-content h2 {
    color: var(--blue);
    font-size: 1.1em;
    font-family: 'Poppins-Bold', Arial, sans-serif;
    margin-bottom: 0.7em;
    margin-top: 0;
}

.profile_phone {
    display: none;
    filter: drop-shadow(0 0 8px var(--primary));
    width: 30%;
    margin: 1em;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
    width: 100%;
    padding: 1em 0;
}

.project-card {
    border-radius: 1.5em;
    overflow: hidden;
    box-shadow: 0 4px 16px 0 rgba(35, 141, 228, 0.10);
    border: 1px solid rgba(129, 203, 211, 0.1);
    transition: all 0.3s cubic-bezier(.4, 2, .3, 1);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px 0 rgba(35, 141, 228, 0.16);
    border-color: rgba(129, 203, 211, 0.3);
}

.project-banner {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-banner img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 28, 36, 0.95) 0%, rgba(24, 28, 36, 0.85) 30%, rgba(24, 28, 36, 0.6) 70%, rgba(24, 28, 36, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2em;
}

.project-overlay::after {
    content: "Infos";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--primary);
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 0.9em;
    opacity: 0;
    transition: all 0.3s cubic-bezier(.4, 2, .3, 1);
    pointer-events: none;
    z-index: 10;
}

.project-card:hover .project-overlay::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.project-title {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-description {
    color: #e0e0e0;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-top: 0.3em;
}

.tech-tag {
    font-size: 0.75em;
    font-weight: 600;
    padding: 0.25em 0.6em;
    border-radius: 1em;
    border: 1px solid;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tech-tag.front {
    background: rgba(100, 108, 255, 0.2);
    color: #646cff;
    border-color: rgba(100, 108, 255, 0.4);
}

.tech-tag.back {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.tech-tag.payment {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border-color: rgba(168, 85, 247, 0.4);
}

.tech-tag.design {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.4);
}

.tech-tag.devops {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
}

.tech-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 0.5em;
}

.project-btn:hover {
    background: var(--primaryhover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 166, 167, 0.3);
}

/* Project Popup */
.project-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(.4, 2, .3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px !important;
}

.project-popup.open {
    opacity: 1;
    pointer-events: auto;
}

.project-popup-content {
    background: #232b3e;
    box-shadow: 0 16px 64px 0 rgba(35, 141, 228, 0.25);
    max-width: 95vw;
    width: 1200px;
    max-height: 95vh;
    position: relative;
    animation: slideInPopup 0.5s cubic-bezier(.4, 2, .3, 1);
    display: flex;
    flex-direction: column;
    border-radius: 32px !important;
}

.project-popup-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 32px 32px 0 0;
    flex-shrink: 0;
}

.project-popup-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(24, 28, 36, 0.8) 0%, rgba(24, 28, 36, 0.6) 50%, rgba(24, 28, 36, 0.4) 100%);
    display: flex;
    align-items: flex-end;
}

.project-popup-info {
    padding: 2em;
    color: white;
    width: 100%;
}

.project-popup-title {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary);
    margin: 0 0 0.5em 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

.project-popup-full-description {
    font-size: 1em;
    color: #e0e0e0;
    margin: 0 0 1.5em 0;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.2s;
}

.project-link:hover {
    color: var(--primaryhover);
}

/* Nouveaux styles pour la popup détaillée */
.project-date {
    display: flex;
    align-items: center;
    gap: 0.8em;
    background: rgba(72, 166, 167, 0.08);
    padding: 1em 1.5em;
    border-radius: 1em;
    border: 1px solid rgba(72, 166, 167, 0.2);
}

.date-label {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1em;
}

.date-value {
    color: #e0e0e0;
    font-size: 1.1em;
    font-weight: 500;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.gallery-item {
    border-radius: 1.2em;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(129, 203, 211, 0.1);
    transition: all 0.3s ease;
    background: #232b3e !important;
}

.gallery-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    border-color: rgba(129, 203, 211, 0.3);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: transparent !important;
    border: none !important;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-link-container {
    display: flex;
    justify-content: center;
    margin-top: 2em;
    padding-top: 2em;
    border-top: 1px solid rgba(129, 203, 211, 0.2);
}

.project-link-btn {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1.1em 2.2em;
    border-radius: 2em;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(129, 203, 211, 0.18);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.project-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link-btn:hover::before {
    left: 100%;
}

.project-link-btn:hover {
    background: var(--primaryhover);
    transform: translateY(-4px) scale(1.03);
    border-color: var(--primaryhover);
}

/* Couleurs pour les titres de catégories dans la popup */
.tech-category h4.front {
    color: #646cff;
}

.tech-category h4.back {
    color: #22c55e;
}

.tech-category h4.payment {
    color: #a855f7;
}

.tech-category h4.design {
    color: #fb923c;
}

.tech-category h4.devops {
    color: #3b82f6;
}

.project-popup-body {
    padding: 2em;
    overflow-y: auto;
    flex: 1;
    max-height: calc(95vh - 220px);
}

.project-section h3 {
    color: var(--primary);
    font-size: 1.8em;
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: bold;
    letter-spacing: -0.01em;
    border-bottom: 2px solid rgba(72, 166, 167, 0.3);
    padding-bottom: 0.5em;
}

.project-section p {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.1em;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.tech-category h4 {
    color: var(--primary);
    font-size: 1.2em;
    margin-bottom: 1em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.project-card {
    position: relative;
}

.see-more-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-weight: 500;
    font-size: 1.1em;
    padding: 0.7em 2em;
    border-radius: 2em;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(.4, 2, .3, 1), transform 0.3s cubic-bezier(.4, 2, .3, 1);
    z-index: 10;
    box-shadow: 0 2px 12px 0 rgba(35, 141, 228, 0.10);
    letter-spacing: 0.01em;
}

.project-card:hover .see-more-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.07);
}

.name-typing {
    display: flex;
    align-items: center;
    font-family: 'Poppins-Bold', Arial, sans-serif;
    font-size: clamp(1.3em, 4vw, 2.5em);
    letter-spacing: 0.01em;
    position: relative;
    min-height: 1.5em;
}

.name-typing .prenom {
    color: var(--primary);
    margin-right: 0.2em;
}

.name-typing .nom,
.name-typing .pseudo {
    color: var(--primary-bold);
    font-weight: bold;
    white-space: pre;
}

.name-typing .slash {
    color: var(--primary);
    margin: 0 0.2em;
    font-weight: bold;
}

.mobile-name-typing {
    display: none;
}

@media (max-width: 1200px) {
    .name-typing {
        display: none !important;
    }

    .mobile-name-typing {
        display: flex;
        align-items: center;
        font-family: 'Poppins-Bold', Arial, sans-serif;
        font-size: 1.3em;
        letter-spacing: 0.01em;
        position: relative;
        min-height: 1.5em;
        justify-content: center;
        margin-bottom: 1em;
        color: var(--primary);
    }

    .mobile-name-typing .prenom {
        color: var(--primary);
        margin-right: 0.2em;
    }

    .mobile-name-typing .nom,
    .mobile-name-typing .pseudo {
        color: var(--primary-bold);
        font-weight: bold;
        white-space: pre;
    }

    .diploma-btn,
    .diploma-btn-elegant {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    #age {
        margin-top: .5em;
    }

    .profile_phone {
        display: block;
    }

    .about-container {
        flex-direction: column;
        gap: 0em;
        align-items: center;
    }

    .section {
        max-width: 100vw;
        padding: 0 0.2em;
    }

    section {
        padding-top: .5em;
        padding-bottom: 2em;
    }

    .profile-pic-large {
        display: none;
    }

    .skills-row {
        flex-direction: column;
    }

    .navbar-vertical {
        display: none;
    }

    .about-content h1 {
        font-size: 1.3em;
    }

    .diploma-item {
        flex-direction: column;
    }

    .diploma-popup-content>h2 {
        margin-top: 1.5em;
    }

    .project-popup {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 3000;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        background: rgba(10, 18, 40, 0.85);
        border-radius: 0 !important;
    }

    .project-popup.open {
        opacity: 1;
        pointer-events: auto;
    }

    .project-popup-content {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0;
        max-height: 100vh;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .project-popup-header {
        height: 180px !important;
        min-height: 120px;
        border-radius: 0 !important;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .project-popup-banner {
        height: 100%;
        width: 100vw;
        object-fit: cover;
        border-radius: 0 !important;
    }

    .project-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .project-popup-info {
        padding: 1.2em 1em 0.5em 1em !important;
        color: white;
        width: 100%;
        background: none;
        box-shadow: none;
    }

    .project-popup-title {
        font-size: 1.5em !important;
        margin-bottom: 0.5em;
        margin-top: 0.2em;
        text-align: left;
    }

    .project-popup-full-description {
        font-size: 1em;
        color: #e0e0e0;
        margin: 0 0 1.2em 0;
        opacity: 0.95;
        font-weight: 500;
        text-shadow: none;
        background: none;
        padding: 0;
        text-align: left;
    }

    .project-popup-body {
        padding: 1em 1em 2em 1em !important;
        max-height: unset;
        overflow-y: visible;
    }

    .close-popup {
        top: 1em;
        right: 1em;
        width: 40px;
        height: 40px;
    }

    .project-popup-content {
        padding-top: 0 !important;
    }

    #close-project {
        position: fixed !important;
        top: 1em;
        right: 1em;
        z-index: 10;
    }
}

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

    .project-card {
        margin: 0 0.5em;
    }

    .project-overlay {
        padding: 1.5em;
    }

    .project-popup-info {
        padding: .5em;
    }

    .project-title {
        font-size: 1.5em;
    }

    .project-popup-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .project-popup-header {
        height: 300px;
    }

    .project-popup-full-description {
        margin: 0;
    }

    .project-popup-title {
        font-size: 2em;
    }

    .tech-categories {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5em;
    }
}

@media (max-width: 480px) {
    .project-banner {
        height: 260px;
    }

    .project-overlay {
        padding: 1.5em;
    }

    .project-title {
        font-size: 1.3em;
    }

    .project-description {
        font-size: 0.9em;
    }

    .tech-tag {
        font-size: 0.7em;
        padding: 0.2em 0.5em;
    }

    section,
    .section-card {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
}

.diploma-popup-header {
    position: sticky;
    top: 0;
    background: #232b3e;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 1.5em 1.5em 0 0;
    min-height: 64px;
}

.diploma-popup-header h2 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 2em;
    text-align: left;
}

.close-popup,
.close-popup-project {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(129, 203, 211, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.close-popup-project {
    position: absolute;
    top: 1.5em;
    right: 1.5em;
    z-index: 10;
}

.close-popup:hover,
.close-popup-project:hover {
    transform: scale(1.1);
}

.close-popup-icon {
    transform: scale(0.035);
}

@media (max-width: 1200px) {
    .diploma-popup-content {
        max-height: 90vh;
        overflow-y: auto;
        padding: 0 !important;
        width: 100%;
    }

    .diploma-popup-header {
        position: sticky;
        top: 0;
        background: #232b3e;
        z-index: 10;
        border-radius: 1.5em 1.5em 0 0;
        box-shadow: 0 2px 12px 0 rgba(35, 141, 228, 0.10);
        padding: 0;
        min-height: 58px;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .diploma-popup-header h2 {
        font-size: 1.2em;
        margin: 0;
        padding-left: 1.1em;
        flex: 1 1 auto;
        text-align: left;
    }

    .close-popup {
        top: 0.7em;
        right: 1em;
        width: 38px;
        height: 38px;
        position: absolute;
    }

    .diploma-list {
        padding: 0;
        padding-top: 0.7em;
    }

    .diploma-item {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 1.1em 1em 1.1em 1em;
        margin: 0 0.5em 1.2em 0.5em;
    }

    .diploma-badge {
        align-self: center;
        margin-bottom: 0.7em;
    }

    .diploma-title,
    .diploma-school,
    .diploma-year {
        text-align: left;
        align-items: flex-start;
    }

    .project-popup-content,
    .project-popup-header,
    .project-popup-banner,
    .project-popup-overlay {
        border-radius: 0 !important;
    }
}

.separator {
    width: 100%;
    max-width: 900px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.separator::before {
    content: '';
    display: block;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primaryhover) 100%);
    border-radius: 2px;
    box-shadow: 0 0 16px 0 var(--primaryhover);
    transition: width 1s cubic-bezier(.4, 2, .3, 1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
}

.separator.visible::before {
    width: 90%;
}

/* Couleurs explicites pour les titres de catégories dans la section compétences */
.skills-col h4 {
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.skills-col h4.front {
    color: #646cff;
}

.skills-col h4.back {
    color: #22c55e;
}

.skills-col h4.devops {
    color: #3b82f6;
}

.footer-icon {
    transition: transform 0.18s cubic-bezier(.4, 2, .3, 1), filter 0.18s cubic-bezier(.4, 2, .3, 1);
}

.footer-icon:hover {
    transform: scale(1.18) translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary)) brightness(0) saturate(100%) invert(54%) sepia(19%) saturate(1042%) hue-rotate(134deg) brightness(92%) contrast(92%);
}

footer a {
    text-decoration: none !important;
}

.diploma-item {
    box-shadow: 0 1px 4px 0 rgba(35, 141, 228, 0.07);
}

.diploma-item:hover {
    box-shadow: 0 3px 12px 0 rgba(72, 166, 167, 0.10);
}

.project-card {
    box-shadow: 0 4px 16px 0 rgba(35, 141, 228, 0.10);
}

.project-card:hover {
    box-shadow: 0 8px 32px 0 rgba(35, 141, 228, 0.16);
}

footer {
    box-shadow: 0 -2px 8px 0 rgba(35, 141, 228, 0.07);
}

.fade-in-role {
    opacity: 0;
    animation: fadeInRole 1.2s cubic-bezier(.4, 2, .3, 1) 0.7s forwards;
}

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 18, 40, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    animation: fadeInProfileOverlay 0.4s cubic-bezier(.4, 2, .3, 1);
    cursor: zoom-out;
}

.profile-overlay img {
    max-width: 75%;
    max-height: 75%;
    border-radius: 50%;
    box-shadow: 0 8px 48px 0 rgba(35, 141, 228, 0.18);
    animation: fadeInProfileImg 0.5s cubic-bezier(.4, 2, .3, 1);
    background: #232b3e;
    margin-bottom: 37vh;
}

.profile-overlay.fadeout {
    animation: fadeOutProfileOverlay 0.35s cubic-bezier(.4, 2, .3, 1) forwards;
}

.typewriter-cursor {
    display: inline-block;
    width: 1ch;
    background: none;
    color: var(--primary);
    animation: blink 0.8s steps(1) infinite;
    font-weight: bold;
}