/*reset et base*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1a;
    color: #4CAF50;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/*grille matrix de base - plus visible*/
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(76, 175, 80, 0.22) 100%),
        linear-gradient(0deg, transparent 98%, rgba(76, 175, 80, 0.22) 100%),
        linear-gradient(90deg, transparent 99%, rgba(76, 175, 80, 0.12) 100%),
        linear-gradient(0deg, transparent 99%, rgba(76, 175, 80, 0.12) 100%);
    background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 30s linear infinite;
}

/*éléments de programmation flottants - plus visibles*/
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='20' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.18)'%3E01%3C/text%3E%3Ctext x='30' y='40' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.15)'%3E10%3C/text%3E%3Ctext x='60' y='30' font-family='monospace' font-size='8' fill='rgba(76,175,80,0.12)'%3E11%3C/text%3E%3Ctext x='80' y='60' font-family='monospace' font-size='14' fill='rgba(76,175,80,0.20)'%3E00%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='20' y='30' font-family='monospace' font-size='16' fill='rgba(76,175,80,0.16)'%3E{ }%3C/text%3E%3Ctext x='50' y='70' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.13)'%3E[ ]%3C/text%3E%3Ctext x='100' y='50' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.11)'%3E( )%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='30' y='40' font-family='monospace' font-size='14' fill='rgba(76,175,80,0.17)'%3E=&gt;%3C/text%3E%3Ctext x='80' y='90' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.15)'%3E&lt;=%3C/text%3E%3Ctext x='120' y='30' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.13)'%3E==%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='300' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,50 L50,50 L50,100 L100,100 L100,150 L150,150' stroke='rgba(76,175,80,0.16)' stroke-width='1' fill='none'/%3E%3Ccircle cx='50' cy='50' r='3' fill='rgba(76,175,80,0.25)'/%3E%3Ccircle cx='100' cy='100' r='3' fill='rgba(76,175,80,0.25)'/%3E%3Ccircle cx='150' cy='150' r='3' fill='rgba(76,175,80,0.25)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='250' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M200,20 L200,80 L150,80 L150,120 L100,120 L100,180' stroke='rgba(76,175,80,0.15)' stroke-width='1' fill='none'/%3E%3Ccircle cx='200' cy='20' r='2' fill='rgba(76,175,80,0.22)'/%3E%3Ccircle cx='150' cy='80' r='2' fill='rgba(76,175,80,0.22)'/%3E%3Ccircle cx='100' cy='120' r='2' fill='rgba(76,175,80,0.22)'/%3E%3C/svg%3E");
    background-size: 100px 100px, 150px 150px, 200px 200px, 300px 200px, 250px 300px;
    background-position: 0 0, 50px 50px, 100px 100px, 0 0, 100% 0;
    pointer-events: none;
    z-index: -1;
    animation: codeFloat 40s linear infinite;
    opacity: 0.35;
}

