/* ============================================
   DESIGN MODERNE - THÈME SOMBRE/CLAIR
   Version: 2025-11-19
   ============================================ */

:root {
    /* Thème sombre (par défaut) */
    --bg: #0a0d14;
    --bg-secondary: #0f1419;
    --card: #141920;
    --card-hover: #1a2028;
    --muted: #8b9db8;
    --text: #e8f1ff;
    --text-secondary: #c4d4e8;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --accent-2: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --chip: #1a2028;
    --chip-active: #252d38;
    --chip-border: #2a3441;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.12);
    --glow: 0 8px 32px rgba(96, 165, 250, 0.15);
    --glow-strong: 0 12px 48px rgba(96, 165, 250, 0.25);
    --radius: 20px;
    --radius-sm: 12px;
    --nav-h: 72px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

[data-theme="light"] {
    --bg: #f8f9fa;
    --bg-secondary: #ffffff;
    --card: #ffffff;
    --card-hover: #f1f3f5;
    --muted: #64748b;
    --text: #0f172a;
    --text-secondary: #334155;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-2: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --chip: #f1f5f9;
    --chip-active: #e2e8f0;
    --chip-border: #cbd5e1;
    --border: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.2);
    --glow: 0 8px 32px rgba(59, 130, 246, 0.12);
    --glow-strong: 0 12px 48px rgba(59, 130, 246, 0.2);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Satoshi Variable", "Satoshi", system-ui, -apple-system, 
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding-top: var(--nav-h);
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND MODERNE ANIMÉ
   ============================================ */

.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg) 0%, var(--bg-secondary) 100%);
    animation: gradientPulse 20s ease infinite;
    opacity: 1;
}

[data-theme="light"] .bg-gradient {
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 70%),
        linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

@keyframes gradientPulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) translate(-2%, 2%);
        opacity: 0.9;
    }
}

.bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(167, 139, 250, 0.2));
    top: -100px;
    left: -100px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(96, 165, 250, 0.15));
    bottom: -50px;
    right: 10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.15));
    top: 40%;
    right: -50px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(96, 165, 250, 0.25));
    bottom: 20%;
    left: 5%;
    animation-duration: 28s;
    animation-delay: -15s;
}

[data-theme="light"] .shape {
    opacity: 0.2;
}

[data-theme="light"] .shape-1 {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
}

[data-theme="light"] .shape-2 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.08));
}

[data-theme="light"] .shape-3 {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.08));
}

[data-theme="light"] .shape-4 {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.12));
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* Contenu au-dessus du background */
body > *:not(.bg-animation):not(header.nav) {
    position: relative;
    z-index: 1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.container {
    width: min(1200px, 94%);
    margin-inline: auto;
    padding-inline: 20px;
}

/* Optimisations tactiles pour mobile */
@media (hover: none) and (pointer: coarse) {
    /* Augmenter les zones de clic sur mobile */
    .menu a,
    .btn,
    .chip,
    .theme-toggle {
        min-height: 44px; /* Taille minimale recommandée par Apple/Google */
        min-width: 44px;
    }
    
    /* Désactiver les effets hover sur mobile */
    .btn:hover,
    .chip:hover,
    .project-card:hover {
        transform: none;
    }
    
    /* Améliorer la visibilité des éléments interactifs */
    .btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.section {
    padding: 60px 0;
    position: relative;
}

#filters.section {
    padding-bottom: 0;
    padding-top: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#filters.section.visible {
    opacity: 1;
    transform: translateY(0);
}

#recent.section {
    padding-top: 20px;
    padding-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#recent.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.section-sub {
    color: var(--muted);
    font-size: 16px;
    margin-top: 0;
    line-height: 1.6;
}

