/* Reset et base optimisé */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimisations GPU globales */
.competence-card,
.trace-category-card,
.hero-visual,
.navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--background) 0%, var(--dark-bg) 50%, var(--darker-bg) 100%);
    min-height: 100vh;
    will-change: scroll-position;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables CSS pour les couleurs des compétences - Thème sombre violet/bleu */
:root {
    --color-comprendre: #ec4899;
    --color-concevoir: #8b5cf6;
    --color-exprimer: #06b6d4;
    --color-developper: #10b981;
    --color-entreprendre: #3b82f6;
    
    --color-comprendre-light: rgba(236, 72, 153, 0.1);
    --color-concevoir-light: rgba(139, 92, 246, 0.1);
    --color-exprimer-light: rgba(6, 182, 212, 0.1);
    --color-developper-light: rgba(16, 185, 129, 0.1);
    --color-entreprendre-light: rgba(59, 130, 246, 0.1);
    
    --primary-color: #f8fafc;
    --secondary-color: #cbd5e1;
    --accent-color: #8b5cf6;
    --background: #0f0f23;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --white: #f8fafc;
    --gray-100: rgba(248, 250, 252, 0.05);
    --gray-200: rgba(248, 250, 252, 0.1);
    --gray-300: rgba(248, 250, 252, 0.2);
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    
    --glow-primary: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-secondary: 0 0 15px rgba(59, 130, 246, 0.2);
    --glow-accent: 0 0 10px rgba(6, 182, 212, 0.4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: var(--glow-secondary);
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: background, box-shadow, backdrop-filter, border-bottom;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f0f23 50%, #1a1a2e 75%, #8b5cf6 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-greeting {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.2s;
}

.hero-name {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #10b981, #3b82f6);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.4s, gradientShift 4s ease-in-out infinite;
    text-shadow: var(--glow-primary);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Réduire l'animation sur les appareils à faible performance */
@media (prefers-reduced-motion: reduce) {
    .hero-name {
        animation: none !important;
        background: var(--accent-color);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .animate-on-scroll {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.6s;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.8s;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 1s;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
    opacity: 0;
    animation: slideInRight 1s ease forwards 0.6s;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.card-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #28ca42; }

.code-line {
    font-family: 'Fira Code', monospace;
    color: white;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.code-line.indent {
    padding-left: 2rem;
}

.code-keyword { color: #ff7b72; }
.code-variable { color: #79c0ff; }
.code-property { color: #7ee787; }
.code-string { color: #a5d6ff; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #6366f1);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Sections génériques */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #10b981);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--accent-color), #6366f1);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Compétences */
.competences {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
}

.competences::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.competence-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glow-secondary), 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.competence-card {
    will-change: transform;
}

.competence-card:hover,
.competence-card.hovered {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-primary), 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.competence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.competence-card[data-color="red"]::before { background: var(--color-comprendre); }
.competence-card[data-color="orange"]::before { background: var(--color-concevoir); }
.competence-card[data-color="yellow"]::before { background: var(--color-exprimer); }
.competence-card[data-color="green"]::before { background: var(--color-developper); }
.competence-card[data-color="blue"]::before { background: var(--color-entreprendre); }

.competence-card:hover::before {
    transform: scaleX(1);
}

.competence-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
    background: var(--accent-color);
}

.competence-card[data-color="red"] .competence-icon { background: var(--color-comprendre); }
.competence-card[data-color="orange"] .competence-icon { background: var(--color-concevoir); }
.competence-card[data-color="yellow"] .competence-icon { background: var(--color-exprimer); }
.competence-card[data-color="green"] .competence-icon { background: var(--color-developper); }
.competence-card[data-color="blue"] .competence-icon { background: var(--color-entreprendre); }

.competence-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.competence-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.competence-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.competence-skills span {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Section Traces Preview */
.traces-preview {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
}

.traces-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.traces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trace-category-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--glow-secondary), 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.trace-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trace-category-card[data-color="red"]::before { background: var(--color-comprendre); }
.trace-category-card[data-color="orange"]::before { background: var(--color-concevoir); }
.trace-category-card[data-color="yellow"]::before { background: var(--color-exprimer); }
.trace-category-card[data-color="green"]::before { background: var(--color-developper); }
.trace-category-card[data-color="blue"]::before { background: var(--color-entreprendre); }

.trace-category-card {
    will-change: transform;
}

.trace-category-card:hover,
.trace-category-card.hovered {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-primary), 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.trace-category-card:hover::before {
    transform: scaleX(1);
}

.trace-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.trace-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: var(--accent-color);
}

.trace-category-card[data-color="red"] .trace-icon { background: var(--color-comprendre); }
.trace-category-card[data-color="orange"] .trace-icon { background: var(--color-concevoir); }
.trace-category-card[data-color="yellow"] .trace-icon { background: var(--color-exprimer); }
.trace-category-card[data-color="green"] .trace-icon { background: var(--color-developper); }
.trace-category-card[data-color="blue"] .trace-icon { background: var(--color-entreprendre); }

.trace-category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.trace-category-content p {
    color: var(--primary-color);
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.trace-projects {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trace-projects span {
    color: var(--primary-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.trace-category-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.trace-category-card:hover .trace-category-arrow {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Section Contact */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4, #10b981);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: var(--glow-secondary);
}

.contact-link:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--color-exprimer));
    color: white;
    transform: translateX(5px) translateY(-2px);
    box-shadow: var(--glow-primary), 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.contact-link i {
    width: 20px;
    text-align: center;
}

.contact-form {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--glow-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: var(--glow-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(248, 250, 252, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Liens de projets */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--accent-color), var(--color-exprimer));
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--glow-secondary);
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.project-link:hover::before {
    left: 100%;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary), 0 10px 30px rgba(0,0,0,0.3);
    text-decoration: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--background) 100%);
    color: var(--primary-color);
    padding: 3rem 0;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--glow-secondary), 0 10px 40px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(139, 92, 246, 0.2);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .competences-grid {
        grid-template-columns: 1fr;
    }

    .traces-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .competence-card,
    .trace-category-card {
        padding: 1.5rem;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Styles pour les pages de traces individuelles */
.trace-page {
    padding-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background) 0%, var(--dark-bg) 50%, var(--darker-bg) 100%);
    background-attachment: fixed;
}

.trace-header {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg), var(--accent-color));
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-primary);
}

.trace-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.trace-header.red { background: linear-gradient(135deg, var(--color-comprendre), #dc2626); }
.trace-header.orange { background: linear-gradient(135deg, var(--color-concevoir), #ea580c); }
.trace-header.yellow { background: linear-gradient(135deg, var(--color-exprimer), #ca8a04); }
.trace-header.green { background: linear-gradient(135deg, var(--color-developper), #16a34a); }
.trace-header.blue { background: linear-gradient(135deg, var(--color-entreprendre), #2563eb); }

.trace-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: slideInDown 0.8s ease-out;
}

.trace-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trace-content {
    padding: 6rem 0;
    background: transparent;
}

.trace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}

.trace-card {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 24px;
    box-shadow: var(--glow-secondary), 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideIn 0.4s ease-out forwards;
    will-change: transform, opacity;
}

.trace-card:nth-child(1) { animation-delay: 0.1s; }
.trace-card:nth-child(2) { animation-delay: 0.2s; }
.trace-card:nth-child(3) { animation-delay: 0.3s; }
.trace-card:nth-child(4) { animation-delay: 0.4s; }
.trace-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trace-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease;
}

.trace-card:hover::before {
    transform: scaleX(1);
}

.trace-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--glow-primary), 0 25px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(139, 92, 246, 0.4);
}

.trace-card-header {
    padding: 2.5rem 2.5rem 1.5rem;
    position: relative;
}

.trace-card-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--accent-color), #6366f1);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.trace-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8b5cf6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.trace-card-project {
    color: var(--color-exprimer);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.trace-card-content {
    padding: 0 2.5rem 2.5rem;
}

.trace-section {
    margin-bottom: 2rem;
    position: relative;
}

.trace-section h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.trace-section h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-color), #6366f1);
    border-radius: 2px;
    animation: slideRight 0.5s ease-out;
}

@keyframes slideRight {
    from { width: 0; }
    to { width: 4px; }
}

.trace-section p {
    color: var(--primary-color);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    text-align: justify;
    opacity: 0.9;
}

.trace-section ul {
    padding-left: 0;
    list-style: none;
    color: var(--primary-color);
    line-height: 1.7;
    opacity: 0.9;
}

.trace-section li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
}

.trace-section li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    top: 0.1rem;
    animation: bounce 2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(1px); }
}

.trace-section li:nth-child(1) { --i: 1; }
.trace-section li:nth-child(2) { --i: 2; }
.trace-section li:nth-child(3) { --i: 3; }
.trace-section li:nth-child(4) { --i: 4; }
.trace-section li:nth-child(5) { --i: 5; }
.trace-section li:nth-child(6) { --i: 6; }
.trace-section li:nth-child(7) { --i: 7; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 3rem;
    padding: 1rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-link:hover {
    transform: translateX(-8px);
    background: var(--accent-color);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-3px);
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.skill-tag {
    background: rgba(26, 26, 46, 0.8);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    border-color: var(--accent-color);
    color: white;
}

.skill-tag.technical {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
}

.skill-tag.technical:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.skill-tag.human {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.skill-tag.human:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* Amélioration responsive pour les traces */
@media (max-width: 768px) {
    .trace-header h1 {
        font-size: 2.5rem;
    }
    
    .trace-header p {
        font-size: 1.1rem;
    }
    
    .trace-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trace-card-header,
    .trace-card-content {
        padding: 2rem 1.5rem;
    }
    
    .trace-section h4 {
        font-size: 1rem;
    }
    
    .trace-section p,
    .trace-section li {
        font-size: 0.95rem;
    }
}

/* Animation d'entrée améliorée pour les sections */
.trace-section {
    animation: sectionFadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--section-index) * 0.1s);
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 