/*éléments de programmation en arrière-plan - plus visibles*/
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.code-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='20' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.22)'%3E1%3C/text%3E%3Ctext x='10' y='40' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.20)'%3E0%3C/text%3E%3Ctext x='10' y='60' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.21)'%3E1%3C/text%3E%3Ctext x='10' y='80' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.19)'%3E0%3C/text%3E%3Ctext x='10' y='100' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.23)'%3E1%3C/text%3E%3Ctext x='10' y='120' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.21)'%3E0%3C/text%3E%3Ctext x='10' y='140' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.22)'%3E1%3C/text%3E%3Ctext x='10' y='160' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.24)'%3E0%3C/text%3E%3Ctext x='10' y='180' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.18)'%3E1%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='80' height='250' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='15' y='25' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.25)'%3E0%3C/text%3E%3Ctext x='15' y='50' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.23)'%3E1%3C/text%3E%3Ctext x='15' y='75' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.24)'%3E0%3C/text%3E%3Ctext x='15' y='100' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.22)'%3E1%3C/text%3E%3Ctext x='15' y='125' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.23)'%3E0%3C/text%3E%3Ctext x='15' y='150' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.23)'%3E1%3C/text%3E%3Ctext x='15' y='175' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.25)'%3E0%3C/text%3E%3Ctext x='15' y='200' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.21)'%3E1%3C/text%3E%3Ctext x='15' y='225' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.26)'%3E0%3C/text%3E%3C/svg%3E");
    background-size: 60px 200px, 80px 250px;
    background-repeat: repeat-x;
    background-position: 0 0, 40px 0;
    animation: codeRain 15s linear infinite;
    opacity: 0.45;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='400' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,50 L100,50 L100,100 L200,100 L200,150 L300,150' stroke='rgba(76,175,80,0.15)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='100' cy='50' r='2' fill='rgba(76,175,80,0.28)'/%3E%3Ccircle cx='200' cy='100' r='2' fill='rgba(76,175,80,0.28)'/%3E%3Ccircle cx='300' cy='150' r='2' fill='rgba(76,175,80,0.28)'/%3Cpath d='M350,30 L350,80 L300,80 L300,130 L250,130' stroke='rgba(76,175,80,0.12)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='350' cy='30' r='1.5' fill='rgba(76,175,80,0.25)'/%3E%3Ccircle cx='300' cy='80' r='1.5' fill='rgba(76,175,80,0.25)'/%3E%3Ccircle cx='250' cy='130' r='1.5' fill='rgba(76,175,80,0.25)'/%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='500' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,80 L150,80 L150,150 L250,150 L250,200 L350,200' stroke='rgba(76,175,80,0.16)' stroke-width='2' fill='none'/%3E%3Ccircle cx='150' cy='80' r='2.5' fill='rgba(76,175,80,0.32)'/%3E%3Ccircle cx='250' cy='150' r='2.5' fill='rgba(76,175,80,0.32)'/%3E%3Ccircle cx='350' cy='200' r='2.5' fill='rgba(76,175,80,0.32)'/%3Cpath d='M400,50 L400,120 L350,120 L350,180 L300,180' stroke='rgba(76,175,80,0.15)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='400' cy='50' r='2' fill='rgba(76,175,80,0.28)'/%3E%3Ccircle cx='350' cy='120' r='2' fill='rgba(76,175,80,0.28)'/%3E%3Ccircle cx='300' cy='180' r='2' fill='rgba(76,175,80,0.28)'/%3E%3C/svg%3E");
    background-size: 400px 300px, 500px 400px;
    background-position: 0 0, 200px 100px;
    animation: circuitMove 30s linear infinite;
    opacity: 0.35;
}

.binary-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='20' y='30' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.22)'%3E01%3C/text%3E%3Ctext x='60' y='70' font-family='monospace' font-size='8' fill='rgba(76,175,80,0.20)'%3E10%3C/text%3E%3Ctext x='80' y='20' font-family='monospace' font-size='9' fill='rgba(76,175,80,0.24)'%3E11%3C/text%3E%3Ctext x='10' y='80' font-family='monospace' font-size='11' fill='rgba(76,175,80,0.18)'%3E00%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='150' height='150' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='30' y='40' font-family='monospace' font-size='12' fill='rgba(76,175,80,0.21)'%3E=&gt;%3C/text%3E%3Ctext x='100' y='90' font-family='monospace' font-size='10' fill='rgba(76,175,80,0.19)'%3E&lt;=%3C/text%3E%3Ctext x='50' y='120' font-family='monospace' font-size='8' fill='rgba(76,175,80,0.23)'%3E==%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='25' y='35' font-family='monospace' font-size='9' fill='rgba(76,175,80,0.23)'%3E{ }%3C/text%3E%3Ctext x='70' y='75' font-family='monospace' font-size='7' fill='rgba(76,175,80,0.20)'%3E[ ]%3C/text%3E%3Ctext x='90' y='25' font-family='monospace' font-size='6' fill='rgba(76,175,80,0.22)'%3E( )%3C/text%3E%3C/svg%3E");
    background-size: 100px 100px, 150px 150px, 120px 120px;
    background-position: 0 0, 50px 50px, 100px 100px;
    animation: particleFloat 35s linear infinite;
    opacity: 0.30;
}

