* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
    --bg-color: #0f0a1e;
    --card-bg: #1a0f2e;
    --text-color: #e9d5ff;
    --text-secondary: #c4b5fd;
    --hover-color: #a78bfa;
}

body {
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-color) 0%, #1a0f2e 100%);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 2rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 12px rgba(139, 92, 246, 0.6));
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #5D38D6;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(93, 56, 214, 0.5);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

main {
    margin-top: 4rem;
}

main h2 {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, var(--card-bg) 0%, #2d1b4e 100%);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.2) rotate(5deg);
}

.project-card:hover .project-logo {
    transform: scale(1.15);
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

footer {
    text-align: center;
    margin-top: 5rem;
    padding: 2rem 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 1rem;
    }

    .logo {
        max-width: 150px;
    }

    h1 {
        font-size: 2.5rem;
    }

    main h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Animation au chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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; }
