/* Styles pour le portfolio */

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a;
    overflow: hidden;
}

/* En-tête */
header {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Sections */
section:not(#hero) {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about {
    background-color: #f8f9fa;
}

.projects {
    background-color: white;
}

h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

/* Conteneur */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 2rem 0;
    }

    h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Animations */
section:not(#hero) {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 2rem;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#hero h1 {
    font-size: clamp(3rem, 5vw, 7rem);
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1.1;
    width: 100%;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

#hero .intro-line {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
    width: 100%;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-separator {
    height: 1px;
    width: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem auto;
}

#hero .agency-line {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    width: 100%;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

#hero .agency-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

#hero .agency-link:hover {
    opacity: 0.8;
}

#hero .animated-quote {
    font-family: 'Cardo', serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    width: 100%;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    background: linear-gradient(
        45deg,
        #ff4d4d,
        #ff9a00,
        #f9ff00,
        #00f0ff,
        #4a00ff,
        #ff00f5,
        #00ff87,
        #ff4d4d
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 80s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    #hero .intro-line {
        font-size: 1.1rem;
    }
    
    #hero .agency-line {
        font-size: 1rem;
    }
    
    #hero .animated-quote {
        font-size: 1.2rem;
    }
}

/* Trailing Images */
#trailing-images {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.trail-image {
    position: absolute;
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    border-radius: 0.5rem;
}

.trail-image.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.trail-image.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .subtitle {
        font-size: 1.2rem;
    }
    
    #hero .current-project {
        font-size: 1rem;
    }
}

.trail-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.trail-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.trail-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.trail-toggle svg {
    width: 20px;
    height: 20px;
}

/* Easter Egg Button */
.easter-egg-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 100;
    animation: pixelShift 3s infinite;
}

@keyframes pixelShift {
    0% { background-color: rgba(255, 255, 255, 0.3); }
    25% { background-color: rgba(255, 255, 255, 0.4); }
    50% { background-color: rgba(255, 255, 255, 0.2); }
    75% { background-color: rgba(255, 255, 255, 0.35); }
    100% { background-color: rgba(255, 255, 255, 0.3); }
}

.easter-egg-button:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(2deg); }
    50% { transform: scale(0.9) rotate(-1deg); }
    75% { transform: scale(1.1) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Pong Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close-button:hover {
    opacity: 0.8;
}

#pongCanvas {
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