@keyframes codeRain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes circuitMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(15px) rotate(-2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes codeFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/*container*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*header*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    font-family: 'Courier New', monospace;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Courier New', monospace;
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}



.language-toggle {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.8);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
    transition: left 0.5s ease;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-toggle:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8);
    text-shadow: 0 0 15px rgba(76, 175, 80, 1);
    transform: translateY(-2px);
}

/*main content*/
.main {
    margin-top: 80px;
}

/*sections*/
.section {
    min-height: 100vh;
    padding: 3rem 0;
    display: none;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    font-family: 'Courier New', monospace;
    position: relative;
}

.section-title::before {
    content: '// ';
    color: #4CAF50;
    opacity: 0.7;
}

.section-title::after {
    content: ' //';
    color: #4CAF50;
    opacity: 0.7;
}

/*Herosection*/
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #4CAF50;
    text-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
    font-family: 'Courier New', monospace;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100vw;
}

.hero-title::before {
    content: '> ';
    color: #4CAF50;
    opacity: 0.8;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    color: #4CAF50;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*AnimationdephotodeprofilMatrixfuturisteoriginale*/
.profile-photo-container {
    position: relative;
    display: inline-block;
    perspective: 1000px;
    pointer-events: auto;
    z-index: 5;
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: photoGlow 3s ease-in-out infinite;
    pointer-events: auto;
    z-index: 10;
}

/*Animationdelueurautomatique*/
@keyframes photoGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 0 0 50px rgba(76, 175, 80, 0.4);
    }
}

/* Effet de bordure Matrix animée */
.profile-photo::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        rgba(76, 175, 80, 0.8) 90deg, 
        transparent 180deg, 
        rgba(76, 175, 80, 0.4) 270deg, 
        transparent 360deg);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

/*EffetdescanMatrix*/
.profile-photo::after {
    opacity: 0 !important;
    animation: none !important;
    background: none !important;
}

/*Particulesholographiquesautourdelaphoto*/
.profile-photo-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(76, 175, 80, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

/*PointsdescanMatrix*/
.profile-photo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(76, 175, 80, 0.3);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Effet de décomposition au survol */
.profile-photo:hover {
    transform: scale(1.08) translateY(-10px) rotateY(8deg);
    border-color: rgba(76, 175, 80, 1);
    box-shadow: 
        0 20px 60px rgba(76, 175, 80, 0.8),
        0 0 120px rgba(76, 175, 80, 0.5),
        inset 0 0 40px rgba(76, 175, 80, 0.2);
    filter: brightness(1.3) contrast(1.2) saturate(1.2);
    animation: photoGlowIntense 1s ease-in-out infinite;
}

@keyframes photoGlowIntense {
    0%, 100% {
        box-shadow: 
            0 20px 60px rgba(76, 175, 80, 0.8),
            0 0 120px rgba(76, 175, 80, 0.5),
            inset 0 0 40px rgba(76, 175, 80, 0.2);
    }
    50% {
        box-shadow: 
            0 25px 80px rgba(76, 175, 80, 1),
            0 0 150px rgba(76, 175, 80, 0.7),
            inset 0 0 60px rgba(76, 175, 80, 0.3);
    }
}

.profile-photo:hover::before {
    opacity: 1;
    animation: matrixBorderRotate 1.5s linear infinite;
}

.profile-photo:hover::after {
    opacity: 0 !important;
    animation: none !important;
}

.profile-photo-container:hover::before {
    opacity: 1;
    animation: holographicPulse 2s ease-in-out infinite;
}

.profile-photo-container:hover::after {
    opacity: 1;
    animation: scanCircle 2s ease-in-out infinite;
}

/*AnimationdescanMatrix*/
@keyframes matrixScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/*AnimationdebordureMatrixrotative*/
@keyframes matrixBorderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*Animationdepulsationholographique*/
@keyframes holographicPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

/*Animationdecercledescan*/
@keyframes scanCircle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

/*EffetdeparticulesMatrixflottantes*/
.matrix-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.matrix-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4CAF50;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 15px rgba(76, 175, 80, 1);
}

