:root {
    /* Couleurs inspirées de Brittany Chiang mais modernisées */
    --navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --green-tint: rgba(100, 255, 218, 0.1);
    --green-glow: rgba(100, 255, 218, 0.3);
    
    /* Ombres */
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-large: 0 20px 60px -15px rgba(2, 12, 27, 0.8);
    --glow-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    
    /* Polices */
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-sans: 'Calibre', 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.3;
    color: var(--slate);
    background-color: var(--navy);
    overflow-x: hidden;
    counter-reset: section;
    position: relative;
}

/* Particules d'arrière-plan animées */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--green);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}

/* Gradient animé sur le fond */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.3; }
    to { opacity: 0.6; }
}

::selection {
    background-color: var(--lightest-navy);
    color: var(--lightest-slate);
}

/* Barre de progression du scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--green), #4fd1c7);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Navigation avec glassmorphism - AMÉLIORÉ RESPONSIVE */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 clamp(20px, 5vw, 50px);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition-smooth);
    height: clamp(70px, 10vh, 100px);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: clamp(60px, 8vh, 70px);
    background: rgba(10, 25, 47, 0.95);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    border-bottom-color: rgba(100, 255, 218, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    text-decoration: none;
    z-index: 1001;
    position: relative;
    transition: var(--transition);
}

.logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--green);
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.logo:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links li {
    margin: 0 clamp(2px, 1vw, 5px);
    position: relative;
    counter-increment: item 1;
    font-size: clamp(11px, 2vw, 13px);
}

.nav-links a {
    padding: clamp(8px, 2vw, 10px) clamp(10px, 3vw, 15px);
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-size: clamp(11px, 2vw, 13px);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '0' counter(item) '.';
    margin-right: 5px;
    color: var(--green);
    font-size: clamp(10px, 2vw, 12px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
}

.nav-links a:hover::after {
    width: 100%;
}

.resume-button {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.8rem, 2vw, 1rem);
    font-size: clamp(11px, 2vw, 13px);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-left: clamp(10px, 3vw, 15px);
    position: relative;
    overflow: hidden;
}

.resume-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.resume-button:hover::before {
    left: 100%;
}

.resume-button:hover {
    background-color: var(--green-tint);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 0 var(--green), var(--glow-shadow);
}

/* Lien de retour pour la page projets */
.back-link {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(12px, 2.5vw, 14px);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.back-link:hover {
    color: var(--lightest-slate);
    border-color: var(--green);
    background: var(--green-tint);
}

/* Éléments latéraux avec animations - AMÉLIORÉ RESPONSIVE */
.fixed-social {
    width: 40px;
    position: fixed;
    bottom: 0;
    left: clamp(20px, 5vw, 40px);
    z-index: 10;
    color: var(--light-slate);
}

.fixed-social ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fixed-social ul::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--light-slate), transparent);
}

.fixed-social li {
    margin: 20px 0;
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
    transform: translateX(-20px);
}

.fixed-social a {
    padding: 10px;
    color: var(--light-slate);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
    display: block;
    position: relative;
}

.fixed-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--green-tint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: -1;
}

.fixed-social a:hover::before {
    width: 40px;
    height: 40px;
}

.fixed-social a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fixed-email {
    width: 40px;
    position: fixed;
    bottom: 0;
    right: clamp(20px, 5vw, 40px);
    z-index: 10;
    color: var(--light-slate);
}

.fixed-email .email-link {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: clamp(10px, 2vw, 12px);
    line-height: 18px;
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    color: var(--light-slate);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    animation: slideInRight 0.6s ease forwards 0.8s;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fixed-email .email-link:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.fixed-email::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--light-slate), transparent);
}

