        body {
            font-family: 'Inter', sans-serif;
        }

        .hero-title {
            font-family: 'Barlow', 'Inter', sans-serif;
        }

        /* Slightly reduce hero title size on narrow phones to prevent clipping */
        @media (max-width: 375px) {
            .hero-title {
                font-size: 3.3rem !important;
                /* Slightly smaller than text-6xl (3.75rem/60px) */
            }
        }

        .gold-gradient {
            /* Rich metallic gold gradient (less orange) */
            background: linear-gradient(90deg, #8b6b1f 0%, #d4af37 40%, #f6e6a8 65%, #8b6b1f 100%);
        }

        .gold-text-gradient {
            /* Soft light-to-deep gold for headings */
            background: linear-gradient(to right, #f6e6a8, #d4af37);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .glass-panel {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }

        .liquid-glass-nav {
            background: rgba(8, 11, 20, 0.4);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            position: relative;
        }

        /* Resizable Navbar Styles */
        .resizable-nav-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            width: 100%;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-container.scrolled {
            transform: translateY(20px);
        }

        .resizable-nav-body {
            position: relative;
            z-index: 60;
            margin: 0 auto;
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            padding: 0 1.5rem;
            height: 6rem;
            background: rgba(8, 11, 20, 0.4);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            border-radius: 0;
            gap: 1.5rem;
            overflow: hidden;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled {
            width: 65%;
            min-width: 800px;
            max-width: 100%;
            height: 5rem;
            justify-content: center;
            background: rgba(8, 11, 20, 0.4);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 24px rgba(34, 42, 53, 0.06), 0 1px 1px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(34, 42, 53, 0.04), 0 0 4px rgba(34, 42, 53, 0.08), 0 16px 68px rgba(47, 48, 55, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
            border-radius: 9999px;
            padding: 0 1rem;
            gap: 1.5rem;
            overflow: hidden;
        }

        /* Scale down elements when navbar is scrolled */
        .nav-logo img {
            transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .nav-logo img {
            height: 2.75rem;
            /* h-11 instead of h-9 (bigger) */
        }

        .nav-logo span.text-xl {
            transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), line-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .nav-logo span.text-xl {
            font-size: 1.25rem;
            /* text-xl instead of text-lg (bigger) */
            line-height: 1.75rem;
        }

        .nav-logo span.text-base {
            transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), line-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .nav-logo span.text-base {
            font-size: 0.9375rem;
            /* slightly bigger than text-sm */
            line-height: 1.375rem;
        }

        .nav-logo {
            position: relative;
            z-index: 20;
            flex: 0 0 auto;
            flex-shrink: 1;
            min-width: 0;
            max-width: 100%;
            margin-right: 3rem;
            transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .nav-logo>div {
            min-width: 0;
            overflow: hidden;
        }

        @media (hover: hover) {
            .nav-logo:hover {
                transform: scale(1.05);
            }

            .mobile-nav-link:hover {
                color: #d4af37 !important;
            }
        }

        .nav-logo:active {
            transform: scale(1.02);
        }

        .resizable-nav-body.scrolled .nav-logo {
            gap: 0.625rem;
            /* gap-2.5 instead of gap-2 (slightly bigger) */
            margin-right: 0;
            /* Remove margin when centered */
        }

        .nav-links-container {
            flex: 0 0 auto;
            flex-shrink: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 2.5rem;
            transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .nav-links-container {
            gap: 2rem;
            /* gap-8 instead of gap-6 (bigger) */
        }

        .nav-links-container a {
            transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), line-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, text-shadow 0.2s ease;
            position: relative;
            display: inline-block;
            white-space: nowrap;
            flex-shrink: 0;
        }

        @media (hover: hover) {
            .nav-links-container a:hover {
                transform: translateY(-2px) scale(1.05);
                color: #d4af37 !important;
                text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
            }
        }

        .nav-links-container a:active {
            transform: translateY(0) scale(1.02);
        }

        .resizable-nav-body.scrolled .nav-links-container a {
            font-size: 1rem;
            /* text-base instead of text-sm (bigger) */
            line-height: 1.5rem;
        }

        .spinning-border-button {
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .spinning-border-button {
            transform: scale(0.95);
            /* 0.95 instead of 0.85 (bigger) */
        }

        .spinning-border-button-inner {
            transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .spinning-border-button-inner {
            padding: 0.625rem 1.75rem;
            /* bigger padding */
            font-size: 0.8125rem;
            /* slightly bigger font */
        }

        .phone-container {
            gap: 0.75rem;
            /* Add gap when extended */
            transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            text-decoration: none;
        }

        .phone-container:hover {
            text-decoration: none;
        }

        @media (hover: hover) {
            .phone-container:hover {
                transform: translateY(-2px) scale(1.05);
            }

            .phone-container:hover i {
                color: #f6e6a8 !important;
                transform: rotate(15deg) scale(1.1);
            }
        }

        .phone-container:active {
            transform: translateY(0) scale(1.02);
        }

        .resizable-nav-body.scrolled .phone-container {
            gap: 0.5rem !important;
            /* gap-2 instead of gap-8 */
        }

        /* Adjust CTA and phone container when scrolled */
        .cta-phone-container {
            position: relative;
            z-index: 20;
            flex: 0 0 auto;
            flex-shrink: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 2rem;
            transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .cta-phone-container {
            gap: 1rem;
        }

        .phone-container i {
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resizable-nav-body.scrolled .phone-container i {
            width: 1.125rem;
            /* w-4.5 instead of w-4 (bigger) */
            height: 1.125rem;
            /* h-4.5 instead of h-4 (bigger) */
        }

        .phone-container span {
            transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }

        .resizable-nav-body.scrolled .phone-container span {
            font-size: 0.9375rem;
            /* slightly bigger than text-sm */
        }

        /* Responsive adjustments for smaller desktop widths */
        @media (min-width: 1025px) and (max-width: 1400px) {
            .resizable-nav-body.scrolled {
                width: 75%;
                min-width: 700px;
            }

            .resizable-nav-body.scrolled .nav-links-container {
                gap: 1.5rem;
            }

            .resizable-nav-body.scrolled .cta-phone-container {
                gap: 0.75rem;
            }
        }

        @media (min-width: 1025px) and (max-width: 1200px) {
            .resizable-nav-body.scrolled {
                width: 85%;
                min-width: 600px;
            }

            .resizable-nav-body.scrolled .nav-links-container {
                gap: 1.25rem;
            }

            .resizable-nav-body.scrolled .nav-links-container a {
                font-size: 0.9375rem;
            }
        }

        @media (max-width: 1024px) {
            .resizable-nav-body {
                justify-content: space-between;
            }

            .resizable-nav-body.scrolled {
                width: 90%;
                min-width: auto;
                padding-left: 2.5rem;
                padding-right: 2.5rem;
                border-radius: 1.5rem;
            }

            .mobile-menu-button {
                margin-left: auto;
            }

            /* Hide navigation links and CTA/phone on tablet and mobile */
            .nav-links-container {
                display: none !important;
            }

            .cta-phone-container {
                display: none !important;
            }
        }

        /* Mobile Menu Styles - DIVALPO structure with CARREL colors */
        .liquid-glass-form {
            background: rgba(8, 11, 20, 0.6);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            border: 1px solid rgba(212, 175, 55, 0.2);
            box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
            position: relative;
        }

        @keyframes breathe {

            0%,
            100% {
                opacity: 0.5;
            }

            50% {
                opacity: 1;
            }
        }

        .liquid-glass-form::before {
            content: '';
            position: absolute;
            inset: -3px;
            border: 2px solid rgba(255, 250, 220, 0.7);
            border-radius: 1rem;
            mask: radial-gradient(ellipse 350px 350px at 0% 0%, black 50%, transparent 90%);
            -webkit-mask: radial-gradient(ellipse 350px 350px at 0% 0%, black 50%, transparent 90%);
            box-shadow:
                0 0 30px rgba(255, 250, 220, 0.6),
                0 0 60px rgba(255, 250, 220, 0.5),
                0 0 90px rgba(255, 250, 220, 0.4);
            z-index: 1;
            pointer-events: none;
            animation: breathe 3s ease-in-out infinite;
        }

        .liquid-glass-form::after {
            content: '';
            position: absolute;
            inset: -3px;
            border: 2px solid rgba(255, 250, 220, 0.7);
            border-radius: 1rem;
            mask: radial-gradient(ellipse 350px 350px at 100% 100%, black 50%, transparent 90%);
            -webkit-mask: radial-gradient(ellipse 350px 350px at 100% 100%, black 50%, transparent 90%);
            box-shadow:
                0 0 30px rgba(255, 250, 220, 0.6),
                0 0 60px rgba(255, 250, 220, 0.5),
                0 0 90px rgba(255, 250, 220, 0.4);
            z-index: 1;
            pointer-events: none;
            animation: breathe 3s ease-in-out infinite;
        }

        /* Smooth scroll offset for fixed navigation */
        html {
            scroll-padding-top: 6rem;
        }

        /* Hero gradient fade position - responsive: 22.5% normal, 33.5% ultrawide */
        :root {
            --fade-start-percent: 22.5%;
            /* Default for normal screens (ultrawide handled by JS) */
        }

        /* Visual indicator line to show where CARREL ends (toggle with class) */
        .carrel-indicator {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 2px;
            background: #d4af37;
            z-index: 100;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .carrel-indicator.show {
            opacity: 1;
        }

        /* Golden corner glow for service cards */
        .service-card {
            position: relative;
            transform-origin: center center;
            will-change: transform;
            perspective: 1000px;
        }

        .service-card-wrapper {
            transform-style: preserve-3d;
            position: relative;
            will-change: transform;
        }

        .service-card-glare {
            pointer-events: none;
            position: absolute;
            inset: 0;
            z-index: 50;
            border-radius: 0.75rem;
            mix-blend-mode: overlay;
            opacity: 0;
            transition: opacity 0.2s;
        }

        .service-card-content {
            overflow: hidden;
            position: relative;
            height: 100%;
            border-radius: 0.75rem;
        }

        .service-card-wrapper::before {
            content: '';
            position: absolute;
            inset: -3px;
            border: 2px solid rgba(255, 250, 220, 0.7);
            border-radius: 1rem;
            mask: radial-gradient(ellipse 350px 350px at 0% 0%, black 50%, transparent 90%);
            -webkit-mask: radial-gradient(ellipse 350px 350px at 0% 0%, black 50%, transparent 90%);
            box-shadow:
                0 0 30px rgba(255, 250, 220, 0.6),
                0 0 60px rgba(255, 250, 220, 0.5),
                0 0 90px rgba(255, 250, 220, 0.4);
            z-index: 1;
            pointer-events: none;
        }

        .service-card-wrapper::after {
            content: '';
            position: absolute;
            inset: -3px;
            border: 2px solid rgba(255, 250, 220, 0.7);
            border-radius: 1rem;
            mask: radial-gradient(ellipse 350px 350px at 100% 100%, black 50%, transparent 90%);
            -webkit-mask: radial-gradient(ellipse 350px 350px at 100% 100%, black 50%, transparent 90%);
            box-shadow:
                0 0 30px rgba(255, 250, 220, 0.6),
                0 0 60px rgba(255, 250, 220, 0.5),
                0 0 90px rgba(255, 250, 220, 0.4);
            z-index: 1;
            pointer-events: none;
        }

        .service-card-blur-circle {
            position: absolute;
            border-radius: 50%;
            background: white;
            opacity: 0.15;
            filter: blur(60px);
            -webkit-filter: blur(60px);
            pointer-events: none;
            z-index: 0;
        }

        .service-card-blur-circle-top-left {
            width: 200px;
            height: 200px;
            top: 20px;
            left: 20px;
        }

        .service-card-blur-circle-bottom-right {
            width: 200px;
            height: 200px;
            bottom: -60px;
            right: -60px;
        }

        /* Disable hover animations on tablet and mobile */
        @media (max-width: 1024px) {
            .service-card-wrapper:hover {
                border-color: inherit !important;
            }

            .service-card-wrapper {
                transform: none !important;
            }
        }

        /* Réalisations — Bending Gallery (replacement for circular gallery) */
        .bending-gallery {
            width: 100%;
            height: 100%;
            position: relative;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            touch-action: pan-y;
            cursor: grab;
            --bend: 2;
            --border-radius: 0.1;
            perspective: 1200px;
            transform-style: preserve-3d;
        }

        .bending-gallery:active {
            cursor: grabbing;
        }

        .bending-gallery::before,
        .bending-gallery::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            width: 80px;
            pointer-events: none;
            z-index: 3;
        }

        .bending-gallery::before {
            left: 0;
            background: linear-gradient(to right, rgba(8, 11, 20, 0.95), rgba(8, 11, 20, 0));
        }

        .bending-gallery::after {
            right: 0;
            background: linear-gradient(to left, rgba(8, 11, 20, 0.95), rgba(8, 11, 20, 0));
        }

        .bending-track {
            position: absolute;
            left: 50%;
            top: 50%;
            z-index: 10;
            /* Put track above side shadows */
            /* Center the track even before JS runs (prevents "empty" gallery on first reveal) */
            transform: translate3d(0, -50%, 0) translateX(-50%);
            display: flex;
            align-items: center;
            gap: 24px;
            padding: 0 clamp(24px, 4vw, 80px);
            will-change: transform;
            transform-style: preserve-3d;
        }

        .bending-item {
            flex: 0 0 auto;
            width: clamp(240px, 30vw, 420px);
            height: clamp(240px, 30vw, 420px);
            transform-style: preserve-3d;
            will-change: transform, opacity;
            cursor: pointer;
            position: relative;
            z-index: 100;
            pointer-events: auto !important;
        }

        .bending-inner {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 2rem;
            /* Much rounder for a premium look */
            overflow: hidden;
            transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), filter 0.25s ease, box-shadow 0.25s ease;
            transform-style: preserve-3d;
            border: 1.5px solid rgba(255, 255, 255, 0.1);
            will-change: transform, filter;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            filter: blur(0px);
            /* Correcting the mask issue that caused sharp corners */
            -webkit-mask-image: none;
            mask-image: none;
        }

        /* Desktop Hover Effect */
        /* Desktop Hover Effect and Mobile Active Effect */
        @media (hover: hover) {
            .bending-item:hover .bending-inner {
                transform: scale(1.05) translateZ(15px);
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
                z-index: 50;
            }
        }

        /* Press effect controlled by JS to avoid choppiness while scrolling */
        .bending-item.pressed .bending-inner,
        .snap-carousel .bending-item.pressed .bending-inner {
            transform: scale(0.975) translate3d(0, 0, 0) !important;
            filter: blur(1px) !important;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            transition: transform 0.1s ease;
            z-index: 50;
        }

        .bending-item.pressed img,
        .snap-carousel .bending-item.pressed img {
            transform: scale(1.08) !important;
            filter: brightness(0.85) blur(0.5px) !important;
            transition: transform 0.1s ease, filter 0.1s ease;
        }

        /* Smoothing the image transition itself */
        .bending-item img {
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
            will-change: transform, filter;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }



        .bending-item img,
        .bending-item picture {
            pointer-events: none;
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
        }

        /* Image remains unchanged, only container expands */

        @media (min-width: 769px) and (max-width: 1024px) {
            .bending-item {
                width: clamp(480px, 60vw, 840px);
                height: clamp(480px, 60vw, 840px);
            }
        }

        @media (max-width: 768px) {
            .bending-item {
                width: clamp(310px, 45vw, 580px);
                height: clamp(310px, 45vw, 580px);
            }

            .bending-gallery::before,
            .bending-gallery::after {
                display: none;
            }
        }

        /* Mobile/Tablet: Tighter spacing for Réalisations section */
        @media (max-width: 1024px) {
            #realisations .max-w-7xl>.text-center {
                margin-bottom: -1.5rem !important;
            }

            #realisations h2 {
                margin-bottom: 0 !important;
            }

            #realisations .text-center>p {
                margin-bottom: 0 !important;
            }

            #realisations .relative.left-1\/2.right-1\/2 {
                margin-top: -2.5rem !important;
            }

            #realisations .flex.justify-center.items-center.gap-4:last-child {
                margin-top: -2.5rem !important;
            }
        }

        /* Contact form: keep the "Type de service" chevron truly centered.
           Tailwind `space-y-2` adds margin-top to the 2nd child, which shifts the absolute icon. */
        #contact select[name="service"]+.absolute {
            margin-top: 0 !important;
        }

        /* Mobile/Tablet: Reduce padding for quote form fields */
        @media (max-width: 1024px) {
            #contact .liquid-glass-form {
                padding: 1.5rem !important;
            }

            #contact input[type="text"],
            #contact input[type="email"],
            #contact input[type="tel"],
            #contact select,
            #contact textarea {
                padding-left: 1rem !important;
                padding-right: 1rem !important;
                padding-top: 0.75rem !important;
                padding-bottom: 0.75rem !important;
            }

            #contact .space-y-2.relative .absolute.right-4 {
                right: 1rem !important;
            }
        }

        /* Mobile/Tablet: native scroll-snap carousel (better touch UX) */
        @media (max-width: 1024px) {
            .bending-gallery.snap-carousel {
                cursor: auto;
                user-select: auto;
                touch-action: auto;
                /* allow the browser to decide vertical vs horizontal scroll */
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
                scroll-behavior: smooth;
                scrollbar-width: none;
                /* Firefox */
            }

            .bending-gallery.snap-carousel::-webkit-scrollbar {
                display: none;
                /* WebKit */
            }

            .bending-gallery.snap-carousel::before,
            .bending-gallery.snap-carousel::after {
                display: none;
            }

            .bending-gallery.snap-carousel .bending-track {
                position: relative;
                left: auto;
                top: auto;
                height: 100%;
                transform: none !important;
                will-change: auto;
                transform-style: flat;
                padding: 0 24px;
                /* JS refines left/right padding so edge items can center */
                width: max-content;
            }

            .bending-gallery.snap-carousel .bending-item {
                transform: none;
                opacity: 1 !important;
                will-change: transform;
                scroll-snap-align: center;
                scroll-snap-stop: always;
                cursor: pointer;
            }
        }

        .bending-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: calc(var(--border-radius) * 100%);
            box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            -webkit-user-drag: none;
            -khtml-user-drag: none;
            -moz-user-drag: none;
            -o-user-drag: none;
            -webkit-user-drag: none;
            pointer-events: auto;
        }

        .carousel-nav-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid rgba(212, 175, 55, 0.3);
            color: #d4af37;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .carousel-nav-btn:hover {
            background: rgba(212, 175, 55, 0.2);
            border-color: rgba(212, 175, 55, 0.5);
            transform: scale(1.1);
        }

        .carousel-nav-btn:active {
            transform: scale(0.95);
        }

        #floatingLinesContainer {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
        }

        #floatingLinesContainer canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        /* Reduce opacity of contact section background animation */
        #contact #floatingLinesContainer {
            opacity: 0.4;
        }

        /* Mobile/Tablet: use contact-style floating lines on the hero, with transparent background */
        @media (max-width: 1023px) {
            #heroFloatingLinesContainer {
                opacity: 0.3;
            }

            /* Ensure fade-in animation ends at 40% opacity on mobile/tablet */
            #accueil .hero-lines-fade.fade-in-active {
                opacity: 0.3 !important;
            }

            /* Mobile/Tablet: remove the left-side dark gradient overlay in hero */
            #heroGradient {
                background: transparent !important;
                opacity: 0 !important;
            }
        }

        .spinning-border-button {
            position: relative;
            display: inline-flex;
            height: 3rem;
            overflow: hidden;
            border-radius: 9999px;
            padding: 1px;
            outline: none;
            transition: transform 0.3s ease;
            text-decoration: none;
            touch-action: manipulation;
            /* Fix double-tap on some mobile browsers */
        }

        @media (hover: hover) {
            .spinning-border-button:hover {
                transform: scale(1.05);
            }
        }

        .spinning-border-button:active {
            transform: scale(0.98);
        }

        .spinning-border-button:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.5);
            outline-offset: 2px;
        }

        .spinning-border-button::before {
            content: '';
            position: absolute;
            inset: -1000%;
            animation: spin 2s linear infinite;
            background: conic-gradient(from 90deg at 50% 50%, #f6e6a8 0%, #d4af37 50%, #f6e6a8 100%);
        }

        .spinning-border-button-inner {
            position: relative;
            display: inline-flex;
            height: 100%;
            width: 100%;
            align-items: center;
            justify-content: center;
            border-radius: 9999px;
            background: rgba(8, 11, 20, 0.3);
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            padding: 0.75rem 2rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: white;
            z-index: 10;
            text-decoration: none;
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

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

            to {
                transform: rotate(360deg);
            }
        }

        /* Reveal on scroll (IntersectionObserver) */
        html.reveal-init .reveal {
            opacity: 0;
            transform: translate3d(0, 28px, 0);
            transition:
                opacity 500ms cubic-bezier(0.1, 0.9, 0.2, 1),
                transform 500ms cubic-bezier(0.1, 0.9, 0.2, 1);
            transition-delay: var(--reveal-delay, 0ms);
            will-change: opacity, transform;
        }

        html.reveal-init .reveal.is-visible {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }

        @media (prefers-reduced-motion: reduce) {
            html.reveal-init .reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }
        }

        /* Prevent horizontal scrolling on all devices */
        html,
        body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }

        /* Desktop bending carousel: allow both axes; JS handles dragging */
        @media (min-width: 1025px) {

            .bending-gallery,
            .bending-gallery * {
                touch-action: pan-x pan-y;
            }
        }

        /* Additional mobile/tablet specific settings */
        @media (max-width: 1024px) {
            body {
                touch-action: pan-y;
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Additional mobile scroll performance optimizations */
        @media (max-width: 768px) {
            * {
                -webkit-tap-highlight-color: transparent;
            }

            html.reveal-init .reveal {
                contain: layout style paint;
                backface-visibility: hidden;
                -webkit-backface-visibility: hidden;
            }
        }

        /* Hero Section First Load Fade-In Animation */
        #accueil .hero-fade-in {
            opacity: 0;
            transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1), transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        #accueil .hero-fade-in.fade-in-active {
            opacity: 1;
            transform: translateY(0);
        }

        /* Background image fade-in */
        #accueil .hero-bg-fade {
            opacity: 0 !important;
            transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1) 50ms;
        }

        #accueil .hero-bg-fade.fade-in-active {
            opacity: 1 !important;
        }

        /* Restore responsive opacity after fade-in */
        @media (max-width: 1023px) {
            #accueil .hero-bg-fade.fade-in-active {
                opacity: 0.5 !important;
            }
        }

        /* Gradient overlay fade-in */
        #accueil .hero-gradient-fade {
            opacity: 0;
            transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1) 200ms;
        }

        #accueil .hero-gradient-fade.fade-in-active {
            opacity: 1;
        }

        /* Floating lines fade-in */
        #accueil .hero-lines-fade {
            opacity: 0;
            transition: opacity 1600ms cubic-bezier(0.4, 0, 0.2, 1) 300ms;
            pointer-events: none;
        }

        #accueil .hero-lines-fade.fade-in-active {
            opacity: 1;
        }

        /* Logo fade-in - preserve inner img opacity and vertical centering */
        #accueil .hero-logo-fade {
            opacity: 0;
            transform: translateX(20px) translateY(-50%);
            transition: opacity 1400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms, transform 1400ms cubic-bezier(0.4, 0, 0.2, 1) 500ms;
        }

        #accueil .hero-logo-fade.fade-in-active {
            opacity: 1;
            transform: translateX(0) translateY(-50%);
        }

        /* The img inside maintains its opacity-30 */
        /* Text content fade-in with stagger */
        #accueil .hero-text-fade {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1), transform 1000ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        #accueil .hero-text-fade.fade-in-active {
            opacity: 1;
            transform: translateY(0);
        }

        #accueil .hero-text-fade-delay-1 {
            transition-delay: 600ms;
        }

        #accueil .hero-text-fade-delay-2 {
            transition-delay: 800ms;
        }

        #accueil .hero-text-fade-delay-3 {
            transition-delay: 1000ms;
        }

        /* Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {

            #accueil .hero-fade-in,
            #accueil .hero-bg-fade,
            #accueil .hero-gradient-fade,
            #accueil .hero-lines-fade,
            #accueil .hero-logo-fade,
            #accueil .hero-text-fade {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }
        }

        /* Success Popup Modal */
        #successPopup.show {
            display: flex !important;
        }

        #successPopup.show .success-popup-content {
            transform: scale(1);
            opacity: 1;
        }

        .success-popup-content {
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.2);
        }

        /* Premium Lightbox Modal Styles (Divalpo Inspired) */
        .lightbox-modal {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
            pointer-events: none;
            /* Instant UX: don't block clicks when closing */
        }

        .lightbox-modal.active {
            pointer-events: auto;
            /* Re-enable when fully active */
        }

        .lightbox-modal:not(.hidden) {
            opacity: 1;
            visibility: visible;
        }

        .lightbox-overlay {
            position: absolute;
            inset: 0;
            background: rgba(4, 6, 12, 0);
            backdrop-filter: blur(0px) saturate(100%);
            -webkit-backdrop-filter: blur(0px) saturate(100%);
            transition: background 0.2s ease, backdrop-filter 0.2s ease;
            will-change: background, backdrop-filter;
        }

        .lightbox-modal.active .lightbox-overlay {
            background: rgba(4, 6, 12, 0.85);
            backdrop-filter: blur(40px) saturate(150%);
            -webkit-backdrop-filter: blur(40px) saturate(150%);
        }

        /* Ambient Glow behind image */
        .lightbox-modal::after {
            content: '';
            position: absolute;
            width: 40vw;
            height: 40vh;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
            filter: blur(80px);
            z-index: 1;
            pointer-events: none;
        }

        .lightbox-content {
            position: relative;
            z-index: 10;
            width: 90vw;
            height: 90vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 2rem;
            transform: scale(0.99) translate3d(0, 5px, 0);
            filter: blur(2px);
            opacity: 0;
            transition: transform 0.25s cubic-bezier(0.1, 0.9, 0.2, 1), filter 0.2s ease, opacity 0.2s ease;
            will-change: transform, filter, opacity;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
            contain: layout style paint;
            /* Less restrictive than 'strict' for better compatibility */
        }

        .lightbox-modal.active .lightbox-content {
            transform: scale(1) translate3d(0, 0, 0);
            filter: blur(0);
            opacity: 1;
        }

        .lightbox-image {
            max-width: 95vw;
            max-height: 70vh;
            border-radius: 1.5rem;
            box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.1);
            object-fit: contain;
            user-select: none;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: opacity 0.3s cubic-bezier(0.2, 1, 0.3, 1), filter 0.3s ease, transform 0.3s ease;
            will-change: opacity, filter, transform;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        /* Premium Navigation Buttons */
        .lightbox-close,
        .lightbox-nav {
            position: fixed;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
            z-index: 100;
        }

        .lightbox-close {
            top: 2rem;
            right: 2rem;
            width: 3.5rem;
            height: 3.5rem;
            border-radius: 50%;
        }

        .lightbox-close:hover {
            background: rgba(212, 175, 55, 0.15);
            border-color: rgba(212, 175, 55, 0.4);
            color: #d4af37;
            transform: rotate(90deg) scale(1.1);
        }

        .lightbox-nav {
            top: 50%;
            transform: translateY(-50%);
            width: 4.5rem;
            height: 4.5rem;
            border-radius: 50%;
            opacity: 0.8;
        }

        .lightbox-nav:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(212, 175, 55, 0.3);
            transform: translateY(-50%) scale(1.1);
        }

        .lightbox-nav i {
            transition: transform 0.3s ease;
        }

        .lightbox-prev:hover i {
            transform: translateX(-4px);
        }

        .lightbox-next:hover i {
            transform: translateX(4px);
        }

        .lightbox-prev {
            left: 3rem;
        }

        .lightbox-next {
            right: 3rem;
        }

        /* Information Panel Update — Title only, below image */
        .lightbox-info-panel {
            margin-top: 1.5rem;
            text-align: center;
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 20;
        }

        .lightbox-modal.active .lightbox-info-panel {
            opacity: 1;
            transform: translateY(0);
        }

        #lightboxProjectName {
            font-family: 'Barlow', sans-serif;
            font-size: clamp(1.25rem, 4vw, 2rem);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            font-weight: 500;
            background: linear-gradient(to right, #ffffff, #d4af37, #ffffff);
            background-size: 200% auto;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: shine 5s linear infinite;
        }

        @keyframes shine {
            to {
                background-position: 200% center;
            }
        }

        @media (max-width: 1024px) {
            .lightbox-nav {
                width: 3.5rem;
                height: 3.5rem;
            }

            .lightbox-prev {
                left: 1rem;
            }

            .lightbox-next {
                right: 1rem;
            }

            #lightboxInfo {
                bottom: 2rem;
                width: 85vw;
                padding: 1.5rem;
            }
        }