.matrix-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particleFloat1 3s ease-in-out infinite;
}

.matrix-particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: particleFloat2 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.matrix-particle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation: particleFloat3 3s ease-in-out infinite;
    animation-delay: 1s;
}

.matrix-particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation: particleFloat4 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.matrix-particle:nth-child(5) {
    top: 70%;
    left: 20%;
    animation: particleFloat5 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes particleFloat1 {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-35px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
}

@keyframes particleFloat2 {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-25px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-40px) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translateY(-55px) scale(0);
    }
}

@keyframes particleFloat3 {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-15px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-45px) scale(0);
    }
}

@keyframes particleFloat4 {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-22px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-37px) scale(1.3);
    }
    100% {
        opacity: 0;
        transform: translateY(-52px) scale(0);
    }
}

@keyframes particleFloat5 {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    25% {
        opacity: 1;
        transform: translateY(-18px) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(-33px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-48px) scale(0);
    }
}

/* Animation whoami améliorée */
.whoami-popup {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.98);
    color: #4CAF50;
    padding: 1.2rem 2.5rem;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    border: 3px solid #4CAF50;
    box-shadow: 
        0 0 40px rgba(76, 175, 80, 0.9),
        inset 0 0 25px rgba(76, 175, 80, 0.15);
    z-index: 1000;
    white-space: nowrap;
    text-shadow: 0 0 25px rgba(76, 175, 80, 1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.whoami-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0, 0, 0, 0.98);
    color: #4CAF50;
    padding: 3.5rem;
    border-radius: 25px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.9;
    border: 3px solid #4CAF50;
    box-shadow: 
        0 0 60px rgba(76, 175, 80, 1),
        inset 0 0 40px rgba(76, 175, 80, 0.15);
    z-index: 1000;
    white-space: pre-line;
    text-align: center;
    max-width: 450px;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.9);
    backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo:hover .whoami-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-20px);
    animation: whoamiGlow 1.5s ease-in-out infinite;
}

.profile-photo:hover .whoami-info {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: infoGlow 2s ease-in-out infinite;
}

@keyframes whoamiGlow {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(76, 175, 80, 0.9),
            inset 0 0 25px rgba(76, 175, 80, 0.15);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(76, 175, 80, 1),
            inset 0 0 40px rgba(76, 175, 80, 0.25);
    }
}

@keyframes infoGlow {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(76, 175, 80, 1),
            inset 0 0 40px rgba(76, 175, 80, 0.15);
    }
    50% {
        box-shadow: 
            0 0 100px rgba(76, 175, 80, 1),
            inset 0 0 60px rgba(76, 175, 80, 0.25);
    }
}


