/* Custom Styles for Portfolio - Enhanced Version */

:root {
    --primary: #1B4DFF;
    --secondary: #143ED6;
    --accent: #FF7A1A;
    --orange: #FF7A1A;
    --orange-light: #FF9A4A;
    --orange-dark: #E96A12;
    --orange-accent: #FF7A1A;
    --dark: #0B1220;
    --light: #F8FAFC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1F2937;
    --gray-900: #0B1220;
    --surface: #FFFFFF;
    --surface-muted: #F8FAFC;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 32px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.16);
    --focus-ring: 0 0 0 3px rgba(27, 77, 255, 0.25);
    --transition-fast: 200ms ease-out;
    --transition-base: 280ms ease-out;
}

/* Global Enhancements */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Typography - Lighter font weights for better readability */
strong {
    font-weight: 500;
}

.page-section ion-icon[name="checkmark-circle"] {
    color: var(--primary);
}

.profile-photo {
    transition: transform 0.25s ease-out;
    transform-origin: center;
    will-change: transform;
}

.profile-photo:hover {
    transform: scale(1.08);
}

.profile-photo__image {
    display: block;
}

.profile-photo__status {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(27, 77, 255, 0.12);
    border: 1px solid rgba(27, 77, 255, 0.32);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(27, 77, 255, 0.18);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.profile-photo__status:hover {
    transform: translateY(-2px);
    background: rgba(27, 77, 255, 0.2);
    box-shadow: 0 10px 22px rgba(27, 77, 255, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .profile-photo {
        transition: none;
    }
    .profile-photo__status {
        transition: none;
    }
}

/* Orange accent utilities */
.text-orange {
    color: var(--orange);
}

.bg-orange-50 {
    background-color: rgba(255, 122, 26, 0.1);
}

.border-orange {
    border-color: var(--orange);
}

.hover\:bg-orange-50:hover {
    background-color: rgba(255, 122, 26, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-xs), var(--focus-ring);
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-accent {
    background: var(--orange);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: rgba(27, 77, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(27, 77, 255, 0.2);
}

.btn-ghost:hover {
    background: rgba(27, 77, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.btn--sm {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
}

/* Project badges */
.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: var(--primary);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.project-badge--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.project-badge--accent {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}

.btn--lg {
    min-height: 52px;
    padding: 12px 24px;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(27, 77, 255, 0.04) 0%, transparent 100%);
}

.hero-tagline {
    display: inline-block;
    padding: 8px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(27, 77, 255, 0.1);
    border: 1px solid rgba(27, 77, 255, 0.2);
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.hero-title--accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-subtitle strong {
    color: var(--gray-900);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card--lift:hover {
    transform: translateY(-6px);
    border-color: rgba(27, 77, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(27, 77, 255, 0.08);
    border: 1px solid rgba(27, 77, 255, 0.18);
    border-radius: 999px;
}

.chip--accent {
    color: var(--orange-dark);
    background: rgba(255, 122, 26, 0.12);
    border-color: rgba(255, 122, 26, 0.28);
}

/* Icon badges */
.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 77, 255, 0.12);
    border: 1px solid rgba(27, 77, 255, 0.2);
    border-radius: var(--radius-md);
}

.icon-badge--accent {
    background: rgba(255, 122, 26, 0.12);
    border-color: rgba(255, 122, 26, 0.25);
}

/* Social icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(27, 77, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

/* Form elements */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--gray-900);
    font-size: 14px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(27, 77, 255, 0.5);
    box-shadow: var(--focus-ring);
}

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

/* Form message */
#form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}

#form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
}

/* Navigation Header - Style Professionnel et Simple */
.navbar-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.menu-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 77, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

#sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
}

/* Sidebar profile */
.sidebar-profile {
    text-align: center;
    margin-bottom: 32px;
}

.sidebar-profile h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.sidebar-profile p {
    font-size: 13px;
    color: var(--gray-500);
}

/* Sidebar contact info */
.sidebar-contact {
    margin-bottom: 32px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    padding: 8px 0;
    color: var(--gray-700);
    transition: color var(--transition-fast);
}

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

.sidebar-contact-item ion-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Sidebar section title */
.sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-align: center;
}

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

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

.navbar-list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
}

.nav-link.active {
    color: var(--gray-900);
    background-color: var(--gray-200);
    font-weight: 500;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: inherit;
    transition: color 0.2s ease;
}