/* Section Hero avec effets avancés - AMÉLIORÉ RESPONSIVE */
.hero {
    min-height: 100vh;
    padding: 0 clamp(25px, 8vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-intro {
    margin: 0 0 30px 4px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(14px, 5vw, 16px);
    font-weight: 400;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin: 0;
    font-size: clamp(32px, 8vw, 80px);
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
    animation: slideInUp 0.6s ease forwards 0.2s;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 3px;
    height: 100%;
    background: var(--green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    margin-top: 5px;
    font-size: clamp(32px, 8vw, 80px);
    font-weight: 600;
    color: var(--slate);
    line-height: 0.9;
    animation: slideInUp 0.6s ease forwards 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    margin: 20px 0 0 0;
    max-width: 540px;
    font-size: clamp(16px, 4vw, 20px);
    color: var(--slate);
    animation: slideInUp 0.6s ease forwards 0.6s;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.5;
}

.hero-description a {
    color: var(--green);
    text-decoration: none;
    position: relative;
}

.hero-description a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.hero-description a:hover::after {
    width: 100%;
}

.hero-button {
    margin-top: clamp(30px, 8vw, 50px);
    animation: slideInUp 0.6s ease forwards 0.8s;
    opacity: 0;
    transform: translateY(30px);
}

/* Boutons avec effets avancés - AMÉLIORÉ RESPONSIVE */
.btn {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 1.75rem);
    font-size: clamp(12px, 3vw, 14px);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--green-tint);
    outline: none;
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 0 var(--green), var(--glow-shadow);
}

/* Sections avec animations - AMÉLIORÉ RESPONSIVE */
.section {
    margin: 0 auto;
    padding: clamp(80px, 15vh, 100px) 0;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.section-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
    white-space: nowrap;
}

.section-heading::before {
    position: relative;
    bottom: 4px;
    counter-increment: section 1;
    content: '0' counter(section) '.';
    margin-right: 10px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(14px, 3vw, 20px);
    font-weight: 400;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--green); }
    to { text-shadow: 0 0 20px var(--green), 0 0 30px var(--green); }
}

.section-heading::after {
    content: '';
    display: block;
    position: relative;
    top: -5px;
    width: 100%;
    max-width: 300px;
    height: 1px;
    margin-left: 20px;
    background: linear-gradient(to right, var(--lightest-navy), transparent);
}

/* Section À propos avec animations - AMÉLIORÉ RESPONSIVE */
.about {
    padding: 0 clamp(25px, 8vw, 150px);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-text {
    font-size: clamp(16px, 4vw, 20px);
}

.about-text p {
    margin: 0 0 15px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.1s; }
.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.3s; }
.about-text p:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-text a {
    color: var(--green);
    text-decoration: none;
    position: relative;
}

.about-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.about-text a:hover::after {
    width: 100%;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0px 10px;
    padding: 0;
    margin: 20px 0 0 0;
    overflow: hidden;
    list-style: none;
}

.skills-container {
    position: relative;
}

.hidden-skill {
    display: none;
}