/* ============================================
   NAVBAR MODERNE
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 10000;
    display: flex;
    align-items: center;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: opacity 0.3s ease, var(--transition);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    margin: 0;
    padding: 0;
    opacity: 1;
}

[data-theme="light"] .nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav.scrolled {
    background: rgba(10, 13, 20, 0.85);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="light"] .nav.scrolled {
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, 94%);
    margin-inline: auto;
    padding-inline: 20px;
    position: relative;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.3px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 36px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.2));
}

.site-logo:hover {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 4px 16px rgba(96, 165, 250, 0.4));
}

[data-theme="light"] .site-logo-dark {
    display: none !important;
}

[data-theme="light"] .site-logo-light {
    display: block !important;
}

[data-theme="dark"] .site-logo-dark {
    display: block !important;
}

[data-theme="dark"] .site-logo-light {
    display: none !important;
}

.menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.menu a:hover {
    color: var(--text);
    background: rgba(96, 165, 250, 0.1);
}

[data-theme="light"] .menu a:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

.menu a.is-active {
    color: var(--accent);
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="light"] .menu a.is-active {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.menu a.is-active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 70%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: underlineGrow 0.4s ease forwards;
}

@keyframes underlineGrow {
    from {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

.menu .linkedin-link {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.menu .linkedin-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.menu .linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Toggle thème */
.theme-toggle {
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 12px;
    font-size: 20px;
}

.theme-toggle:hover {
    background: var(--chip-active);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.theme-icon {
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-icon {
    transform: rotate(180deg);
}

/* ============================================
   HERO SECTION MODERNE
   ============================================ */

.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
}

.hero-bg {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin: 0 0 24px;
    line-height: 1.1;
}

.hero-title .white {
    display: block;
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.hero-title .sub {
    display: block;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.lead {
    color: var(--text-secondary);
    margin: 20px 0 24px;
    max-width: 60ch;
    font-size: 16px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
}

.hero-actions {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}

.hero-actions .btn {
    flex-shrink: 0;
}

.hero-actions .hero-photo {
    flex-shrink: 0;
}

.hero-photo {
    width: 280px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
    border-radius: var(--radius);
    transition: var(--transition);
}

.hero-photo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 24px 80px rgba(96, 165, 250, 0.3));
}

/* ============================================
   BOUTONS MODERNES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--glow);
}

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

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

.btn.ghost:hover {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--glow-strong);
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.skill-card p {
    color: var(--muted);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   BADGES / CERTIFICATIONS (DISCRÈTE)
   ============================================ */

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin: 16px 0 0 0;
    padding-left: 0;
}

