* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #FFFFFF;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logo */
.logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

/* Info - en bas à droite */
.info {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
    font-size: 14px;
    line-height: 1.5;
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.info p {
    margin: 0;
}

.info a {
    color: #FF8C42;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info a:hover {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Navigation - en haut à droite */
.nav-links {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #FF8C42;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.nav-number {
    opacity: 0.6;
    color: #FF6B35;
}

/* Social Links */
.social-links {
    position: fixed;
    bottom: 150px;
    right: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.social-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #FF8C42;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Hero Typography - ancré à GAUCHE */
.hero {
    position: fixed;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 1400px;
    pointer-events: all;
    perspective: 1200px;
    perspective-origin: 0% 50%;
}

.hero-text {
    font-size: clamp(50px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.85;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: -6px;
    pointer-events: all;
    transform-style: preserve-3d;
}

/* Individual Words - rotation depuis la GAUCHE vers la DROITE */
.word {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease-out;
    cursor: pointer;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform-style: preserve-3d;
    pointer-events: all;
    transform-origin: left center;
    transform: 
        perspective(1200px) 
        rotateX(-10deg)
        rotateY(15deg)
        rotateZ(0deg)
        translateZ(0px);
    
    /* Ombres oranges subtiles */
    text-shadow: 
        -6px 4px 0px rgba(255, 107, 53, 0.2),
        -12px 8px 0px rgba(255, 107, 53, 0.1);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.25));
}

/* Animation de flottement 3D */
@keyframes float3D {
    0%, 100% {
        transform: 
            perspective(1200px) 
            rotateX(-10deg) 
            rotateY(45deg) 
            rotateZ(0deg)
            translateZ(0px);
    }
    50% {
        transform: 
            perspective(1200px) 
            rotateX(-12deg) 
            rotateY(47deg) 
            rotateZ(1deg)
            translateZ(8px);
    }
}

/* Hover Effect - le texte devient orange avec glow */
.word:hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FF8C42 50%, #FF6B35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: 
        perspective(1200px) 
        rotateX(-5deg) 
        rotateY(25deg)
        rotateZ(0deg)
        translateZ(40px)
        scale(1.05);
    text-shadow: 
        -8px 6px 0px rgba(255, 140, 66, 0.25),
        -16px 12px 0px rgba(255, 107, 53, 0.15);
    filter: drop-shadow(0 0 30px rgba(255, 140, 66, 0.4))
            drop-shadow(0 0 60px rgba(255, 107, 53, 0.2));
}

/* Small words styling */
.small-word {
    font-size: 0.5em;
    font-weight: 700;
    margin: 0 10px;
    vertical-align: middle;
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    background: none;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Copyright */
.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    opacity: 0.5;
    z-index: 100;
    color: rgba(255, 255, 255, 0.5);
}

/* ========== RESPONSIVE ========== */

/* Desktop - Logo center */
@media (min-width: 769px) {
    .logo {
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        flex-direction: row;
        gap: 15px;
    }
    
    .logo-image {
        width: 45px;
        height: 45px;
    }
}

/* Tablette */
@media (max-width: 968px) {
    .logo {
        top: 20px;
        left: 20px;
        transform: none;
    }

    .info {
        bottom: 20px;
        right: 20px;
        font-size: 12px;
    }

    .nav-links {
        top: 20px;
        right: 20px;
    }

    .social-links {
        bottom: 110px;
        right: 20px;
    }
    
    .hero {
        left: 3%;
    }

    .hero-text {
        font-size: clamp(40px, 12vw, 100px);
        letter-spacing: -4px;
    }

    .word {
        transform: 
            perspective(1000px) 
            rotateX(-8deg) 
            rotateY(15deg) 
            rotateZ(0deg)
            translateZ(0px);
        text-shadow: 
            -6px 5px 0px rgba(255, 107, 53, 0.35),
            -12px 10px 0px rgba(255, 107, 53, 0.15);
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
    }
}

/* Mobile */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        left: 2%;
        width: 96%;
    }

    .hero-text {
        text-align: left;
    }
    
    .word {
        transform: 
            perspective(800px) 
            rotateX(-6deg) 
            rotateY(25deg) 
            rotateZ(0deg)
            translateZ(0px);
        text-shadow: 
            -5px 4px 0px rgba(255, 107, 53, 0.35),
            -10px 8px 0px rgba(255, 107, 53, 0.15);
        filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.3));
    }
    
    .word:hover {
        transform: 
            perspective(800px) 
            rotateX(-4deg) 
            rotateY(15deg) 
            rotateZ(0deg)
            translateZ(25px)
            scale(1.03);
    }
}

/* ========== PAGE À PROPOS ========== */

.page-content {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 0 40px;
}

.page-title {
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 900;
    color: #FF6B35;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: -3px;
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.about-intro h2 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #FF8C42;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

.about-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.skills-section h3,
.soft-skills-section h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #FF8C42;
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #FF6B35;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: #FF6B35;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.soft-skills-list {
    list-style: none;
    padding: 0;
}

.soft-skills-list li {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
}

.soft-skills-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #FF6B35;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Responsive page About */
@media (max-width: 768px) {
    .page-content {
        margin: 100px auto 60px;
        padding: 0 20px;
    }

    .page-title {
        font-size: 50px;
        margin-bottom: 40px;
    }

    .about-intro h2 {
        font-size: 24px;
    }

    .about-intro p {
        font-size: 16px;
    }

    .skills-section h3,
    .soft-skills-section h3 {
        font-size: 22px;
    }
}