@keyframes scanLine {
    0% { 
        transform: translateX(-100%);
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes photoGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    50% { 
        box-shadow: 0 0 40px rgba(76, 175, 80, 0.8);
    }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-photo:hover {
    transform: scale(1.02) translateY(-5px);
    border-color: rgba(76, 175, 80, 0.6);
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.4);
    filter: brightness(1.1) contrast(1.05);
}

.profile-photo:hover::before {
    opacity: 1;
}

.profile-photo:hover::after {
    opacity: 0 !important;
    animation: none !important;
}

/*AnimationdescanMatrix*/
@keyframes matrixScan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* Suppression de l'effet de trait au survol */

/*Buttons*/
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

/* Boutons cliquables - avec effets de survol */
.btn-primary {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: rgba(76, 175, 80, 0.1);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
    border-color: #4CAF88;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
    border-color: #4CAF88;
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.btn-outline {
    background: transparent;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-outline:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    border-color: #4CAF88;
}

.btn-outline:active {
    transform: scale(0.98);
}

/* Boutons non-cliquables - style statique */
.btn-static {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(76, 175, 80, 0.6);
    border: 1px solid rgba(76, 175, 80, 0.3);
    cursor: default;
    opacity: 0.7;
}

.btn-static:hover {
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(76, 175, 80, 0.6);
    border-color: rgba(76, 175, 80, 0.3);
}

/*Indicateurvisuelpourlesboutonscliquables*/
.btn:not(.btn-static):not(:disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:not(.btn-static):not(:disabled):hover::before {
    left: 100%;
}

/* Indicateur de cliquabilité */
.btn:not(.btn-static):not(:disabled)::after {
    content: '▶';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: rgba(76, 175, 80, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:not(.btn-static):not(:disabled):hover::after {
    opacity: 1;
}

/* Ajuster le padding des boutons pour éviter le conflit avec la flèche */
.btn:not(.btn-static):not(:disabled) {
    padding-right: 2.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/*Animationdepulsationpourlesboutonscliquables*/
@keyframes buttonPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
    }
}

.btn:not(.btn-static):not(:disabled) {
    animation: buttonPulse 3s ease-in-out infinite;
}

.btn:not(.btn-static):not(:disabled):hover {
    animation: none;
}

/* Projects - Style simple et élégant */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    animation: scanLine 3s linear infinite;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.project-description {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

.project-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Skills - Style fluide et moderne */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-category {
    position: relative;
    padding: 0;
    font-family: 'Courier New', monospace;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title::before {
    content: '> ';
    color: #4CAF50;
    opacity: 0.8;
    font-size: 1.2rem;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #4CAF50, transparent);
    margin-left: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    position: relative;
}

.skill-item {
    background: transparent;
    color: #4CAF50;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: inline-block;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

/*Timeline*/
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

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

.timeline-date {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
    border: 1px solid #4CAF50;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.timeline-content {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 2rem;
    flex: 1;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.timeline-description {
    color: #4CAF50;
    line-height: 1.6;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

/*Contact*/
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
}

.contact-item:hover {
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
    background: rgba(0, 0, 0, 0.8);
}

.contact-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%) drop-shadow(0 0 8px rgba(76, 175, 80, 0.8));
    transform: scale(1.1);
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.contact-details a,
.contact-details span {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Courier New', monospace;
}

.contact-details a:hover {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

/*Contactform*/
.contact-form {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-of-type {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4CAF50;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(76, 175, 80, 0.5);
    font-family: 'Courier New', monospace;
}

.form-group textarea {
    flex: 1;
    resize: none;
    min-height: 200px;
    height: 100%;
}

.contact-form .btn {
    align-self: flex-end;
    margin-top: auto;
}

/*Formstatusnotifications*/
.form-status {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: none;
    opacity: 1;
    visibility: visible;
    z-index: 1000;
    position: relative;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
    color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.4));
}

.form-status.error {
    background: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
    color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.4));
}

.form-status.loading {
    background: rgba(79, 172, 254, 0.3);
    border-color: #4facfe;
    color: #4facfe;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(79, 172, 254, 0.4));
}

/*Footer*/
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #4CAF50;
    padding: 2rem 0;
    text-align: center;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4CAF50, transparent);
    animation: scanLine 3s linear infinite;
}

.footer p {
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    font-weight: 500;
}

.footer p::before {
    content: '// ';
    color: #4CAF50;
    opacity: 0.7;
}

.footer p::after {
    content: ' //';
    color: #4CAF50;
    opacity: 0.7;
}

/* Responsive Design - Optimisations complètes */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/*Tablettes*/
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
        border-radius: 4px;
        background: rgba(76, 175, 80, 0.1);
        border: 1px solid rgba(76, 175, 80, 0.3);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(76, 175, 80, 0.2);
        border-color: rgba(76, 175, 80, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    }
    
    .nav-lang {
        order: -1;
        align-self: flex-end;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 40px;
        padding: 1rem;
    }
    
    .timeline-date {
        position: absolute;
        left: -60px;
        top: 50%;
        transform: translateY(-50%);
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .profile-photo {
        width: 280px;
        height: 280px;
    }
    
    .profile-photo-container {
        margin: 0 auto;
    }
}

/*Mobiles*/
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0.8rem;
    }
    
    .nav-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .skills-category {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .skill-item {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
    
    .timeline-item {
        margin-left: 30px;
        padding: 0.8rem;
    }
    
    .timeline-date {
        left: -50px;
        min-width: 70px;
        font-size: 0.7rem;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    .timeline-description {
        font-size: 0.85rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details a {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 150px;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

/* Optimisations pour écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 0.8rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .project-card {
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .skill-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .contact-item {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Désactiver les animations complexes sur mobile pour les performances */
    body::before,
    body::after {
        animation-duration: 60s;
    }
    
    .code-rain,
    .circuit-lines,
    .binary-particles {
        animation-duration: 45s;
    }
}

/* Optimisations pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/*Modepaysagesurmobile*/
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
}



/* footer collé en bas sur mobile */
@media (max-width: 768px) {
  body, html {
    height: 100%;
  }
  .main {
    min-height: calc(100vh - 120px);
    box-sizing: border-box;
  }
  .footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    margin: 0;
    z-index: 100;
  }
} 

/*mobilenavbarENHAUT*/
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .header, .nav, .nav-menu {
        display: none !important;
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        height: 56px;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid rgba(76, 175, 80, 0.2);
        box-shadow: 0 2px 16px rgba(0,0,0,0.25);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 0 8px;
    }
    .mobile-nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #4CAF50;
        text-decoration: none;
        font-size: 1.1rem;
        font-family: 'Courier New', monospace;
        flex: 1;
        height: 100%;
        transition: color 0.2s;
    }
    .mobile-nav-link:active, .mobile-nav-link.active {
        color: #fff;
        background: rgba(76, 175, 80, 0.12);
        border-radius: 0 0 8px 8px;
    }
    .mobile-nav-text {
        font-size: 0.7rem;
        margin-top: 2px;
        letter-spacing: 0.5px;
    }
    .mobile-lang-toggle {
        background: rgba(76, 175, 80, 0.1);
        border: 1px solid rgba(76, 175, 80, 0.5);
        color: #4CAF50;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
        font-family: 'Courier New', monospace;
        margin-left: 8px;
        margin-right: 0;
        align-self: center;
        height: 36px;
        min-width: 44px;
    }
    .main {
        padding-top: 56px !important;
        padding-bottom: 0 !important;
    }
    .footer {
        position: static !important;
        width: 100%;
        margin: 0;
        z-index: 100;
    }
    body {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    /* ...autres styles... */
    .timeline {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: relative;
        margin: 2rem 0 0 0;
        padding: 0 0.5rem;
    }
    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: rgba(76, 175, 80, 0.25);
        z-index: 0;
    }
    .timeline-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        background: rgba(10,10,10,0.95);
        border: 1px solid rgba(76,175,80,0.18);
        border-radius: 12px;
        margin: 1.2rem 0 1.2rem 30px;
        padding: 1rem 1rem 1rem 2.5rem;
        box-shadow: 0 2px 12px rgba(76,175,80,0.08);
        position: relative;
        z-index: 1;
    }
    .timeline-date {
        position: absolute;
        left: -60px;
        top: 1.2rem;
        min-width: 60px;
        font-size: 0.8rem;
        color: #4CAF50;
        background: rgba(10,10,10,0.95);
        border-radius: 6px;
        padding: 0.2rem 0.5rem;
        text-align: right;
        z-index: 2;
        border: 1px solid rgba(76,175,80,0.12);
    }
    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
        color: #4CAF50;
    }
    .timeline-description {
        font-size: 0.95rem;
        color: #b6ffb6;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    html, body {
        height: 100%;
    }
    .main {
        min-height: calc(100vh - 56px - 60px); /* 56px nav, 60px footer */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .footer {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        margin: 0;
        z-index: 100;
        background: rgba(10, 10, 10, 0.98);
        border-top: 1px solid rgba(76, 175, 80, 0.2);
    }
    body {
        padding-bottom: 60px !important;
    }
}

@media (max-width: 768px) {
    .section-title, .category-title, .btn, .mobile-nav-link, .timeline-title, .timeline-description {
        word-break: break-word;
        white-space: normal;
        font-size: 0.98em;
    }
    .mobile-nav-link {
        max-width: 80px;
        font-size: 0.95em;
    }
    .btn {
        font-size: 0.95em;
        padding: 0.7em 1em;
    }
}

@media (max-width: 768px) {
    .footer {
        height: 55px !important;
        min-height: 55px !important;
        font-size: 0.9em;
        padding: 0.5em 0.5em;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }
    .contact-form {
        padding-bottom: 65px !important;
    }
    .mobile-nav {
        justify-content: space-between;
    }
    .mobile-nav-link {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        text-align: center;
        padding: 4px 1px;
        font-size: 0.85em;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .mobile-nav-text {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        width: 100%;
        font-size: 0.5em;
        line-height: 1.0;
        margin-top: 3px;
        text-align: center;
        height: 2.4em;
        min-height: 2.4em;
        max-height: 2.4em;
        padding: 0 1px;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .hero-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 1.5rem;
        max-width: 100vw;
    }
}

@media (max-width: 768px) {
    .mobile-nav-link span:first-child {
        color: #4CAF50;
        filter: drop-shadow(0 0 4px #4CAF50);
        font-size: 1.3em;
        line-height: 1;
        display: block;
    }
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    filter: drop-shadow(0 0 3px #4CAF50) brightness(1.1) saturate(1.2);
    transition: filter 0.2s;
}

.nav-link, .mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-link .nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 0;
    margin-bottom: 3px;
}

.mobile-nav-text, .nav-text {
    display: block;
    font-size: 0.9em;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    text-align: center;
    word-break: break-word;
    white-space: normal;
}

@media (max-width: 768px) {
    .nav-icon {
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-bottom: 3px;
    }
    .mobile-nav-link {
        flex-direction: column;
        padding: 0 2px;
    }
    .mobile-nav-text {
        font-size: 0.85em;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .mobile-nav {
        justify-content: space-around;
        padding: 0 4px;
    }
    .mobile-nav-link {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        text-align: center;
        padding: 4px 2px;
        font-size: 0.85em;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .mobile-nav-text {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        width: 100%;
        font-size: 0.6em;
        line-height: 1.0;
        margin-top: 3px;
        text-align: center;
        height: 2.4em;
        min-height: 2.4em;
        max-height: 2.4em;
    }
}

/*MatrixTerminalStyles*/
.matrix-terminal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 80%;
    max-width: 600px;
    height: 70%;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff41;
    border-radius: 10px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.terminal-header {
    background: #00ff41;
    color: #000;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.terminal-title {
    font-weight: bold;
    font-size: 14px;
}

.terminal-close {
    background: none;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    font-weight: bold;
}

.terminal-close:hover {
    color: #ff0000;
}

.terminal-content {
    padding: 20px;
    color: #00ff41;
    font-size: 14px;
    line-height: 1.6;
    height: calc(100% - 60px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

/*Mobile terminal optimizations*/
@media (max-width: 768px) {
    .terminal-content {
        padding: 15px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    .terminal-line {
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .terminal-output {
        margin: 8px 0;
        padding: 8px;
        font-size: 11px;
        line-height: 1.3;
    }
}

.terminal-line {
    margin-bottom: 10px;
}

.typing-text {
    border-right: 2px solid #00ff41;
    animation: blink 1s infinite;
}

.terminal-output {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 255, 65, 0.1);
    border-left: 3px solid #00ff41;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Pong Game Styles */
.matrix-terminal.pong-game {
    cursor: none;
}

.matrix-terminal.pong-game .terminal-content {
    padding: 10px;
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
}

.matrix-terminal.pong-game pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1;
    white-space: pre;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.matrix-terminal.pong-game .game-instructions {
    color: #00ff41;
    text-align: center;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.4;
}

.matrix-terminal.pong-game .game-over {
    text-align: center;
    margin-top: 20px;
}

.matrix-terminal.pong-game .game-over h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px currentColor;
}

.matrix-terminal.pong-game .game-over p {
    font-size: 12px;
    margin: 5px 0;
}

/* Touch controls for mobile */
@media (max-width: 768px) {
    .matrix-terminal.pong-game {
        width: 95%;
        height: 80%;
        max-height: 70vh;
    }
    
    .matrix-terminal.pong-game .terminal-content {
        font-size: 10px;
        padding: 10px;
        overflow: hidden;
    }
    
    .matrix-terminal.pong-game pre {
        font-size: 10px;
        line-height: 0.8;
        margin: 0;
        padding: 0;
    }
    
    /*Ensure game fits on screen without scrolling*/
    .matrix-terminal.pong-game .game-instructions {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .matrix-terminal.pong-game .game-over {
        margin-top: 10px;
    }
    
    .matrix-terminal.pong-game .game-over h2 {
        font-size: 14px;
    }
    
    .matrix-terminal.pong-game .game-over p {
        font-size: 10px;
    }
}

@keyframes blink {
    0%, 50% { border-color: #00ff41; }
    51%, 100% { border-color: transparent; }
}

/*EnhancedMatrixBackgroundforTerminal*/
.matrix-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 65, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 255, 65, 0.1) 100%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
    animation: matrixScan 2s linear infinite;
}

@keyframes matrixScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Fix pour éviter le chevauchement des traductions */
.nav-text, .mobile-nav-text {
    transition: opacity 0.3s ease;
}

.nav-text[data-lang="en"], .mobile-nav-text[data-lang="en"] {
    display: none;
}

.nav-text[data-lang="fr"], .mobile-nav-text[data-lang="fr"] {
    display: block;
}

/* Correction pour le système de traduction */
[data-fr], [data-en] {
    transition: opacity 0.3s ease;
}

[data-fr][data-lang="en"], [data-en][data-lang="fr"] {
    display: none;
}

[data-fr][data-lang="fr"], [data-en][data-lang="en"] {
    display: block;
}

/* --- Transitions globales et effets sophistiqués (suite) --- */

.project-card {
  transition: box-shadow 0.4s cubic-bezier(.77,0,.18,1),
              transform 0.4s cubic-bezier(.77,0,.18,1),
              opacity 0.7s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 2px 16px 0 rgba(76,175,80,0.08);
}
.project-card:hover {
  transform: scale(1.035) translateY(-6px) rotateZ(-0.5deg);
  box-shadow: 0 8px 32px 0 rgba(76,175,80,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  z-index: 2;
}

.btn {
  transition: background 0.3s cubic-bezier(.77,0,.18,1),
              color 0.3s cubic-bezier(.77,0,.18,1),
              box-shadow 0.3s cubic-bezier(.77,0,.18,1),
              transform 0.25s cubic-bezier(.77,0,.18,1);
}
.btn:hover:not(:disabled) {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 4px 16px 0 rgba(76,175,80,0.18);
}

.nav-link, .mobile-nav-link {
  transition: color 0.3s cubic-bezier(.77,0,.18,1),
              border-color 0.3s cubic-bezier(.77,0,.18,1),
              background 0.3s cubic-bezier(.77,0,.18,1),
              box-shadow 0.3s cubic-bezier(.77,0,.18,1);
}
.nav-link:hover, .mobile-nav-link:hover, .nav-link.active, .mobile-nav-link.active {
  color: #fff;
  background: rgba(76,175,80,0.10);
  box-shadow: 0 2px 8px 0 rgba(76,175,80,0.10);
}

.header {
  transition: box-shadow 0.4s cubic-bezier(.77,0,.18,1), background 0.3s cubic-bezier(.77,0,.18,1);
}
.header.scrolled {
  box-shadow: 0 4px 24px 0 rgba(76,175,80,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  background: rgba(10, 10, 10, 0.98);
}

@media (max-width: 768px) {
  .project-card:hover {
    transform: scale(1.01) translateY(-2px);
  }
  .btn:hover:not(:disabled) {
    transform: scale(1.03) translateY(-1px);
  }
}

.profile-photo::before,
.profile-photo::after,
.profile-photo-container::before,
.profile-photo-container::after {
    pointer-events: none !important;
}