@charset "UTF-8";

/* ===================================================
   PORTFOLIO FRANCK RAYMOND - STYLE CSS OPTIMISÉ
   Design System Unifié v2.0
   =================================================== */

/* ===== VARIABLES & THEME ===== */
:root {
    /* Couleurs principales */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --cyan: #22d3ee;
    --purple: #a855f7;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    
    /* Backgrounds */
    --bg-dark: #030712;
    --bg-darker: #000000;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-solid: #0f172a;
    --bg-hover: #1e293b;
    
    /* Borders */
    --border: rgba(99, 102, 241, 0.2);
    --border-hover: rgba(99, 102, 241, 0.5);
    
    /* Textes */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --gradient-cyan: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    
    /* Fonts */
    --font-primary: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
    --shadow-glow-purple: 0 0 60px rgba(168, 85, 247, 0.3);
    --shadow-glow-cyan: 0 0 60px rgba(6, 182, 212, 0.3);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-solid: #ffffff;
    --bg-hover: #f1f5f9;
    --border: rgba(99, 102, 241, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168, 85, 247, 0.12), transparent),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(6, 182, 212, 0.05), transparent);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ===== LOADER ===== */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-code-text {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.loader-spinner,
.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-percentage {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.main-header.scrolled {
    background: rgba(3, 7, 18, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo,
.nav-brand .brand-logo {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.logo-bracket {
    color: var(--primary);
    opacity: 0.7;
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--bg-card);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

.nav-link.active {
    color: var(--text-primary) !important;
    background: var(--primary);
}

.nav-controls {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.theme-toggle,
.menu-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.code-grid-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--bg-hover) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-hover) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.name-value,
.name-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-prefix,
.name-suffix {
    color: var(--purple);
    font-size: 0.6em;
}

.hero-title {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    width: 350px;
    height: 350px;
    position: relative;
}

.profile-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.floating-badge {
    position: absolute;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: all var(--transition);
    min-width: 180px;
}

.floating-badge:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.floating-badge i {
    font-size: 1.5rem;
    color: var(--primary);
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.badge-libs {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-code);
    display: block;
}

.badge-1 { top: 0; right: -20px; }
.badge-2 { bottom: 20px; right: -20px; }
.badge-3 { bottom: 50%; left: -40px; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-more:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.section-number {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--primary);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.title-bracket,
.title-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition);
    color: var(--text-primary);
}

.achievement-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.achievement-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Code Block */
.code-block {
    background: var(--bg-card-solid);
    padding: 2rem;
    border-radius: 16px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

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

.code-line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.code-line.indent {
    padding-left: 1.5rem;
}

.code-keyword { color: var(--purple); }
.code-variable { color: var(--accent); }
.code-operator { color: var(--text-muted); }
.code-string { color: var(--green); }
.code-property { color: var(--primary-light); }
.code-brace { color: var(--text-muted); }

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity var(--transition);
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.skill-category:hover::before {
    opacity: 1;
}

.project-card .btn-more {
    margin-top: 1.5rem;
    display: inline-flex;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-family: var(--font-code);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card-solid);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}

.skill-item:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.skill-item i,
.skill-name i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-left: 2px solid var(--border);
    margin-left: 1rem;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-year {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--accent);
}

.timeline-badge {
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-company i {
    color: var(--primary);
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    border: 1px solid var(--border);
}

.timeline-achievements {
    margin-top: 1rem;
}

/* ===== VEILLE / CARDS ===== */
.veille-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.veille-card-link {
    text-decoration: none;
}

.veille-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.veille-card h3,
.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.veille-card p,
.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.read-more-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all var(--transition);
}

.veille-card:hover .read-more-arrow {
    transform: translateX(5px);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-code);
}

.contact-value:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper,
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

/* ===== FOOTER ===== */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
    background: var(--bg-card-solid);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-copyright {
    color: var(--primary);
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== PARTICLES ===== */
.particle {
    position: absolute;
    color: var(--primary);
    opacity: 0.2;
    font-family: var(--font-code);
    animation: floatParticle linear infinite;
    pointer-events: none;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .floating-badge {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        padding: 2rem;
        border-radius: 0;
        transition: left var(--transition);
        border: none;
    }

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

    .menu-toggle {
        display: flex;
    }

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

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

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

    .section-header {
        flex-wrap: wrap;
    }

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

    .page-hero .hero-image-container {
        width: 220px;
        height: 220px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    border: 2px dashed var(--border);
    border-radius: 12px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-muted);
    transition: all var(--transition);
}

.photo-placeholder:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== DETAIL PAGES ===== */
.page-hero {
    min-height: 70vh;
}

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

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
}

.page-icon {
    font-size: 4.5rem;
    color: var(--primary);
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 2rem;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ===== HAKAI VIDEO ANIMATION ===== */
.hakai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hakaiOverlayIn 0.3s ease-out;
}

@keyframes hakaiOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hakai-video-container {
    position: relative;
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
}

.hakai-video {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
}

/* Vignettage sur les bords - normal */
.hakai-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 100000;
    transition: all 0.5s ease;
}

/* Vignettage intense (T=9s) */
.hakai-vignette.intense {
    background: radial-gradient(
        ellipse at center,
        transparent 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* Lueur violette pulsante (T=3s) */
.hakai-glow-active {
    box-shadow:
        0 0 60px rgba(138, 43, 226, 0.7),
        0 0 120px rgba(138, 43, 226, 0.5),
        0 0 180px rgba(138, 43, 226, 0.3);
    animation: hakaiGlow 0.5s ease-in-out infinite alternate;
}

@keyframes hakaiGlow {
    from {
        box-shadow:
            0 0 60px rgba(138, 43, 226, 0.7),
            0 0 120px rgba(138, 43, 226, 0.5),
            0 0 180px rgba(138, 43, 226, 0.3);
    }
    to {
        box-shadow:
            0 0 100px rgba(138, 43, 226, 1),
            0 0 200px rgba(138, 43, 226, 0.7),
            0 0 300px rgba(138, 43, 226, 0.4);
    }
}

/* Tremblement léger (T=4s à T=9s) */
@keyframes shake-light {
    0% { transform: translate(1px, 1px); }
    25% { transform: translate(-2px, -1px); }
    50% { transform: translate(-1px, 2px); }
    75% { transform: translate(2px, 1px); }
    100% { transform: translate(1px, -2px); }
}

.shake-active-light {
    animation: shake-light 0.2s infinite linear;
}

/* Tremblement VIOLENT - Hakai Impact (T=9s) */
@keyframes hakai-impact {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    10% { transform: translate(-15px, -15px) rotate(-3deg); }
    20% { transform: translate(15px, 15px) rotate(3deg); }
    30% { transform: translate(-20px, 5px) rotate(-2deg); }
    40% { transform: translate(20px, -5px) rotate(2deg); }
    50% { transform: translate(-5px, 20px) rotate(-3deg); }
    60% { transform: translate(5px, -20px) rotate(3deg); }
    70% { transform: translate(-25px, 0px) rotate(-1deg); }
    80% { transform: translate(25px, 0px) rotate(1deg); }
    90% { transform: translate(0px, 10px) rotate(0deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

.shake-extreme {
    animation: hakai-impact 0.1s infinite linear;
    filter: blur(1px) brightness(1.3);
}

/* Flash de transition */
.hakai-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    pointer-events: none;
    animation: hakaiFlash 0.8s ease-out forwards;
}

@keyframes hakaiFlash {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 0; }
}
