* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bleu-principal: #4f8fba;
    --bleu-fonce: #16213e;
    
    --noir: #0a0a0a;
    --noir-clair: #12121a;
    --fond-carte: #1a1a2e;
    
    --texte-clair: #e0e0e0;
    --gris: #8892a0;
    
    --violet: #8b5cf6;
    --rose: #ec4899;
    --bleu: #3b82f6;
    --vert: #10b981;
    --orange: #f59e0b;
    --cyan: #06b6d4;
    
    --blanc-transparent: rgba(255, 255, 255, 0.1);
    --bleu-transparent: rgba(79, 143, 186, 0.1);
    --violet-transparent: rgba(139, 92, 246, 0.1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--texte-clair);
    background: var(--noir);
    overflow-x: hidden;
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.cursor {
    width: 12px;
    height: 12px;
    background: var(--bleu-principal);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.cursor.hover {
    width: 20px;
    height: 20px;
    background: var(--violet);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.8);
}

.cursor-follower {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(79, 143, 186, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
}

.cursor-follower::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--violet);
    animation: cursorRotate 2s linear infinite;
}

@keyframes cursorRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cursor-follower.hover {
    width: 70px;
    height: 70px;
    background: rgba(79, 143, 186, 0.08);
    border-color: var(--bleu-principal);
}

.cursor-follower.hover::before {
    border-top-color: var(--bleu-principal);
    animation-duration: 1s;
}

.cursor-follower.click {
    transform: translate(-50%, -50%) scale(0.9);
}

.cursor-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bleu-principal);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-follower.hover .cursor-text {
    opacity: 1;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--noir);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    margin-bottom: 2rem;
}

.loader-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    color: var(--gris);
    margin-bottom: 2rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet), var(--rose));
    z-index: 9999;
    transition: width 0.1s ease;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    padding: 0.6rem 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(79, 143, 186, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    z-index: 1001;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-img {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--gris);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(79, 143, 186, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: #ffffff;
}

.nav-cta {
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    color: white !important;
    border-radius: 25px;
    padding: 0.7rem 1.5rem !important;
    box-shadow: 0 4px 15px rgba(79, 143, 186, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 143, 186, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    z-index: 1001;
}

.bar {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    border-radius: 3px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.side-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.side-dot::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--bleu-principal);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.side-dot:hover,
.side-dot.active {
    border-color: var(--bleu-principal);
}

.side-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.section-indicator {
    position: fixed;
    left: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gris);
    z-index: 100;
}

.current-section {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bleu-principal);
}

.section-divider {
    width: 30px;
    height: 1px;
    background: var(--gris);
}

.main-wrapper {
    position: relative;
}

.section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 1;
}

.hero-section {
    z-index: 1;
}

.about-section {
    z-index: 2;
}

.skills-section {
    z-index: 3;
}

.projects-section {
    z-index: 4;
}

.contact-section {
    z-index: 5;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-number {
    display: block;
    font-size: 0.9rem;
    color: var(--bleu-principal);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--texte-clair);
    margin-bottom: 1rem;
}

.title-decoration {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    margin: 0 auto;
    border-radius: 2px;
}

.section-decoration {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    pointer-events: none;
    display: none;
}

@media (min-width: 1200px) {
    .section-decoration {
        display: block;
    }
}

.decoration-text {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 0;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 143, 186, 0.3), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 2rem;
}

.hero-subtitle {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(79, 143, 186, 0.1);
    border: 1px solid rgba(79, 143, 186, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--bleu-principal);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.title-line {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, var(--gris) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-line:last-child {
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gris);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    color: white;
    box-shadow: 0 4px 20px rgba(79, 143, 186, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 143, 186, 0.5);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-outline {
    border-color: var(--bleu-principal);
    color: var(--bleu-principal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bleu-principal);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    color: var(--gris);
    font-size: 0.85rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    min-height: 200px;
}

.code-content .keyword { color: #c678dd; }
.code-content .function { color: #61afef; }
.code-content .string { color: #98c379; }
.code-content .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--bleu-principal);
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    animation: fadeInUp 1s ease 1.5s backwards;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gris);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    width: 3px;
    height: 10px;
    background: var(--bleu-principal);
    position: absolute;
    left: -1px;
    top: 0;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-section-number {
    position: absolute;
    right: 60px;
    bottom: 40px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
}

.about-section {
    background: var(--noir);
    padding: 8rem 0;
}

.section-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 143, 186, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-paragraph {
    margin-bottom: 1.5rem;
}

.about-paragraph p {
    color: var(--gris);
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-paragraph strong {
    color: var(--bleu-principal);
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--bleu-principal);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
    font-size: 2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gris);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image-wrapper {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--bleu-principal);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.image-frame:hover .about-img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--bleu-principal);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.cv-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(79, 143, 186, 0.4);
    transition: all 0.3s ease;
}

.cv-badge svg {
    width: 18px;
    height: 18px;
}

.cv-badge:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 143, 186, 0.5);
}

