/* Variables CSS pour le thème IA */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-ai: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
    --dark-bg: #0f0f23;
    --dark-surface: #1a1a2e;
    --dark-card: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Variables pour le thème clair */
[data-theme="light"] {
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --dark-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 70px;
}

/* Utilitaires */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo-samba {
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.logo-sy {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    z-index: 99999 !important;
    transition: none !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transform: none !important;
}

.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 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-ai);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cta-btn {
    background: var(--gradient-ai);
    padding: 10px 20px;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(180deg);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.theme-toggle-btn:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Animation pour l'icône */
#theme-icon {
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-ai);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animation IA visuelle */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.profile-image-hero {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 6px solid transparent;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981) padding-box,
                linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #10b981) border-box;
    box-shadow: 
        0 0 50px rgba(99, 102, 241, 0.6),
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 50px rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
    transform: rotateX(15deg) rotateY(-15deg);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: float3D 8s ease-in-out infinite, glow3D 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 25px 35px rgba(99, 102, 241, 0.4));
}

.profile-image-hero:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.05);
    box-shadow: 
        0 0 80px rgba(99, 102, 241, 0.8),
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 35px 50px rgba(99, 102, 241, 0.6)) brightness(1.1);
}

/* Effet de reflet 3D */
.profile-image-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 30%,
        transparent 50%,
        rgba(255, 255, 255, 0.05) 70%,
        rgba(255, 255, 255, 0.2) 100%
    );
    z-index: 1;
    animation: shimmer 3s ease-in-out infinite;
}

/* Effet de particules 3D autour de l'image */
.profile-image-hero::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.3) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px, 40px 40px, 35px 35px;
    animation: particleFloat 12s linear infinite;
    z-index: -1;
}

/* Effet hologramme 3D autour de l'image */
.profile-container::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: 
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(99, 102, 241, 0.2) 60deg,
            rgba(139, 92, 246, 0.3) 120deg,
            rgba(6, 182, 212, 0.2) 180deg,
            rgba(16, 185, 129, 0.3) 240deg,
            rgba(99, 102, 241, 0.2) 300deg,
            transparent 360deg
        );
    animation: hologramRotate 6s linear infinite;
    z-index: 0;
    filter: blur(2px);
}

/* Cercles d'énergie 3D */
.profile-container::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: 
        linear-gradient(45deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3)) border-box,
        linear-gradient(45deg, transparent, transparent) padding-box;
    animation: energyPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes hologramRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes energyPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        opacity: 1;
    }
}

.ai-visual {
    position: absolute;
    width: 500px;
    height: 500px;
    z-index: 1;
    transform-style: preserve-3d;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
    animation: float 6s ease-in-out infinite;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-ai);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.node:nth-child(2) { top: 40%; left: 60%; animation-delay: 0.5s; }
.node:nth-child(3) { top: 60%; left: 30%; animation-delay: 1s; }
.node:nth-child(4) { top: 80%; left: 70%; animation-delay: 1.5s; }
.node:nth-child(5) { top: 30%; left: 80%; animation-delay: 2s; }

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: flow 3s ease-in-out infinite;
}

.connection:nth-child(6) {
    top: 25%;
    left: 25%;
    width: 200px;
    transform: rotate(45deg);
}

.connection:nth-child(7) {
    top: 45%;
    left: 35%;
    width: 150px;
    transform: rotate(-30deg);
}

.connection:nth-child(8) {
    top: 65%;
    left: 45%;
    width: 180px;
    transform: rotate(60deg);
}

/* Animations 3D spectaculaires */
@keyframes float3D {
    0%, 100% { 
        transform: rotateX(15deg) rotateY(-15deg) translateY(0px) translateZ(0px);
    }
    25% { 
        transform: rotateX(10deg) rotateY(-10deg) translateY(-15px) translateZ(10px);
    }
    50% { 
        transform: rotateX(20deg) rotateY(-20deg) translateY(-25px) translateZ(20px);
    }
    75% { 
        transform: rotateX(5deg) rotateY(-5deg) translateY(-10px) translateZ(15px);
    }
}

@keyframes glow3D {
    0% { 
        box-shadow: 
            0 0 50px rgba(99, 102, 241, 0.6),
            0 20px 40px rgba(0, 0, 0, 0.3),
            inset 0 0 50px rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 
            0 0 80px rgba(139, 92, 246, 0.8),
            0 25px 50px rgba(0, 0, 0, 0.4),
            inset 0 0 80px rgba(255, 255, 255, 0.2);
    }
}

@keyframes shimmer {
    0% { 
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0.2) 100%
        );
    }
    50% { 
        background: linear-gradient(
            315deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            transparent 50%,
            rgba(255, 255, 255, 0.1) 70%,
            rgba(255, 255, 255, 0.4) 100%
        );
    }
    100% { 
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 70%,
            rgba(255, 255, 255, 0.2) 100%
        );
    }
}

@keyframes particleFloat {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: rotate(180deg) scale(0.9);
        opacity: 0.8;
    }
    75% { 
        transform: rotate(270deg) scale(1.05);
        opacity: 0.9;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
    40% { transform: translateY(-10px) rotate(-45deg); }
    60% { transform: translateY(-5px) rotate(-45deg); }
}

/* Sections communes */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-ai);
    border-radius: 2px;
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
    background: var(--dark-surface);
    
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--dark-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.highlight {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.highlight.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo a:hover h2 {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.2rem;
}

.profile-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.profile-image {
    margin-bottom: 1.5rem;
}

.ai-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3rem;
    color: white;
}

.profile-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.profile-stats .stat {
    text-align: center;
}

.profile-stats .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-stats .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Projets */
.featured-projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Projets Data Science - première ligne */
.data-science {
    grid-column: span 1;
}

