/* Variables CSS pour cohérence avec la page d'accueil */
:root {
    --primary-color: #FFD700;
    --secondary-color: #FFA500;
    --accent-color: #FF6B35;
    --text-light: #ffffff;
    --text-gray: #e0e0e0;
    --text-dark: #333;
    --bg-dark: rgba(0, 0, 0, 0.8);
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.12);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF6B35 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-image: url('../img/background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Overlay pour améliorer la lisibilité */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
}

body {
    padding-top: 70px;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: #000;
    font-size: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 300;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Stats Preview */
.stats-preview {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-container {
    max-width: 1000px;
    margin: 0 auto;
}

.filters-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.filters-grid {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.modern-select, .modern-input {
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.modern-select:focus, .modern-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.modern-select option {
    background: var(--text-dark);
    color: var(--text-light);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Projects Section */
.projects-section {
    padding: 4rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Cards */
.project-card {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 0;
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.6s ease;
    z-index: 0;
}

.project-card:hover::before {
    left: 0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 215, 0, 0.4);
}

.project-header {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.project-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.tech-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.75rem 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-python { background: #3776ab; color: white; }
.tag-javascript { background: #f7df1e; color: #000; }
.tag-bash { background: #4eaa25; color: white; }
.tag-web { background: #e34f26; color: white; }
.tag-java { background: #007396; color: white; }
.tag-javafx { background: #ed8b00; color: white; }
.tag-jeu { background: #8b5cf6; color: white; }
.tag-discordjs { background: #5865f2; color: white; }
.tag-sae { background: #06b6d4; color: white; }
.tag-sql { background: #f59e0b; color: white; }
.tag-design { background: #ec4899; color: white; }
.tag-réseaux { background: #ff0000; color: white; }

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 16px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.project-year {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.project-year i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-preview {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filters-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        max-width: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        text-align: center;
    }
    
    .project-icon {
        margin: 0 0 1rem 0;
    }
    
    .project-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .filters-section {
        padding: 2rem 0;
    }
    
    .projects-section {
        padding: 2rem 0;
    }
    
    .project-card {
        margin: 0 1rem;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states pour l'accessibilité */
.modern-select:focus, .modern-input:focus, .project-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