.skills-list.expanded .hidden-skill {
    display: block;
    animation: slideInFromBottom 0.3s ease forwards;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-toggle {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.skills-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.skills-toggle:hover::before {
    left: 100%;
}

.skills-toggle:hover {
    background-color: var(--green-tint);
    box-shadow: var(--glow-shadow);
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.skills-toggle.expanded .toggle-arrow {
    transform: rotate(90deg);
}

.skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    color: var(--slate);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.5s ease forwards;
}

.skills-list li:nth-child(1) { animation-delay: 0.1s; }
.skills-list li:nth-child(2) { animation-delay: 0.2s; }
.skills-list li:nth-child(3) { animation-delay: 0.3s; }
.skills-list li:nth-child(4) { animation-delay: 0.4s; }
.skills-list li:nth-child(5) { animation-delay: 0.5s; }
.skills-list li:nth-child(6) { animation-delay: 0.6s; }
.skills-list li:nth-child(7) { animation-delay: 0.7s; }
.skills-list li:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skills-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 14px;
    line-height: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.skills-list li:hover {
    color: var(--green);
    transform: translateX(5px);
    transition: var(--transition);
}

.about-pic {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 0.6s ease forwards 0.5s;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wrapper {
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    position: relative;
    width: 100%;
    border-radius: 4px;
    background-color: var(--green);
}

.wrapper:hover {
    box-shadow: var(--shadow-large), var(--glow-shadow);
    transform: translate(-4px, -4px);
}

.wrapper:hover .img {
    filter: grayscale(100%) contrast(1);
    mix-blend-mode: multiply;
}

.wrapper:hover::before {
    top: 15px;
    left: 15px;
}

.wrapper::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    transition: var(--transition);
    top: 20px;
    left: 20px;
    background-color: var(--green);
    z-index: -1;
}

.img {
    position: relative;
    border-radius: 4px;
    mix-blend-mode: normal;
    filter: none;
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

/* Section Expérience avec animations - AMÉLIORÉ RESPONSIVE */
.experience {
    padding: 0 clamp(25px, 8vw, 150px);
}

.jobs-container {
    position: relative;
    max-width: 700px;
}

.job-tabs {
    position: relative;
    z-index: 3;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.job-tab {
    border: none;
    background-color: transparent;
    height: 42px;
    padding: 0 20px 2px;
    border-left: 2px solid var(--lightest-navy);
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.job-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
    transition: left 0.5s;
}

.job-tab:hover::before {
    left: 100%;
}

.job-tab:hover,
.job-tab.active {
    color: var(--green);
    background-color: var(--green-tint);
    border-left-color: var(--green);
}

.job-panel {
    width: 100%;
    height: auto;
    padding: 10px 5px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.job-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

.job-title {
    color: var(--lightest-slate);
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 5px;
}

.job-company {
    color: var(--green);
    position: relative;
}

.job-company::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green);
    transition: width 0.3s ease;
}

.job-title:hover .job-company::after {
    width: 100%;
}

.job-date {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    margin-bottom: 25px;
}

.job-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-details li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--slate);
    font-size: clamp(14px, 3.5vw, 18px);
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInFromLeft 0.5s ease forwards;
    line-height: 1.4;
}

.job-details li:nth-child(1) { animation-delay: 0.1s; }
.job-details li:nth-child(2) { animation-delay: 0.2s; }
.job-details li:nth-child(3) { animation-delay: 0.3s; }
.job-details li:nth-child(4) { animation-delay: 0.4s; }
.job-details li:nth-child(5) { animation-delay: 0.5s; }
.job-details li:nth-child(6) { animation-delay: 0.6s; }
.job-details li:nth-child(7) { animation-delay: 0.7s; }

.job-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 14px;
    line-height: 18px;
    animation: pulse 2s ease-in-out infinite;
}

/* Section Projets avec effets 3D - COMPLÈTEMENT REDESSINÉE POUR RESPONSIVE */
.projects {
    padding: 0 clamp(25px, 8vw, 150px);
}

.project {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 10vw, 60px);
    align-items: center;
    margin-bottom: clamp(120px, 20vh, 150px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
    background: rgba(17, 34, 64, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    padding: clamp(40px, 8vw, 60px);
    transition: var(--transition-smooth);
    min-height: clamp(500px, 60vh, 700px);
    cursor: pointer;
}

.project:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 
        var(--shadow-large), 
        var(--glow-shadow),
        0 40px 80px -15px rgba(2, 12, 27, 0.9);
    background: rgba(17, 34, 64, 0.5);
}

.project:nth-child(1) { animation-delay: 0.1s; }
.project:nth-child(2) { animation-delay: 0.3s; }
.project:nth-child(3) { animation-delay: 0.5s; }

.project-content {
    position: relative;
    grid-row: 2;
    z-index: 2;
}

.project-overline {
    margin: 10px 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    font-weight: 400;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards 0.2s;
}

.project-title {
    color: var(--lightest-slate);
    font-size: clamp(20px, 5vw, 28px);
    margin: 0 0 20px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards 0.3s;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--green);
}

.project-description {
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 12px;
    background: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--light-slate);
    font-size: clamp(14px, 3.5vw, 18px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.4s;
    transition: var(--transition);
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: none;
    width: 100%;
}

.project:hover .project-description {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large), var(--glow-shadow);
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(17, 34, 64, 0.95);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards 0.5s;
    gap: 8px;
}

.project-tech-list li {
    margin: 0 0 8px 0;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 13px);
    white-space: nowrap;
    padding: 6px 12px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.project-tech-list li:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
    color: var(--green);
}

.project-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    color: var(--lightest-slate);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards 0.6s;
    gap: 15px;
}