.nav-text {
    position: relative;
    white-space: nowrap;
}

.nav-indicator {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-list {
        gap: 0.125rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.75rem 0;
    }
    
    .navbar-list::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-icon {
        font-size: 1.375rem;
    }
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-section h2 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.page-section h3 {
    font-size: 24px;
    line-height: 1.3;
}

.page-section h4 {
    font-size: 18px;
    line-height: 1.4;
}

.page-section .bg-white.p-6.rounded-xl,
.page-section .bg-white.p-6.rounded-2xl {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.page-section .bg-white.p-6.rounded-xl:hover,
.page-section .bg-white.p-6.rounded-2xl:hover {
    border-color: rgba(27, 77, 255, 0.2);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
    .page-section h2 {
        font-size: 24px;
    }

    .page-section h3 {
        font-size: 18px;
    }

    .page-section h4 {
        font-size: 16px;
    }
}

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

/* Carousel Enhancements */
.carousel-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
}

.carousel-nav {
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.carousel-pagination {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-dot:hover {
    background: var(--gray-400);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: var(--radius-sm);
}

/* Project Cards - Enhanced with More Height */
.project-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base);
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
}

/* Image Container - Taller for Mobile Apps */
.project-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.project-card:hover .project-image-container img {
    transform: scale(1.05);
}

/* Navigation Arrows - Enhanced */
.project-nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: transform var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
    z-index: 10;
}

.project-image-container:hover .project-nav-arrows {
    opacity: 1;
}

.project-nav-arrows.left {
    left: 16px;
}

.project-nav-arrows.right {
    right: 16px;
}

.project-nav-arrows:hover {
    background: rgba(27, 77, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
}

.project-nav-arrows:active {
    transform: translateY(-50%) scale(0.95);
}

.image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Project Card Content */
.project-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--gray-900);
    line-height: 1.4;
}

.project-card-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* Filter Buttons - Enhanced */
.filter-btn {
    border-radius: 999px;
    transition: transform var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    font-weight: 500;
}

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

.filter-btn.active {
    background: var(--orange);
    color: #ffffff;
    box-shadow: var(--shadow-xs);
}

.filter-btn:not(.active) {
    background: var(--surface);
    border: 1px solid var(--border);
}

.filter-btn:not(.active):hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* Portfolio Tabs */
.portfolio-tab {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--gray-700);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.portfolio-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(27, 77, 255, 0.25);
    box-shadow: var(--shadow-xs);
}

.portfolio-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Video Modal - Compact Phone Frame for Mobile Apps */
#video-modal {
    display: none;
    backdrop-filter: blur(8px);
}

#video-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.video-modal-container {
    position: relative;
    width: 600px;
    max-width: 95vw;
    min-width: 300px;
    resize: none;
}

.phone-frame {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 8px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

#video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.video-modal-close {
    transition: all 0.3s;
    cursor: pointer;
}

.video-modal-close:hover {
    transform: scale(1.15);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .video-modal-container {
        width: 400px;
    }
    
    .phone-frame {
        padding: 14px;
        border-radius: 36px;
    }
    
    .phone-screen {
        border-radius: 26px;
    }
    
    .phone-frame::before {
        width: 70px;
        height: 7px;
    }
}

@media (min-width: 768px) {
    .video-modal-container {
        width: 650px;
    }
    
    .phone-frame {
        padding: 20px;
        border-radius: 44px;
    }
    
    .phone-screen {
        border-radius: 32px;
    }
    
    .phone-frame::before {
        width: 100px;
        height: 9px;
    }
}

@media (min-width: 1024px) {
    .video-modal-container {
        width: 700px;
    }
    
    .phone-frame {
        padding: 24px;
        border-radius: 48px;
    }
    
    .phone-screen {
        border-radius: 34px;
    }
    
    .phone-frame::before {
        width: 120px;
        height: 10px;
    }
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: nwse-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.2s;
}

.resize-handle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.resize-handle:active {
    transform: scale(0.95);
}

.resize-handle svg {
    width: 16px;
    height: 16px;
    color: #666;
    pointer-events: none;
}

.resize-handle:hover svg {
    color: #333;
}

/* Mobile: hide resize handle on touch devices */
@media (max-width: 768px) {
    .resize-handle {
        display: none;
    }
}