.skills-section {
    background: linear-gradient(180deg, var(--noir-clair) 0%, var(--noir) 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.skills-section .container {
    max-width: 1200px;
}

.skills-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(79, 143, 186, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98));
    border-radius: 20px;
    border: 1px solid rgba(79, 143, 186, 0.2);
    padding: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transition: all 0.3s ease;
}

.skill-card[data-color="blue"] .card-glow { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.skill-card[data-color="purple"] .card-glow { background: linear-gradient(90deg, var(--violet), #a78bfa); }
.skill-card[data-color="green"] .card-glow { background: linear-gradient(90deg, var(--vert), #34d399); }
.skill-card[data-color="orange"] .card-glow { background: linear-gradient(90deg, var(--orange), #fbbf24); }
.skill-card[data-color="pink"] .card-glow { background: linear-gradient(90deg, var(--rose), #f472b6); }
.skill-card[data-color="cyan"] .card-glow { background: linear-gradient(90deg, var(--cyan), #22d3ee); }

.skill-card[data-color="blue"] { border-color: rgba(59, 130, 246, 0.3); }
.skill-card[data-color="purple"] { border-color: rgba(139, 92, 246, 0.3); }
.skill-card[data-color="green"] { border-color: rgba(16, 185, 129, 0.3); }
.skill-card[data-color="orange"] { border-color: rgba(245, 158, 11, 0.3); }
.skill-card[data-color="pink"] { border-color: rgba(236, 72, 153, 0.3); }
.skill-card[data-color="cyan"] { border-color: rgba(6, 182, 212, 0.3); }

.skill-card:hover[data-color="blue"] { box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2); }
.skill-card:hover[data-color="purple"] { box-shadow: 0 25px 50px rgba(139, 92, 246, 0.2); }
.skill-card:hover[data-color="green"] { box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2); }
.skill-card:hover[data-color="orange"] { box-shadow: 0 25px 50px rgba(245, 158, 11, 0.2); }
.skill-card:hover[data-color="pink"] { box-shadow: 0 25px 50px rgba(236, 72, 153, 0.2); }
.skill-card:hover[data-color="cyan"] { box-shadow: 0 25px 50px rgba(6, 182, 212, 0.2); }

.skill-card .card-content {
    position: relative;
    z-index: 1;
}

.skill-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.skill-card[data-color="blue"] h3 { color: #60a5fa; }
.skill-card[data-color="purple"] h3 { color: #a78bfa; }
.skill-card[data-color="green"] h3 { color: #34d399; }
.skill-card[data-color="orange"] h3 { color: #fbbf24; }
.skill-card[data-color="pink"] h3 { color: #f472b6; }
.skill-card[data-color="cyan"] h3 { color: #22d3ee; }

.skill-card .card-description {
    color: var(--gris);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-card .skill-list {
    list-style: none;
}

.skill-card .skill-list li {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--texte-clair);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card .skill-list li:last-child {
    border-bottom: none;
}

.skill-card .skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.skill-card[data-color="blue"] .skill-dot { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.skill-card[data-color="purple"] .skill-dot { background: linear-gradient(135deg, var(--violet), #a78bfa); box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
.skill-card[data-color="green"] .skill-dot { background: linear-gradient(135deg, var(--vert), #34d399); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.skill-card[data-color="orange"] .skill-dot { background: linear-gradient(135deg, var(--orange), #fbbf24); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.skill-card[data-color="pink"] .skill-dot { background: linear-gradient(135deg, var(--rose), #f472b6); box-shadow: 0 0 10px rgba(236, 72, 153, 0.5); }
.skill-card[data-color="cyan"] .skill-dot { background: linear-gradient(135deg, var(--cyan), #22d3ee); box-shadow: 0 0 10px rgba(6, 182, 212, 0.5); }

.projects-section {
    background: var(--noir);
    padding: 8rem 0;
    align-items: flex-start;
    padding-top: 120px;
}

.bg-gradient-dark {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(79, 143, 186, 0.05) 0%, transparent 70%);
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 4rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 50px;
    border: 1px solid rgba(79, 143, 186, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.7rem 1.4rem;
    border: none;
    background: transparent;
    color: var(--gris);
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(79, 143, 186, 0.1);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-btn:hover::before {
    opacity: 1;
}

.filter-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(79, 143, 186, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.filter-btn.active::before {
    display: none;
}

@media (max-width: 768px) {
    .project-filters {
        border-radius: 25px;
        padding: 1rem;
        max-width: 100%;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(350px, calc(33.333% - 1.4rem)), 1fr));
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-card {
    background: rgba(26, 26, 46, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(79, 143, 186, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, transform 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.3), rgba(139, 92, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(79, 143, 186, 0.4);
    box-shadow: 0 20px 60px rgba(79, 143, 186, 0.25), 0 0 40px rgba(139, 92, 246, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.15), rgba(22, 33, 62, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(79, 143, 186, 0.1), transparent 70%);
    pointer-events: none;
}

.project-image img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.project-card:hover .project-image img {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 8px 30px rgba(79, 143, 186, 0.4));
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.85), rgba(139, 92, 246, 0.85));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.project-card:hover .view-project {
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, 0.25);
}

.project-content {
    padding: 2rem;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.15), rgba(139, 92, 246, 0.15));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--bleu-principal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    border-radius: 2px;
}

.project-content p {
    color: rgba(224, 224, 224, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    margin-top: 1.2rem;
}

.project-card::after {
    /* content: ''; */
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--bleu-principal), var(--violet));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.12), rgba(139, 92, 246, 0.08));
    color: rgba(79, 143, 186, 1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(79, 143, 186, 0.25);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(79, 143, 186, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(79, 143, 186, 0.4);
    box-shadow: 0 0 15px rgba(79, 143, 186, 0.3);
    transform: translateY(-2px);
}

.contact-section {
    background: linear-gradient(180deg, var(--noir) 0%, #0a0a0f 100%);
    padding: 8rem 0 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-section > .container {
    flex: 1;
}

.bg-gradient-contact {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(79, 143, 186, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 6rem;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--gris);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--texte-clair);
    position: relative;
    transition: color 0.3s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bleu-principal), var(--violet));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-email:hover {
    color: var(--bleu-principal);
}

.contact-email:hover::after {
    transform: scaleX(1);
}

.social-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link-large {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gris);
    transition: all 0.3s ease;
}

.social-link-large svg {
    width: 24px;
    height: 24px;
}

.social-link-large span {
    font-weight: 500;
}

.social-link-large:hover {
    background: linear-gradient(135deg, var(--bleu-principal), var(--violet));
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 143, 186, 0.3);
}

.robot-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 4rem auto 0;
    z-index: 100;
    pointer-events: none;
    display: block;
    left: 0;
    right: 0;
}

#robot-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    width: 100%;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-text {
    color: var(--gris);
    font-size: 0.9rem;
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.reveal-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-project {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-project.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .skills-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .code-window {
        transform: none;
        max-width: 450px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .side-nav {
        display: none;
    }
    
    .section-indicator {
        display: none;
    }
    
    .hero-section-number {
        display: none;
    }
    
    .section-decoration {
        display: none;
    }
    
    .robot-container {
        max-width: 350px;
        height: 350px;
        margin: 3rem auto 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card h3 {
        font-size: 1.4rem;
    }
    
    .skill-card .card-description {
        font-size: 0.9rem;
    }
    
    .skill-card .skill-list li {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .skills-section {
        padding: 5rem 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card h3 {
        font-size: 1.3rem;
    }
    
    .skill-card .card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .skill-card .skill-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transition: right 0.5s cubic-bezier(0.68, -0.2, 0.32, 1.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-link {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .title-line {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description br {
        display: none;
    }
    
    .skills-scroll-track {
        grid-template-columns: 1fr;
    }
    
    .scroll-hint {
        display: flex;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-email {
        font-size: 1.3rem;
        word-break: break-all;
    }
    
    .social-links-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .social-link-large {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .contact-content {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .contact-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .contact-section {
        padding: 4rem 0 0;
    }
    
    .footer {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 5rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-drawer {
        padding: 0 0.5rem;
    }
    
    .drawer-main {
        max-width: 100%;
        height: 350px;
    }
    
    .drawer-collapsed {
        max-width: 100%;
    }
    
    .drawer-card.collapsed {
        height: 45px;
        padding: 0 0.8rem;
    }
    
    .drawer-card.collapsed h3 {
        font-size: 0.8rem;
    }
    
    .drawer-card.active {
        padding: 1.2rem;
    }
    
    .drawer-card.active h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .drawer-card .card-description {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
    }
    
    .drawer-card .skill-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .drawer-card .skill-dot {
        width: 6px;
        height: 6px;
        margin-right: 8px;
    }
    
    .drawer-progress {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .drawer-progress-bar {
        width: 120px;
    }
    
    .drawer-counter {
        font-size: 0.9rem;
    }
    
    .hero-subtitle span {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .about-img {
        height: 400px;
    }
    
    .skill-card-featured {
        padding: 1.5rem;
    }
    
    .skill-card-featured h3 {
        font-size: 1.4rem;
    }
    
    .skill-card-scroll {
        padding: 1.2rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .code-content {
        font-size: 0.7rem;
        padding: 1rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
    }
    
    .social-link-large {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .social-link-large svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-logo-img {
        width: 40px;
        height: 40px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .robot-container {
        max-width: 280px;
        height: 280px;
        margin: 2rem auto 0;
        padding: 0;
    }
}