.project-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: var(--lightest-slate);
    text-decoration: none;
    font-size: clamp(16px, 4vw, 20px);
    transition: var(--transition);
    position: relative;
    border: 2px solid rgba(100, 255, 218, 0.15);
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.02);
}

.project-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--green-tint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: -1;
}

.project-links a:hover::before {
    width: 100%;
    height: 100%;
}

.project-links a:hover {
    color: var(--green);
    border-color: var(--green);
    transform: translateY(-3px);
}

.project-image {
    box-shadow: var(--shadow);
    transition: var(--transition);
    grid-row: 1;
    position: relative;
    z-index: 1;
    height: clamp(350px, 55vh, 600px);
    opacity: 0;
    transform: scale(0.95);
    animation: scaleIn 0.6s ease forwards 0.2s;
    border-radius: 25px;
    overflow: visible; /* Permet aux ombres de déborder */
    padding: 15px;
    background: transparent;
}

.project-image:hover {
    box-shadow: 
        var(--shadow-large), 
        var(--glow-shadow),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(1.05) translateY(-5px);
}

.project-image a {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    vertical-align: middle;
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 3px solid #333;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Style spécial pour les images non-mobiles (comme le portfolio) */
.project:nth-child(3) .project-image a,
.project:nth-child(4) .project-image a {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 15px;
}

.project:nth-child(3) .project-image a::before,
.project:nth-child(4) .project-image a::before {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 12px;
}

.project:nth-child(3) .project-image a::after,
.project:nth-child(4) .project-image a::after {
    display: none; /* Pas d'encoche pour les sites web */
}

.project:nth-child(3) .project-img,
.project:nth-child(4) .project-img {
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 12px;
    padding: 8px; /* Plus de padding pour les projets web */
}

/* Effet de reflet sur l'écran */
.project-image a:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(255, 255, 255, 0.05) 100%);
}

/* Création d'un faux écran de téléphone */
.project-image a::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #000;
    border-radius: 16px;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Encoche du téléphone moderne */
.project-image a::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: #333;
    border-radius: 0 0 12px 12px;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-image a:hover::after {
    background: #444;
}

.project-img {
    border-radius: 16px;
    filter: none;
    transition: var(--transition);
    width: calc(100% - 16px);
    height: calc(100% - 50px); /* Plus d'espace en haut pour l'encoche */
    object-fit: contain; /* Garde les proportions sans couper */
    object-position: center;
    vertical-align: middle;
    position: absolute;
    top: 35px; /* Décalé vers le bas pour éviter l'encoche */
    left: 8px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.02);
    padding: 5px; /* Petit padding pour éviter que l'image touche les bords */
}

.project-image a:hover .project-img {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
}

/* Bouton Voir Plus dans la section projets - AMÉLIORÉ RESPONSIVE */
.view-more-projects {
    text-align: center;
    margin-top: clamp(50px, 10vh, 80px);
}

.view-more-btn {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(12px, 3vw, 14px);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    background-color: var(--green-tint);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 0 var(--green), var(--glow-shadow);
}

/* Section Éducation - AMÉLIORÉ RESPONSIVE */
.education-section {
    padding: clamp(80px, 15vh, 100px) clamp(25px, 8vw, 150px);
}

.timeline {
    position: relative;
    margin-top: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--green), var(--light-slate));
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInFromLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--green);
    border-radius: 50%;
    border: 3px solid var(--navy);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.timeline-date {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(11px, 2.5vw, 13px);
    margin-bottom: 5px;
}

.timeline-title {
    color: var(--lightest-slate);
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-subtitle {
    color: var(--light-slate);
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 10px;
}

.timeline-description {
    color: var(--slate);
    font-size: clamp(12px, 3vw, 14px);
    line-height: 1.5;
}

/* Section Certifications - AMÉLIORÉ RESPONSIVE */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.certification-card {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: clamp(15px, 4vw, 25px);
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.6s ease forwards;
}

.certification-card:nth-child(1) { animation-delay: 0.1s; }
.certification-card:nth-child(2) { animation-delay: 0.2s; }
.certification-card:nth-child(3) { animation-delay: 0.3s; }

.certification-card:hover {
    transform: scale(1.02);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--glow-shadow);
}

