/* ============================================
   Joseph PAREDES Portfolio - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --bg: #050508;
    --bg2: #0a0a0f;
    --bg3: #111118;
    --accent: #6366f1;
    --accent2: #8b5cf6;
    --text: #ffffff;
    --text2: #a1a1aa;
    --text3: #71717a;
    --border: rgba(255,255,255,0.08);
    --glass: rgba(255,255,255,0.03);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

html.light {
    --bg: #f8fafc;
    --bg2: #f1f5f9;
    --bg3: #e2e8f0;
    --text: #0f172a;
    --text2: #64748b;
    --text3: #94a3b8;
    --border: rgba(0,0,0,0.08);
    --glass: rgba(255,255,255,0.7);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s, color 0.5s;
}

/* Utility Classes - Optimisé pour performance */
.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass {
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
}

html.light .glass {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.08);
}

.hidden {
    display: none !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.5s;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(5,5,8,0.9);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
}

html.light .navbar.scrolled {
    background: rgba(248,250,252,0.9);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

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

.nav-link:hover::after {
    width: 80%;
}

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

/* Language Dropdown */
.lang-dropdown-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    border-color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: var(--bg2);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    overflow: hidden;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    color: var(--text);
}

.lang-option:hover {
    background: rgba(99,102,241,0.2);
}

.lang-option.active {
    background: rgba(99,102,241,0.3);
    color: var(--accent);
}

/* Theme Toggle Button */
.theme-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-btn:hover {
    border-color: var(--accent);
}

/* macOS Appearance Icon */
.appearance-icon {
    width: 22px;
    height: 22px;
    position: relative;
}

.appearance-icon .circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--text);
}

.appearance-icon .half {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
}

.appearance-icon .half-left {
    left: 0;
    background: var(--text);
}

.appearance-icon .half-right {
    right: 0;
    background: var(--bg);
}

.appearance-icon .divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--text);
    transform: translateX(-50%);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
}

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

.mobile-menu-btn svg {
    color: var(--text);
    stroke: var(--text);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
}

.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg2);
    padding: 6rem 2rem 2rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: pulse 4s infinite;
}

.hero-glow-1 {
    top: 20%;
    left: 20%;
    background: var(--accent);
}

.hero-glow-2 {
    bottom: 20%;
    right: 20%;
    background: var(--accent2);
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text2);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(99,102,241,0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.w-full {
    width: 100%;
}

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

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text3);
}

.scroll-arrow {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}

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

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

.section-alt {
    background: var(--bg2);
}

.section-header {
    margin-bottom: 3rem;
}

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

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-line {
    width: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 1s ease-out;
    margin-top: 1rem;
}

.section-line.animate {
    width: 80px;
}

.section-line.center {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text2);
    margin-top: 1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient);
    animation: spin 8s linear infinite;
}

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

.profile-bg {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg);
}

.profile-img-wrapper {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.available-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50px;
}

.led-available {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-led 2s infinite;
}

@keyframes pulse-led {
    0%, 100% { box-shadow: 0 0 5px #22c55e, 0 0 10px #22c55e; }
    50% { box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e; }
}

.available-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #22c55e;
}

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

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-card {
    padding: 1rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 12px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 500;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
    top: 1.2rem;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -7px;
}

.timeline-card {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-card:hover {
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

.timeline-date {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text2);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Desktop: hover to expand */
@media (min-width: 769px) {
    .timeline-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        opacity: 0;
    }
    
    .timeline-card:hover .timeline-details {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.75rem;
    }
    
    .timeline-card .hint {
        display: none;
    }
}

/* Mobile/Tablet: tap to expand */
@media (max-width: 768px) {
    .timeline-details {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        opacity: 0;
    }
    
    .timeline-card.active .timeline-details {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.75rem;
    }
    
    .timeline-card .hint {
        font-size: 0.75rem;
        color: var(--accent);
        margin-top: 0.5rem;
        opacity: 0.7;
    }
    
    .timeline-card.active .hint {
        display: none;
    }
}

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

.skill-card {
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: rgba(99,102,241,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.skill-title {
    font-weight: 600;
}

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

.skill-tag {
    padding: 0.4rem 0.8rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text2);
}

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

.certs-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.certs-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.cert-tag {
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
}

/* ============================================
   PHOTOGRAPHY
   ============================================ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.photo-desc {
    font-size: 0.9rem;
    color: var(--text2);
}

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

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50px;
}

.stats-numbers {
    display: flex;
    gap: 0.5rem;
}

.stat-num {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

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

/* ============================================
   VIDEO
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.video-card:hover {
    border-color: var(--accent);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    transition: all 0.3s;
}

.video-thumbnail:hover .video-overlay {
    background: rgba(0,0,0,0.2);
}

.play-btn {
    width: 4rem;
    height: 4rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-thumbnail:hover .play-btn {
    transform: scale(1.1);
}

.play-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
    margin-left: 0.25rem;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-desc {
    font-size: 0.9rem;
    color: var(--text2);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(99,102,241,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
}

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

.contact-form-wrapper {
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    color: var(--text2);
}

.form-input,
.form-textarea {
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-title {
    font-size: 0.875rem;
    color: var(--text2);
}

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

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text3);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* ============================================
   LIGHTBOX - SUPPRIMÉ (Optimisation Performance)
   Les photos et vidéos sont maintenant externalisées
   ============================================ */

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 200;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--glass);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--accent);
}

.back-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    /* backdrop-filter: blur() - SUPPRIMÉ pour optimisation performance */
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg2);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

html.light .modal-content {
    background: var(--bg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-close {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    border-color: var(--accent);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text2);
    line-height: 1.7;
}

/* ============================================
   FLASH MESSAGE
   ============================================ */
.flash-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 1rem 2rem;
    border-radius: 12px;
    z-index: 200;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.flash-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.flash-message.success {
    background: rgba(34,197,94,0.9);
    color: #fff;
    border: 1px solid #22c55e;
}

.flash-message.error {
    background: rgba(239,68,68,0.9);
    color: #fff;
    border: 1px solid #ef4444;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.animate-slide-left {
    animation: slideFromLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideFromRight 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideFromBottom 0.8s ease-out forwards;
}

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

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CORRECTION SAFARI - SECTION SKILLS
   ============================================ */

/* Force Safari à respecter la taille des icônes dans les grids/flexbox */
.skill-icon svg, 
.skill-icon img,
.skill-icon i {
    display: block;
    flex-shrink: 0; /* Empêche Safari de compresser l'icône à 0 pixels */
    width: 24px; 
    height: 24px;
    max-width: 100%;
}

/* Assure que le SVG a un viewBox pour Safari */
.skill-icon svg {
    view-box: 0 0 24 24;
}

/* Alignement pour Safari */
.skill-header {
    align-items: center;
}

/* ============================================
   MODE ÉCONOMIE D'ÉNERGIE (Low Power Mode)
   ============================================ */

.low-power-mode .glass,
.low-power-mode [style*="backdrop-filter"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.low-power-mode .cursor,
.low-power-mode .trail,
.low-power-mode #particles {
    display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: -7px !important;
        right: auto !important;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .cursor, .trail {
        display: none !important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* Touch devices */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .cursor, .trail {
        display: none !important;
    }
}
   width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

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

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