.certification-card {
    background: transparent;
    border: none;
    padding: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-card:hover {
    transform: translateY(-3px) scale(1.08);
}

.certification-image {
    width: auto;
    height: 50px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease, max-width 0.3s ease;
    filter: grayscale(30%);
}

.certification-card:hover .certification-image {
    opacity: 1;
    filter: grayscale(0%);
    height: 80px;
    max-width: 160px;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .certifications-section {
        padding: 20px 0 15px;
    }
    
    .certification-image {
        height: 40px;
        max-width: 80px;
    }
    
    .certification-card:hover .certification-image {
        height: 65px;
        max-width: 130px;
    }
    
    .certifications-grid {
        gap: 12px;
    }
}

/* Toggle langue */
.lang-toggle {
    background: var(--chip);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    color: var(--text-secondary);
}

.lang-toggle:hover {
    background: var(--chip-active);
    border-color: var(--border-hover);
    transform: scale(1.05);
    color: var(--text);
}

.lang-text {
    display: inline-block;
}

/* ============================================
   FILTERS & PROJECTS
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    margin-bottom: 0;
}

[data-theme="light"] .filter-bar {
    border: 2px solid var(--border);
    background: var(--bg-secondary);
}

.filter-title {
    color: var(--text);
    font-weight: 700;
    font-size: 16px;
}

.chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.chip {
    background: var(--chip);
    border: 1px solid var(--chip-border);
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: var(--transition);
    user-select: none;
    cursor: pointer;
}

.chip:hover {
    background: var(--chip-active);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--glow);
}

/* ============================================
   PROJECTS GRID
   ============================================ */

.window {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .window {
    border: 2px solid var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.window-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.win-path {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

.badge {
    background: var(--chip);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px;
    position: relative;
    min-height: 200px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--glow-strong);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.project-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.project-info {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.project-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.project-desc {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tags span {
    background: var(--chip);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.contact-list li {
    margin-bottom: 16px;
    font-size: 16px;
}

.form {
    display: grid;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

input,
textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
    background: var(--card);
}

.form-success {
    margin: 16px 0 0;
    color: var(--accent);
    display: none;
    font-weight: 600;
}

.form-success.show {
    display: block;
    animation: fadeUp 0.4s ease;
}

.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: "";
    width: 18px;
    height: 18px;
    margin-left: 8px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer a {
    color: var(--muted);
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    [data-entrance] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    [data-entrance].in {
        opacity: 1;
        transform: none;
    }

    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
        transition-delay: var(--d, 0s);
    }

    [data-reveal].in {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-entrance],
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-right {
        order: -1;
    }

    .hero-photo {
        width: 280px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    /* Navigation tablette */
    .nav {
        height: 70px;
    }
    
    .nav-inner {
        padding-inline: 20px;
    }
    
    .menu {
        gap: 4px;
    }

    .menu a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .container {
        padding-inline: 20px;
    }

    /* Hero tablette */
    .hero {
        padding: 60px 0 50px;
    }
    
    .hero-title .white {
        font-size: clamp(32px, 7vw, 48px);
    }
    
    .hero-title .sub {
        font-size: clamp(24px, 5vw, 36px);
    }
    
    .hero-photo {
        width: 240px;
    }
    
    .hero-actions {
        gap: 16px;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 24px;
    }

    /* Projets */
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .project-card {
        padding: 24px;
    }

    /* Filtres */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .chips {
        flex-wrap: wrap;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form {
        margin-top: 24px;
    }
    
    /* Footer */
    .footer {
        padding: 36px 0;
    }
    
    .footer-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    /* Navigation mobile */
    .nav {
        height: 64px;
        padding: 0;
    }
    
    .nav-inner {
        padding-inline: 16px;
    }
    
    .brand img {
        height: 28px;
    }
    
    .menu {
        gap: 2px;
    }
    
    .menu a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .menu .linkedin-link {
        padding: 6px;
        width: 32px;
        height: 32px;
    }
    
    .menu .linkedin-link svg {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
        margin-left: 8px;
    }
    
    /* Hero mobile */
    body {
        padding-top: 64px;
    }
    
    .hero {
        padding: 40px 0 30px;
        min-height: auto;
    }
    
    .hero-title .white {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.2;
    }

    .hero-title .sub {
        font-size: clamp(20px, 6vw, 32px);
        margin-top: 8px;
    }
    
    .lead {
        font-size: 14px;
        margin: 16px 0 20px;
        line-height: 1.6;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    
    /* Photo en premier sur mobile */
    .hero-photo {
        width: 200px;
        margin: 0 auto;
        order: -1; /* Photo en premier */
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        order: 1; /* Boutons après la photo */
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .container {
        padding-inline: 16px;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 8px;
    }
    
    .section-sub {
        font-size: 14px;
        margin-top: 0;
    }

    /* Filtres */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-title {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .chips {
        gap: 6px;
    }
    
    .chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Projets */
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-card-title {
        font-size: 18px;
    }
    
    .project-card-meta {
        font-size: 13px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .form {
        margin-top: 24px;
    }
    
    .form label {
        font-size: 14px;
    }
    
    .form input,
    .form textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 12px;
    }

    /* Footer */
    .footer {
        padding: 32px 0;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        font-size: 14px;
    }

    /* Boutons */
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Scroll to top */
    .scroll-to-top {
        bottom: 80px !important;
        right: 16px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    /* Background shapes - réduire sur mobile */
    .bg-shapes .shape {
        opacity: 0.3;
    }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

::selection {
    background: rgba(96, 165, 250, 0.3);
    color: var(--text);
}

/* Scrollbar moderne */
@media (hover: hover) and (pointer: fine) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--chip-border) transparent;
    }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--chip-border);
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ============================================
   BOUTON REMONTER EN HAUT
   ============================================ */

button.scroll-to-top,
.scroll-to-top {
    position: fixed !important;
    bottom: 120px !important;
    right: 24px !important;
    left: auto !important;
    top: auto !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: rgba(96, 165, 250, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
    border-radius: 50% !important;
    color: var(--accent) !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10001 !important;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    text-align: center !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    background: rgba(96, 165, 250, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

[data-theme="light"] .scroll-to-top {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent);
}

[data-theme="light"] .scroll-to-top:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 100px !important;
        right: 16px !important;
        left: auto !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* Optimisations performance mobile */
@media (max-width: 768px) {
    /* Réduire les animations lourdes sur mobile */
    .bg-shapes .shape {
        animation-duration: 20s;
    }
    
    /* Optimiser les transitions */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Réduire les ombres pour améliorer les performances */
    .project-card,
    .skill-card,
    .filter-bar {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }
}