.cert-icon {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
    display: block;
}

.cert-title {
    color: var(--lightest-slate);
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-issuer {
    color: var(--green);
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 10px;
}

.cert-date {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
}

/* Section Contact avec animations - AMÉLIORÉ RESPONSIVE */
.contact {
    max-width: 600px;
    margin: 0 auto 100px;
    text-align: center;
    padding: 0 clamp(25px, 8vw, 150px);
}

.contact .overline {
    display: block;
    margin-bottom: 20px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.1s;
}

.contact .title {
    font-size: clamp(32px, 8vw, 60px);
    color: var(--lightest-slate);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.contact .description {
    margin-top: 20px;
    font-size: clamp(16px, 4vw, 20px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.3s;
    line-height: 1.5;
}

.contact .email-link {
    margin-top: clamp(30px, 8vw, 50px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

/* Footer - AMÉLIORÉ RESPONSIVE */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: auto;
    min-height: 70px;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer .copy {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.5s;
}

.footer .copy a {
    color: var(--light-slate);
    text-decoration: none;
    transition: var(--transition);
}

.footer .copy a:hover {
    color: var(--green);
}

/* RESPONSIVE MEDIA QUERIES - OPTIMISÉ */

/* Tablettes */
@media (min-width: 768px) {
    .about-inner {
        grid-template-columns: 3fr 2fr;
        gap: 50px;
    }
    
    .about-pic {
        margin: 0;
    }
    
    .job-tabs {
        flex-direction: column;
    }
    
    .job-tab {
        border-left: 2px solid var(--lightest-navy);
        border-bottom: none;
    }
    
    .job-tab:hover,
    .job-tab.active {
        border-left-color: var(--green);
        border-bottom-color: transparent;
    }
    
    /* Garder la disposition alternée même sur tablette */
    .project {
        grid-template-columns: repeat(12, 1fr);
        gap: clamp(15px, 3vw, 25px);
        background: none;
        border: none;
        padding: 0;
        min-height: clamp(400px, 50vh, 550px);
    }
    
    /* PREMIER PROJET : Image à gauche, texte à droite */
    .project:nth-of-type(odd) .project-content {
        grid-column: 7 / -1;
        text-align: left;
        grid-row: 1;
    }
    
    .project:nth-of-type(odd) .project-image {
        grid-column: 1 / 7;
        grid-row: 1;
        height: clamp(350px, 45vh, 500px);
        padding: 20px; /* Marge intérieure sur tablette */
    }
    
    .project:nth-of-type(odd) .project-tech-list {
        justify-content: flex-start;
    }
    
    .project:nth-of-type(odd) .project-tech-list li {
        margin: 0 20px 5px 0;
    }
    
    .project:nth-of-type(odd) .project-links {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* PROJETS PAIRS : Texte à gauche, image à droite */
    .project:nth-of-type(even) .project-content {
        grid-column: 1 / 7;
        text-align: left;
        grid-row: 1;
    }
    
    .project:nth-of-type(even) .project-image {
        grid-column: 7 / -1;
        grid-row: 1;
        height: clamp(350px, 45vh, 500px);
        padding: 20px; /* Marge intérieure sur tablette */
    }
    
    .project:nth-of-type(even) .project-tech-list {
        justify-content: flex-start;
    }
    
    .project:nth-of-type(even) .project-tech-list li {
        margin: 0 20px 5px 0;
    }
    
    .project:nth-of-type(even) .project-links {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .project {
        grid-template-columns: repeat(12, 1fr);
        gap: clamp(20px, 4vw, 35px);
        background: none;
        border: none;
        padding: 0;
        min-height: clamp(550px, 65vh, 750px);
        transition: var(--transition-smooth);
    }
    
    .project:hover {
        transform: scale(1.03) translateY(-8px);
    }
    
    /* PREMIER PROJET : Image à gauche, texte à droite */
    .project:nth-of-type(odd) .project-content {
        grid-column: 7 / -1;
        text-align: left;
        grid-row: 1;
    }
    
    .project:nth-of-type(odd) .project-tech-list {
        justify-content: flex-start;
    }
    
    .project:nth-of-type(odd) .project-tech-list li {
        margin: 0 20px 5px 0;
    }
    
    .project:nth-of-type(odd) .project-links {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project:nth-of-type(odd) .project-image {
        grid-column: 1 / 7;
        grid-row: 1;
        height: clamp(500px, 60vh, 700px);
        padding: 20px; /* Marge intérieure plus grande sur desktop */
    }
    
    /* PROJETS PAIRS : Texte à gauche, image à droite */
    .project:nth-of-type(even) .project-content {
        grid-column: 1 / 7;
        text-align: left;
        grid-row: 1;
    }
    
    .project:nth-of-type(even) .project-image {
        grid-column: 7 / -1;
        grid-row: 1;
        height: clamp(500px, 60vh, 700px);
        padding: 20px; /* Marge intérieure plus grande sur desktop */
    }
    
    .project:nth-of-type(even) .project-tech-list {
        justify-content: flex-start;
    }
    
    .project:nth-of-type(even) .project-tech-list li {
        margin: 0 20px 5px 0;
    }
    
    .project:nth-of-type(even) .project-links {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 0;
    }
    
    .nav-links li {
        margin: 0 2px;
    }
    
    .nav-links a {
        padding: 8px;
        font-size: 10px;
    }
    
    .resume-button {
        padding: 0.5rem 0.8rem;
        font-size: 10px;
        margin-left: 8px;
    }
    
    .fixed-social,
    .fixed-email {
        display: none;
    }
    
    .hero-title::after {
        display: none;
    }
    
    .section-heading::after {
        width: 100px;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .job-tabs {
        flex-direction: row;
        overflow-x: auto;
        width: calc(100% + 50px);
        margin-left: -25px;
        margin-bottom: 30px;
        padding: 0 25px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .job-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .job-tab {
        border-left: 0;
        border-bottom: 2px solid var(--lightest-navy);
        min-width: 120px;
        padding: 0 15px;
        margin: 0 5px;
        flex-shrink: 0;
    }
    
    .job-tab:hover,
    .job-tab.active {
        border-bottom-color: var(--green);
        border-left-color: transparent;
    }
    
    /* Layout mobile avec disposition alternée */
    .project {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 80px;
        padding: 20px;
        min-height: 300px;
    }
    
    /* PROJETS IMPAIRS : Image à gauche, texte à droite */
    .project:nth-of-type(odd) .project-content {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }
    
    .project:nth-of-type(odd) .project-image {
        grid-column: 1;
        grid-row: 1;
        height: 250px;
        padding: 10px; /* Marge intérieure réduite sur mobile */
    }
    
    /* PROJETS PAIRS : Texte à gauche, image à droite */
    .project:nth-of-type(even) .project-content {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }
    
    .project:nth-of-type(even) .project-image {
        grid-column: 2;
        grid-row: 1;
        height: 250px;
        padding: 10px; /* Marge intérieure réduite sur mobile */
    }
    
    .project:nth-of-type(odd) .project-tech-list,
    .project:nth-of-type(even) .project-tech-list {
        justify-content: flex-start;
    }
    
    .project:nth-of-type(odd) .project-tech-list li,
    .project:nth-of-type(even) .project-tech-list li {
        margin: 0 10px 5px 0;
    }
    
    .project:nth-of-type(odd) .project-links,
    .project:nth-of-type(even) .project-links {
        justify-content: flex-start;
        margin-left: 0;
        margin-right: 0;
    }
    
    .cursor {
        display: none !important;
    }
    
    .bg-particles {
        display: none;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
        height: 60px;
    }
    
    .navbar.scrolled {
        height: 50px;
    }
    
    .nav-links a {
        padding: 6px;
        font-size: 9px;
    }
    
    .nav-links a::before {
        font-size: 8px;
    }
    
    .resume-button {
        padding: 0.4rem 0.6rem;
        font-size: 9px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .project {
        padding: 30px;
        margin-bottom: 60px;
        min-height: 380px;
    }
    
    .project-description {
        padding: 22px;
    }
    
    .project-image {
        height: 220px;
    }
}

/* Animation de transition entre pages */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Cursor custom - Masqué sur mobile */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    mix-blend-mode: difference;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.8;
}

/* Effets de ripple */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    background: var(--green);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Scrollbar custom */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-slate);
}

/* Loading animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-text {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(18px, 5vw, 24px);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animations globales */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0px);
}

/* Mode clair alternatif (easter egg) - AMÉLIORÉ */
.light-mode {
    --navy: #f8fafc;
    --light-navy: #f1f5f9;
    --lightest-navy: #e2e8f0;
    --slate: #475569;
    --light-slate: #334155;
    --lightest-slate: #1e293b;
    --white: #0f172a;
    --green: #059669;
    --green-tint: rgba(5, 150, 105, 0.1);
    --green-glow: rgba(5, 150, 105, 0.3);
}

.light-mode .bg-particles {
    opacity: 0.3;
}

.light-mode .particle {
    background: var(--green);
    opacity: 0.2;
}

.light-mode body::before {
    background: radial-gradient(circle at 50% 50%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
}

.light-mode .project {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(5, 150, 105, 0.2);
}

.light-mode .project:hover {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 
        0 20px 60px -15px rgba(15, 23, 42, 0.2),
        0 0 30px rgba(5, 150, 105, 0.2);
}

.light-mode .project-description {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(5, 150, 105, 0.1);
    backdrop-filter: blur(20px);
}

.light-mode .project:hover .project-description {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 
        0 20px 60px -15px rgba(15, 23, 42, 0.1),
        0 0 20px rgba(5, 150, 105, 0.2);
}

.light-mode .navbar {
    background: rgba(248, 250, 252, 0.85);
    border-bottom-color: rgba(5, 150, 105, 0.1);
}

.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
    border-bottom-color: rgba(5, 150, 105, 0.2);
}

.light-mode .tech-tag {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.03));
    border-color: rgba(5, 150, 105, 0.2);
}

.light-mode .tech-tag:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(5, 150, 105, 0.08));
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.2);
}

/* ========== STYLES SPÉCIFIQUES À LA PAGE PROJETS ========== */

/* Header de la page projets */
.page-header {
    padding: clamp(100px, 20vh, 120px) clamp(25px, 8vw, 50px) clamp(60px, 12vh, 80px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(32px, 8vw, 60px);
    font-weight: 600;
    color: var(--lightest-slate);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.page-subtitle {
    font-size: clamp(16px, 4vw, 20px);
    color: var(--slate);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease forwards 0.2s;
    opacity: 0;
    transform: translateY(30px);
    line-height: 1.5;
}

/* Section statistiques des projets */
.projects-stats {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    padding: clamp(20px, 5vw, 30px);
    margin: clamp(30px, 8vw, 50px) clamp(25px, 8vw, 50px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.stats-title {
    color: var(--lightest-slate);
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: clamp(15px, 4vw, 30px);
    margin-top: 25px;
}

.stat-item {
    background: rgba(17, 34, 64, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: clamp(15px, 4vw, 20px);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: var(--glow-shadow);
}

.stat-number {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: bold;
    color: var(--green);
    font-family: var(--font-mono);
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--light-slate);
    font-size: clamp(10px, 2.5vw, 14px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Filtres de projets */
.project-filters {
    padding: 0 clamp(25px, 8vw, 50px);
    margin-bottom: clamp(60px, 12vh, 80px);
    position: relative;
    z-index: 1;
}

.filters-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 15px);
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--lightest-navy);
    color: var(--slate);
    padding: clamp(6px, 2vw, 8px) clamp(12px, 3vw, 20px);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-tint);
    box-shadow: var(--glow-shadow);
}

/* Grille de projets pour la page projets */
.projects-container {
    padding: 0 clamp(25px, 8vw, 50px) clamp(80px, 15vh, 100px);
    position: relative;
    z-index: 1;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(20px, 5vw, 30px);
    justify-content: center;
    align-items: start;
}

.project-card {
    background: linear-gradient(135deg, rgba(17, 34, 64, 0.95) 0%, rgba(35, 53, 84, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 16px;
    padding: clamp(25px, 6vw, 35px);
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: clamp(500px, 60vh, 600px);
    display: flex;
    flex-direction: column;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05) 0%, rgba(100, 255, 218, 0.02) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--green), transparent, var(--green));
    border-radius: 16px;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -2;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    opacity: 0.3;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 
        0 25px 50px -12px rgba(2, 12, 27, 0.8),
        0 0 30px rgba(100, 255, 218, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.project-type {
    background: linear-gradient(135deg, var(--green), #4fd1c7);
    color: var(--navy);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: clamp(9px, 2vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.project-status {
    font-family: var(--font-mono);
    font-size: clamp(8px, 2vw, 10px);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.status-in-progress {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.status-planned {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(156, 163, 175, 0.1));
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.4);
    box-shadow: 0 0 10px rgba(156, 163, 175, 0.2);
}

.project-icon {
    font-size: clamp(2rem, 6vw, 2.5rem);
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.4));
    transition: var(--transition);
    flex-shrink: 0;
}

.project-card:hover .project-icon {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.5));
}

.project-card .project-title {
    color: var(--lightest-slate);
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    transition: var(--transition);
    flex-shrink: 0;
}

.project-card:hover .project-title {
    color: var(--white);
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.project-card .project-description {
    color: var(--light-slate);
    font-size: clamp(13px, 3vw, 15px);
    line-height: 1.6;
    margin-bottom: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.project-card:hover .project-description {
    color: var(--lightest-slate);
}

.project-highlights {
    list-style: none;
    margin-bottom: 20px;
    background: rgba(100, 255, 218, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(100, 255, 218, 0.05);
    flex-grow: 1;
    max-height: 150px;
    overflow-y: auto;
}

.project-highlights li {
    color: var(--light-slate);
    font-size: clamp(11px, 2.5vw, 13px);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    transition: var(--transition);
}

.project-highlights li:last-child {
    margin-bottom: 0;
}

.project-highlights li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.project-highlights li:hover {
    color: var(--lightest-slate);
    transform: translateX(3px);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.tech-tag {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.08), rgba(100, 255, 218, 0.03));
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: var(--light-slate);
    padding: 6px 10px;
    border-radius: 15px;
    font-family: var(--font-mono);
    font-size: clamp(8px, 2vw, 10px);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: left 0.5s;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(100, 255, 218, 0.08));
    border-color: rgba(100, 255, 218, 0.4);
    color: var(--green);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 10px rgba(100, 255, 218, 0.2);
}

.project-card .project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    flex-shrink: 0;
}

.project-actions {
    display: flex;
    gap: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    color: var(--light-slate);
    text-decoration: none;
    border: 2px solid rgba(100, 255, 218, 0.15);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(100, 255, 218, 0.02);
    font-size: clamp(14px, 3vw, 16px);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--green), #4fd1c7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: -1;
}

.project-link:hover::before {
    width: 120%;
    height: 120%;
}

.project-link:hover {
    color: var(--navy);
    border-color: var(--green);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(100, 255, 218, 0.25);
}

.project-date {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 13px);
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* Footer simple pour la page projets */
.page-footer {
    text-align: center;
    padding: clamp(30px, 8vw, 50px);
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    z-index: 1;
}

.footer-text {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: clamp(10px, 2.5vw, 12px);
}

.footer-text p {
    margin-bottom: 10px;
}

.footer-text a {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

.footer-text a:hover {
    color: var(--lightest-slate);
}

/* Animation de chargement */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Animation ripple pour les cartes */
@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Masquer les projets filtrés avec une transition douce */
.project-card.hidden {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: all 0.3s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    transition: all 0.3s ease;
}

/* RESPONSIVE SPÉCIFIQUE POUR LA PAGE PROJETS */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 20px;
    }
    
    .project-card {
        width: 100%;
        max-width: 350px;
        padding: 20px;
        min-height: 450px;
    }
    
    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-header,
    .projects-container,
    .project-filters {
        padding-left: 15px;
        padding-right: 15px;
    }

    .projects-stats {
        margin-left: 15px;
        margin-right: 15px;
    }

    .project-card {
        padding: 15px;
        min-height: 400px;
    }
    
    .project-card .project-title {
        font-size: 16px;
    }
    
    .project-card .project-description {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 4px 10px;
        font-size: 9px;
    }
}