/* Projets Développement - deuxième ligne */
.development {
    grid-column: span 1;
}

.project-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    grid-column: span 1;
}

.project-image {
    height: 200px;
    background: var(--gradient-ai);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    margin-bottom: 0.8rem;
}

.article-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.article-date i {
    color: var(--accent-color);
    margin-right: 0.3rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tech span {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Compétences */
.skills {
    padding: 100px 0;
    background: var(--dark-surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--dark-card);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-ai);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease;
}

/* Contact CTA */
.contact-cta {
    padding: 100px 0;
    background: var(--gradient-ai);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.contact-cta .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-surface);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        order: 2;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Responsive pour l'image 3D */
    .profile-image-hero {
        width: 300px;
        height: 300px;
        transform: rotateX(10deg) rotateY(-10deg);
        animation: float3D 6s ease-in-out infinite, glow3D 3s ease-in-out infinite alternate;
    }

    .profile-container::before {
        width: 350px;
        height: 350px;
    }

    .profile-container::after {
        width: 340px;
        height: 340px;
    }

    .ai-visual {
        width: 400px;
        height: 400px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-items: center;
        align-items: start;
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 2rem;
    }
    
    /* Limiter à 3 cartes sur mobile */
    .projects-grid .project-card:nth-child(n+4) {
        display: none;
    }
    
    .project-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .projects {
        padding: 80px 0;
    }
    
    .projects .container {
        padding: 0 2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-science,
    .development {
        grid-column: 1;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 1rem 0;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0;
    }
}

/* Breakpoint intermédiaire pour petites tablettes */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .profile-image-hero {
        width: 280px;
        height: 280px;
    }

    .profile-container::before {
        width: 320px;
        height: 320px;
    }

    .profile-container::after {
        width: 310px;
        height: 310px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }

    .hero-content {
        gap: 2rem;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .stat p {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Responsive mobile pour l'image 3D */
    .profile-image-hero {
        width: 250px;
        height: 250px;
        transform: rotateX(5deg) rotateY(-5deg);
        animation: float3D 4s ease-in-out infinite, glow3D 2s ease-in-out infinite alternate;
    }

    .profile-container::before {
        width: 280px;
        height: 280px;
    }

    .profile-container::after {
        width: 280px;
        height: 280px;
    }

    .ai-visual {
        width: 320px;
        height: 320px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .about-section {
        padding: 3rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        order: 1;
    }

    .about-text {
        order: 2;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-items: center;
        padding: 0;
        max-width: 300px;
        margin: 0 auto;
        margin-bottom: 2rem;
    }
    
    /* Limiter à 3 cartes sur mobile */
    .projects-grid .project-card:nth-child(n+4) {
        display: none;
    }
    
    .project-card {
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
        height: auto;
        min-height: 320px;
    }
    
    .projects .container {
        padding: 0 1rem;
    }
    
    .project-card .project-content {
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .project-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .project-card p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        flex-grow: 1;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .project-tech {
        gap: 0.2rem;
        margin-top: auto;
        flex-wrap: wrap;
    }
    
    .project-tech span {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-highlights {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-science,
    .development {
        grid-column: 1;
    }

    .service-card, .project-card {
        margin: 0 10px;
    }
    
    .footer {
        padding: 25px 0 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer-section:first-child {
        padding-bottom: 1rem;
        margin-bottom: 1rem;
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }
    
    .footer-section h3 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .footer-section p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        opacity: 0.9;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
        color: var(--accent-color);
        font-weight: 600;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer-section ul li {
        margin: 0;
    }
    
    .footer-section ul li a {
        display: inline-block;
        padding: 0.4rem 0.8rem;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 20px;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }
    
    .footer-section ul li a:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-1px);
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem 1rem;
        background: rgba(99, 102, 241, 0.08);
        border-radius: 20px;
        width: fit-content;
        font-weight: 500;
    }
    
    .contact-info p i {
        color: var(--accent-color);
    }
    
    .social-links {
        display: flex;
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(99, 102, 241, 0.15);
        border-radius: 50%;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }
    
    .social-links a:hover {
        background: var(--accent-color);
        transform: translateY(-2px) scale(1.1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(99, 102, 241, 0.15);
        font-size: 0.75rem;
        opacity: 0.8;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Effet de particules en arrière-plan */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Améliorations Section Services */
.services-preview {
    text-align: center;
}

.services-preview .services-grid {
    justify-content: center;
    gap: 2rem;
}

.services-preview .text-center {
    margin-top: 3rem;
}

.service-features {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100000;
    font-family: 'Inter', sans-serif;
}

.chat-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.chat-icon {
    color: white;
    font-size: 24px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--dark-surface);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

.chat-header {
    background: var(--gradient-ai);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    background: var(--dark-card);
    padding: 0.75rem;
    border-radius: 15px;
    border-top-left-radius: 5px;
    max-width: 80%;
    border: 1px solid var(--border-color);
}

.message-content p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1rem;
}

.message-content li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: var(--gradient-ai);
    border-top-left-radius: 15px;
    border-top-right-radius: 5px;
    color: white;
}

.user-message .message-avatar {
    background: var(--accent-color);
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input input::placeholder {
    color: var(--text-muted);
}

#chat-send {
    background: var(--gradient-ai);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

#chat-send:hover {
    transform: scale(1.1);
}

/* Animations pour le chat */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

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

/* Responsive pour le chat */
@media (max-width: 768px) {
    .chat-window {
        width: 300px;
        height: 450px;
        right: -10px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .quick-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
    }
    
    .chat-icon {
        font-size: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 30px);
        height: 400px;
        right: -15px;
    }
}