/* Section Headers */
h2 {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-slide {
        flex-direction: column;
    }
    
    .project-nav-arrows {
        opacity: 1;
        width: 36px;
        height: 36px;
    }
    
    .project-image-container {
        min-height: 400px;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .project-image-container {
        min-height: 550px;
        height: 550px;
    }
}

/* Gradient Backgrounds */
.gradient-primary {
    background: var(--primary);
}

.gradient-accent {
    background: var(--orange);
}

/* Video Presentation Section */
.video-presentation-container {
    position: relative;
    background: #000;
}

.video-presentation-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    opacity: 0;
    transition: opacity 0.3s;
}

.video-presentation-container:hover .video-overlay {
    opacity: 1;
}

/* Gallery Section */
.gallery-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Visual Expertise Section */
.visual-expertise-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visual-expertise-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

/* Data dashboard header (INSEE bloc) */
.data-dashboard-header {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.16), transparent 60%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 60%),
                #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

/* Data KPI cards – compact, dashboard-like */
.data-kpi-card {
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.data-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: rgba(148, 163, 184, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.data-kpi-card .kpi-number {
    font-size: 20px;
    font-weight: 600;
}

.data-kpi-card .kpi-label {
    font-size: 12px;
    font-weight: 500;
}

.data-kpi-card .kpi-sublabel {
    font-size: 10px;
    color: var(--gray-500);
}

/* Data Dashboard - chart cards inspirées UI de planning */
.data-chart-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.data-chart-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

.data-chart-card h4 {
    letter-spacing: 0.02em;
    text-transform: none;
}

.data-chart-card p {
    opacity: 0.85;
    font-size: 11px;
}

/* Chart containers - compact dimensions */
.chart-container {
    position: relative;
    height: 200px;
    min-height: 160px;
    max-height: 220px;
    overflow: hidden;
}

.chart-container-sm {
    position: relative;
    height: 160px;
    min-height: 140px;
    max-height: 180px;
    overflow: hidden;
}

.chart-container-doughnut {
    height: 140px;
    min-height: 120px;
    max-height: 160px;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .video-presentation-container {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        aspect-ratio: 16/9;
    }
}

/* Aurify Logo - Style simple sans animation */
.logo-container {
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
}

.aurify-logo {
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* KPI Stats Cards */
.kpi-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    box-shadow: var(--shadow-xs);
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(27, 77, 255, 0.2);
}

.kpi-card-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.kpi-card-secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #fff4ec 100%);
}

.kpi-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card-primary .kpi-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.kpi-card-secondary .kpi-icon-wrapper {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
}

.kpi-card:hover .kpi-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.kpi-icon {
    font-size: 2.5rem;
    color: white;
    z-index: 1;
    transition: transform 0.4s;
}

.kpi-card:hover .kpi-icon {
    transform: scale(1.1);
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-number {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #6A8BFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s;
}

.kpi-card-secondary .kpi-number {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-card:hover .kpi-number {
    transform: scale(1.05);
}

.kpi-label {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.kpi-sublabel {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.kpi-decoration {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 77, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.kpi-card-secondary .kpi-decoration {
    background: radial-gradient(circle, rgba(255, 122, 26, 0.12) 0%, transparent 70%);
}

.kpi-card:hover .kpi-decoration {
    transform: scale(1.5);
    opacity: 0.5;
}

/* Responsive KPI Cards */
@media (max-width: 768px) {
    .kpi-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .kpi-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .kpi-icon {
        font-size: 2rem;
    }
    
    .kpi-number {
        font-size: 2.5rem;
    }
    
    .kpi-label {
        font-size: 1.125rem;
    }
}

/* Ma Stack Section - Technologies Phares */
.stack-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 77, 255, 0.06) 0%, rgba(255, 122, 26, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Couleurs spécifiques par technologie au hover */
.stack-card[data-tech="react-native"]:hover::before {
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.15) 0%, rgba(0, 216, 255, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="react-native"]:hover {
    box-shadow: 0 20px 40px rgba(97, 218, 251, 0.2);
}

.stack-card[data-tech="flutter"]:hover::before {
    background: linear-gradient(135deg, rgba(97, 202, 255, 0.15) 0%, rgba(0, 122, 255, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="flutter"]:hover {
    box-shadow: 0 20px 40px rgba(97, 202, 255, 0.2);
}

.stack-card[data-tech="kotlin"]:hover::before {
    background: linear-gradient(135deg, rgba(125, 82, 196, 0.15) 0%, rgba(169, 120, 255, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="kotlin"]:hover {
    box-shadow: 0 20px 40px rgba(125, 82, 196, 0.2);
}

.stack-card[data-tech="nextjs"]:hover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 1;
}

.stack-card[data-tech="nextjs"]:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stack-card[data-tech="fastapi"]:hover::before {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.15) 0%, rgba(0, 200, 180, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="fastapi"]:hover {
    box-shadow: 0 20px 40px rgba(0, 150, 136, 0.2);
}

.stack-card[data-tech="flask"]:hover::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 1;
}

.stack-card[data-tech="flask"]:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stack-card[data-tech="supabase"]:hover::before {
    background: linear-gradient(135deg, rgba(35, 193, 158, 0.15) 0%, rgba(46, 213, 115, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="supabase"]:hover {
    box-shadow: 0 20px 40px rgba(35, 193, 158, 0.2);
}

.stack-card[data-tech="firebase"]:hover::before {
    background: linear-gradient(135deg, rgba(255, 202, 40, 0.15) 0%, rgba(255, 167, 38, 0.1) 100%);
    opacity: 1;
}

.stack-card[data-tech="firebase"]:hover {
    box-shadow: 0 20px 40px rgba(255, 202, 40, 0.2);
}

.stack-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(27, 77, 255, 0.2);
    box-shadow: var(--shadow-md);
}

.stack-image-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stack-card:hover .stack-image-wrapper {
    transform: scale(1.15) rotate(5deg);
}

.stack-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stack-card:hover .stack-image {
    filter: drop-shadow(0 8px 16px rgba(27, 77, 255, 0.3));
    transform: scale(1.1);
}

/* Supabase logo special handling - Le logo Supabase est déjà coloré */
.stack-image.supabase-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stack-card:hover .stack-image.supabase-logo {
    filter: drop-shadow(0 8px 16px rgba(35, 193, 158, 0.4));
}

.stack-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin: 0;
}

.stack-card:hover .stack-name {
    transform: translateY(-2px);
}

/* Couleurs spécifiques pour les noms de technologies */
.stack-card[data-tech="react-native"]:hover .stack-name {
    color: #61DAFB;
}

.stack-card[data-tech="flutter"]:hover .stack-name {
    color: #02569B;
}

.stack-card[data-tech="kotlin"]:hover .stack-name {
    color: #7F52FF;
}

.stack-card[data-tech="nextjs"]:hover .stack-name {
    color: #000000;
}

.stack-card[data-tech="fastapi"]:hover .stack-name {
    color: #009688;
}

.stack-card[data-tech="flask"]:hover .stack-name {
    color: #000000;
}

.stack-card[data-tech="supabase"]:hover .stack-name {
    color: #23C19E;
}

.stack-card[data-tech="firebase"]:hover .stack-name {
    color: #FFCA28;
}

/* Responsive Stack Cards */
@media (max-width: 768px) {
    .stack-card {
        padding: 1.5rem 1rem;
    }
    
    .stack-image-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .stack-name {
        font-size: 0.8125rem;
    }
}

@media (min-width: 1024px) {
    .stack-image-wrapper {
        width: 96px;
        height: 96px;
    }
    
    .stack-name {
        font-size: 1rem;
    }
}

/* Integration Cards Styles */
.integration-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 77, 255, 0.06) 0%, rgba(255, 122, 26, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.integration-card:hover::before {
    opacity: 1;
}

.integration-logo-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-md);
    padding: 12px;
    transition: all 0.3s ease;
}

.integration-card:hover .integration-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(27, 77, 255, 0.2);
}

.integration-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.integration-card:hover .integration-logo {
    filter: drop-shadow(0 4px 8px rgba(27, 77, 255, 0.3));
}

.integration-logo.supabase-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.integration-flow {
    border: 1px solid var(--border);
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.integration-flow span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.integration-card:hover .integration-flow {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f6ff 0%, #e8efff 100%);
}

/* Responsive Integration Cards */
@media (max-width: 768px) {
    .integration-logo-wrapper {
        width: 56px;
        height: 56px;
        padding: 10px;
    }
    
    .integration-card {
        padding: 1.5rem;
    }
    
    .integration-flow {
        padding: 1rem;
    }
    
    .integration-flow .flex {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .integration-logo-wrapper {
        width: 80px;
        height: 80px;
        padding: 16px;
    }
}
