/* Root Variables */
:root {
    --primary-color: #1a1a1a;
    --accent-color: #ff3b30;
    /* Red instead of Gold */
    /* Black, White, Red, Grey palette */
    --text-color: #1a1a1a;
    --bg-dark: #ffffff;
    --bg-global: url('bg/1.png');
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    overscroll-behavior: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--bg-global);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    overscroll-behavior: auto;
}

.faq-item {
    opacity: 0;
    transform: translateY(30px);
}

.process-step {
    transition: transform 0.1s ease-out;
    /* Smooth skew transition */
    will-change: transform;
}

.faq-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.step-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 900;
}

.view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    margin-top: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    border-bottom-color: #fff;
    gap: 20px;
}

body {
    /* Keeps it global for all sections */
    color: var(--text-color);
    overflow-x: hidden;
    overscroll-behavior: none;
}

#main-content {
    transition: filter 3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.is-loading #main-content {
    filter: blur(40px);
}

/* ===================== SPLIT PRELOADER ===================== */
#new-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    overflow: hidden;
    background: transparent;
}

.preloader-panel {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 1.5s cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes preloaderImageReveal {
    0% {
        filter: brightness(0.3);
        transform: scale(1.15);
    }

    60% {
        filter: brightness(0.5);
        transform: scale(1.06);
    }

    100% {
        filter: brightness(0.65);
        transform: scale(1);
    }
}

.preloader-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: preloaderImageReveal 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#start-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 20px 60px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

#start-btn:hover {
    background: #fff;
    color: #000;
    letter-spacing: 10px;
    transform: translate(-50%, -50%) scale(1.05);
}

#start-btn .start-text-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1.3em;
    vertical-align: middle;
    white-space: nowrap;
}

#start-btn .start-text-top,
#start-btn .start-text-bottom {
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
    will-change: transform;
    line-height: 1.3;
}

#start-btn .start-text-top {
    transform: translateY(0);
}

#start-btn .start-text-bottom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    opacity: 0;
    filter: blur(4px);
}

#start-btn:hover .start-text-top {
    transform: translateY(-100%);
    opacity: 0;
    filter: blur(4px);
}

#start-btn:hover .start-text-bottom {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

#start-btn .letter {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
    will-change: transform, opacity, filter;
}

#start-btn .start-text-bottom .letter {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(12px);
}

#start-btn:hover .start-text-bottom .letter {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}

/* Animation triggers */
#new-preloader.active .left-panel {
    transform: translateX(-100%);
}

#new-preloader.active .right-panel {
    transform: translateX(100%);
}

#new-preloader.active #start-btn {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

body.loaded #new-preloader {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Old overlay cleanup */
#loader-overlay {
    display: none;
}


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

ul {
    list-style: none;
}

/* Navbar Style */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1cm;
    z-index: 10001;
    display: flex;
    align-items: center;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    width: 100%;
    max-width: 100%;
    padding: 0 5%;
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    margin-left: auto;
    /* The "Alternative" - Pushes all links to the right edge */
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.8;
    display: inline-block;
    text-decoration: none;
}

.nav-links a .nav-text-top,
.nav-links a .nav-text-bottom {
    display: block;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
    will-change: transform;
}

.nav-links a .nav-text-top {
    transform: translateY(0);
}

.nav-links a .nav-text-bottom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    opacity: 0;
    filter: blur(4px);
}

.nav-links a:hover .nav-text-top {
    transform: translateY(-100%);
    opacity: 0;
    filter: blur(4px);
}

.nav-links a:hover .nav-text-bottom {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

.nav-links a.active {
    opacity: 1;
    color: var(--accent-color);
}

.nav-links a .letter {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
    will-change: transform, opacity, filter;
}

.nav-text-bottom .letter {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(12px);
}

.nav-links a:hover .nav-text-bottom .letter {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    position: relative;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px 0;
    color: #fff !important;
}

.nav-links a.btn-contact {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--bg-dark) !important;
    border-radius: 50px;
    font-weight: 600 !important;
    opacity: 1 !important;
    line-height: 1.3;
    overflow: hidden;
    mix-blend-mode: normal;
}

.nav-links a.btn-contact:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-links a .nav-text-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1.3em;
    vertical-align: middle;
    white-space: nowrap;
}

.nav-links a .nav-text-top,
.nav-links a .nav-text-bottom {
    display: block;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
    will-change: transform;
    line-height: 1.3;
}

.nav-links a .nav-text-top {
    transform: translateY(0);
}

.nav-links a .nav-text-bottom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    opacity: 0;
    filter: blur(4px);
}

/* Home-specific navbar overrides */
body.home #main-header {
    background: transparent;
    backdrop-filter: none;
}

body.home #main-header.scrolled {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
}

body.home .nav-links a {
    color: #000 !important;
}

body.home .nav-links a.btn-contact {
    color: var(--bg-dark) !important;
}

.nav-links a:hover .nav-text-top {
    transform: translateY(-100%);
    opacity: 0;
    filter: blur(4px);
}

.nav-links a:hover .nav-text-bottom {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}

.nav-links a.active {
    opacity: 1;
    color: var(--accent-color);
}

.nav-links a .letter {
    display: inline-block;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease, filter 0.45s ease;
    will-change: transform, opacity, filter;
}

.nav-text-bottom .letter {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(12px);
}

.nav-links a:hover .nav-text-bottom .letter {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}



/* Scroll Expansion Layout */
.scroll-container {
    background-color: transparent;
    position: relative;
    height: 280vh;
    /* Reduced to eliminate dead space and make it feel snappier */
}

@keyframes pageReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    animation: pageReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes videoSettle {
    0% {
        transform: scale(0.95) translateY(20px);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0px 40px 80px -10px rgba(0, 0, 0, 0.3);
    }
}

.video-wrapper {
    position: relative;
    width: 90vw;
    height: calc(100vh - 1cm);
    /* Anchor at bottom, leaves 1cm gap at the top */
    border-radius: 40px 40px 0 0;
    overflow: hidden;
    z-index: 5;
    will-change: width, height, border-radius;
    animation: videoSettle 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    transition: border-radius 0.1s ease-out;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* White blur wash synced with overflight */
.video-white-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(188, 225, 255, 0.92);
    /* Bleu ciel très léger / Soft sky blue */
    opacity: 0;
    z-index: 2;
    will-change: opacity;
    pointer-events: none;
}

/* Cinematic Overflight Layer */
.image-mask-layer {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 15;
    transform: translate3d(0, 100vh, 0);
    /* Force 3D hardware acceleration */
    will-change: transform;
    overflow: hidden;
}

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

/* Bottom shadow on parallax image */
.image-mask-layer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Parallax Overlay Text */
.parallax-overlay-text {
    position: absolute;
    bottom: 5vh;
    left: 5vw;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    color: var(--text-color);
    z-index: 10;
    line-height: 1;
    letter-spacing: -2px;
    text-transform: uppercase;
}

/* ===================== CUSTOM SCROLL INDICATOR ===================== */
/* Hide native scrollbar globally */
html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.scroll-indicator {
    position: fixed;
    right: 16px;
    top: 0;
    height: 100vh;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    padding: 40px 0;
    box-sizing: border-box;
}

.scroll-indicator__line {
    width: 1px;
    flex: 1;
    background: rgba(0, 0, 0, 0.15);
    position: relative;
}

.scroll-indicator__dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #000;
    border-radius: 50%;
    top: 0%;
    /* Set by JS */
    transition: top 0.1s linear;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.3);
}

/* ===================== PROJECTS ENTRY DECORATION ===================== */
.projects-entry-line {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 16px;
}

.projects-entry-line::before {
    content: '';
    display: block;
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.projects-entry-tick {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}



/* Mobile Responsiveness */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 0 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile: image parallax fix — disable fixed attachment on small screens */
    .image-mask-layer {
        position: absolute;
        width: 100%;
        height: 100vh;
        top: auto;
        bottom: 0;
    }

    .parallax-img {
        width: 100%;
        height: 100%;
        /* Full height on mobile */
        object-fit: cover;
        object-position: bottom;
    }

    /* Mobile: Featured Project Cards (Vertical Sticky) */
    .projects-cards-container {
        display: flex;
        flex-direction: column;
        gap: 10vh;
    }

    .featured-project-card {
        flex-direction: column;
        width: 92%;
        margin: 8vh auto;
        min-height: auto;
        border-radius: 16px;
        position: sticky;
        top: 12vh;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .fpc-info {
        flex: none;
        padding: 25px 20px;
    }

    /* Hide category/description to save space on mobile */
    .fpc-category {
        display: none;
    }

    .fpc-title {
        font-size: 1.8rem;
        letter-spacing: -0.5px;
    }

    .fpc-details {
        margin-top: 15px;
    }

    .fpc-detail-item {
        padding: 10px 0;
        font-size: 0.9rem;
    }

    .fpc-image-wrapper {
        height: 200px;
    }

    /* Reduce huge stacked title on mobile */
    .projects-section .huge-title-stacked {
        font-size: clamp(2.5rem, 12vw, 5rem);
        letter-spacing: -2px;
    }

    .projects-title {
        font-size: 2.2rem;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Hide custom scrollbar on mobile */
    .scroll-indicator {
        display: none;
    }

    .parallax-overlay-text {
        font-size: 5rem;
        /* Make it huge on mobile */
        bottom: 8vh;
        line-height: 0.9;
    }

    /* Mobile Hero UI Layer */
    .hero-ui-layer {
        display: block;
        padding: 0;
    }

    .hero-left-list {
        position: absolute;
        top: 5vh;
        left: 5vw;
        align-items: flex-start;
        text-align: left;
        font-size: 1.95rem !important;
        /* Plus petit pour mieux s'adapter aux écrans mobiles */
    }

    .btn-callnow {
        font-size: 0.85rem;
        padding: 12px 30px;
    }

    .desktop-only {
        display: none !important;
    }

    .hero-right-widget {
        position: absolute;
        bottom: 5vh;
        right: 5vw;
        flex-direction: row;
        gap: 15px;
    }

    .slider-square {
        width: 80px;
        height: 80px;
    }

    .projects-section {
        padding-top: 0;
        /* Remove blue gap */
    }

    body.nav-open .menu-toggle {
        position: fixed !important;
        top: 25px !important;
        right: 25px !important;
        z-index: 100005 !important;
        mix-blend-mode: normal !important;
    }

    body.nav-open .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #000000 !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        z-index: 100000 !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 28px !important;
        padding: 90px 20px 40px !important;
        box-sizing: border-box !important;
    }

    body.nav-open .nav-links li {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        list-style: none !important;
    }

    body.nav-open .nav-links a {
        color: #ffffff !important;
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
        font-weight: 700 !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        display: inline-block !important;
    }

    body.nav-open .nav-links a .nav-text-wrap {
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        display: inline-block !important;
    }

    body.nav-open .nav-links a .nav-text-top {
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        display: block !important;
        position: static !important;
        color: #ffffff !important;
    }

    body.nav-open .nav-links a .nav-text-bottom {
        display: none !important;
    }

    body.nav-open .nav-links a.btn-contact {
        background: #ff3b30 !important;
        color: #ffffff !important;
        border-radius: 50px !important;
        padding: 14px 36px !important;
        margin-top: 10px !important;
        font-size: 1.1rem !important;
        letter-spacing: 2px !important;
        box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4) !important;
        display: inline-block !important;
    }

    body.nav-open .menu-toggle .bar {
        background: #ffffff !important;
    }

    body.nav-open .menu-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    body.nav-open .menu-toggle .bar:nth-child(2) {
        transform: translateY(-8px) rotate(-45deg) !important;
        opacity: 1 !important;
    }

    body.home:not(.nav-open) .menu-toggle .bar {
        background: #000000 !important;
    }

    /* Negative color (automatic black/white inversion) for burger button on all non-home pages */
    body:not(.home) .menu-toggle {
        mix-blend-mode: difference !important;
    }

    body:not(.home):not(.nav-open) .menu-toggle .bar {
        background: #ffffff !important;
    }
}

/* ===================== TEXT REVEAL SECTION ===================== */
.text-reveal-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0 1cm;
}

.text-reveal-container {
    max-width: 1400px;
    /* Un peu plus large pour le grand texte */
    margin: 0 auto;
    width: 100%;
}

.reveal-text {
    font-size: clamp(3rem, 7vw, 6.5rem);
    /* Police augmentée */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--text-color);
    text-transform: uppercase;
    /* Majuscules */
    text-align: center;
    /* Aligné au centre */
}

.reveal-text span {
    opacity: 0.15;
    /* Base opacity, will be animated by GSAP */
    transition: opacity 0.1s;
}

/* ===================== PROJECTS SECTION ===================== */
.projects-section {
    background: transparent;
    /* Changed to let global bg show */
    margin-top: -3px;
    /* Increased overlap to hide potential gaps */
    padding: 0 1cm 0;
    /* Aligned with 1cm pagination/cards */
    position: relative;
    z-index: 60;
}

.projects-header {
    display: flex;
    flex-direction: column;
    /* Stacked for left alignment */
    align-items: flex-start;
    /* Aligned to left */
    justify-content: flex-start;
    margin-bottom: 0;
    /* Removed margin */
    padding-bottom: 10px;
    padding-top: 20px;
}

.projects-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.4);
    display: block;
}

.projects-header-left {
    display: flex;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
}

.huge-title-stacked {
    font-size: clamp(2rem, 15vw, 9rem);
    font-weight: 800;
    line-height: 0.85;
    color: var(--text-color);
    letter-spacing: -3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: left;
}

.projects-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-color);
    letter-spacing: -2px;
}

/* ===================== FEATURED PROJECT CARD ===================== */
.projects-cards-container {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 40px;
    gap: 30vh;
    /* Espace important pour isoler chaque carte */
}

.featured-project-card {
    display: flex;
    width: 98%;
    background-color: #a4a4a4;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    margin: 15vh auto;
    min-height: 400px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 25vh;
}

.fpc-info {
    flex: 0 0 45%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
}

.fpc-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.1;
}

.fpc-category {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: auto;
    /* Push details to the bottom */
}

.fpc-details {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.fpc-detail-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.fpc-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.fpc-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.fpc-image-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.fpc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.featured-project-card:hover .fpc-image {
    transform: scale(1.05);
}

/* Background Split Text */
.architect-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    /* Above blue blur, below parallax image */
    display: flex;
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1vw;
    pointer-events: none;
    overflow: hidden;
}

.architect-bg-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    will-change: transform, opacity;
}

/* ===================== HERO UI LAYER ===================== */
.hero-ui-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: block;
}

.hero-ui-layer>* {
    position: absolute;
    pointer-events: auto;
}

/* Left List */
.hero-left-list {
    top: 5vh;
    left: 2vw;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 800;
    font-size: clamp(3rem, 6vw, 5rem);
    /* Très grand */
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.95;
    align-items: flex-start;
    text-align: left;
}

/* Bottom Text (Desktop Only) */
.hero-bottom-text {
    bottom: 5vh;
    left: 2vw;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    letter-spacing: 1px;
    max-width: 400px;
}

/* ===================== PROCESS SECTION (HORIZONTAL SCROLL) ===================== */
.process-section {
    position: relative;
    height: 360vh;
    background: transparent;
    color: #000;
    z-index: 70;
    margin-top: 0;
}

.process-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    /* Changed from center to align top */
    padding-top: 130px;
    /* Space for the number 01 that is at top -100px */
}

.process-container {
    display: flex;
    padding: 0 1cm;
    /* Just 1cm left as requested */
    gap: 5vw;
    will-change: transform;
}

.process-step {
    flex: 0 0 750px;
    background: #000;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 75vh;
    overflow: visible;
    margin-top: 0;
    /* Removed margin to stick to title */
    transition: transform 0.4s ease;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.process-step:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Voir Plus card styles */
.voir-plus-step {
    background: linear-gradient(135deg, #0a0b0d 0%, #171920 50%, #050506 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.voir-plus-step:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.voir-plus-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
}

.voir-plus-arrow {
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.voir-plus-step:hover .voir-plus-arrow {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(6px);
}

.voir-plus-arrow svg {
    width: 28px;
    height: 28px;
}

.voir-plus-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
}



.step-image-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 32px;
    overflow: hidden;
}

/* Gradient overlay for readability */
.step-image-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 2;
}

/* Branded ARTECH MARBRERIE AFRIQUE Background Pattern for cards without photos */
.step-image-box.artech-card-bg {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.step-image-box.artech-card-bg::before {
            content: 'ARTECH MARBRERIE AFRIQUE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: 14px;
    color: rgba(0, 0, 0, 0.06);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
}

.step-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.process-step:hover .step-image-box img {
    transform: scale(1.1);
}

/* Large decorative number in BLACK above the card */
.process-step::after {
    content: attr(data-index);
    position: absolute;
    top: -150px;
    /* Slightly higher as requested */
    left: -30px;
    font-size: 16rem;
    /* Large enough to "pop" out */
    font-weight: 900;
    color: #000000;
    z-index: 0;
    /* Behind the image which is z-index: 1 */
    line-height: 1;
    pointer-events: none;
    opacity: 1;
}

.step-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 60px 50px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
}

.step-pagination {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.step-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 520px;
    margin-bottom: auto;
}

.step-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 0.85;
    letter-spacing: -4px;
    text-transform: uppercase;
    margin-top: 25px;
}

/* Decoration */
.process-step::before {
    content: 'ARTECH MARBRERIE AFRIQUE';
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .process-step {
        flex: 0 0 85vw;
        height: 65vh;
        margin-top: 20px;
    }

    /* Reduce the big decorative number significantly on mobile */
    .process-step::after {
        font-size: 7rem;
        /* Was 16rem — much smaller now */
        top: -80px;
        left: -10px;
    }

    /* Hide description to save space on mobile */
    .step-desc {
        display: none;
    }

    .step-content {
        padding: 30px 25px;
    }

    .step-title {
        font-size: 2.8rem;
        letter-spacing: -2px;
        margin-top: auto;
        /* Push title to bottom */
    }

    .step-header {
        margin-bottom: 0;
    }

    .step-number {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .step-pagination {
        font-size: 0.8rem;
    }
}

/* Center Call Now */
.hero-center-action {
    position: absolute;
    top: 60%;
    /* Légèrement plus bas pour centrer visuellement sur la vidéo */
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-callnow {
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-callnow:hover {
    background: #fff;
    color: #000;
}

/* Right Widget */
.hero-right-widget {
    bottom: 5vh;
    right: 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Aligné à droite du carré */
    gap: 30px;
}

.hero-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.hero-socials a {
    color: #ffffff;
    /* White as requested */
    opacity: 0;
    /* Hidden initially for reveal */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pageReveal 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-socials a:hover {
    opacity: 1;
    color: var(--accent-color);
    /* Red accent on hover */
    transform: translateX(-8px) scale(1.2);
    /* More imposing move */
}

.slider-square {
    width: 120px;
    height: 120px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid #000;
    box-shadow: none;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 16s infinite;
}

.slide-1 {
    animation-delay: 0s;
}

.slide-2 {
    animation-delay: 4s;
}

.slide-3 {
    animation-delay: 8s;
}

.slide-4 {
    animation-delay: 12s;
}

@keyframes fadeSlide {

    0%,
    20% {
        opacity: 1;
        transform: scale(1.1);
    }

    25%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.btn-shop {
    background: #fff;
    color: #000;
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-shop:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ===================== INITIAL REVEAL ANIMATION ===================== */
@keyframes elementReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elements are hidden by default */
.logo,
.nav-links li,
.menu-toggle,
.hero-left-list span,
.hero-bottom-text p,
.btn-callnow,
.slider-square,
.social-links-vertical a,
.scroll-indicator-wrapper {
    opacity: 0;
}

/* Trigger reveal only after clicking start */
body.loaded .logo,
body.loaded .nav-links li,
body.loaded .menu-toggle,
body.loaded .hero-left-list span,
body.loaded .hero-bottom-text p,
body.loaded .btn-callnow,
body.loaded .slider-square,
body.loaded .social-links-vertical a,
body.loaded .scroll-indicator-wrapper {
    animation: elementReveal 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    will-change: transform, opacity;
}

/* Original Majestic Delays (starting at 2.5s) */
body.loaded .logo {
    animation-delay: 2.5s !important;
}

body.loaded .nav-links li:nth-child(1) {
    animation-delay: 2.6s !important;
}

body.loaded .nav-links li:nth-child(2) {
    animation-delay: 2.65s !important;
}

body.loaded .nav-links li:nth-child(3) {
    animation-delay: 2.7s !important;
}

body.loaded .nav-links li:nth-child(4) {
    animation-delay: 2.75s !important;
}

body.loaded .nav-links li:nth-child(5) {
    animation-delay: 2.8s !important;
}

body.loaded .nav-links li:nth-child(6) {
    animation-delay: 2.85s !important;
}

.menu-toggle {
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Left List delay */
body.loaded .hero-left-list span:nth-child(1) {
    animation-delay: 3.0s !important;
}

body.loaded .hero-left-list span:nth-child(2) {
    animation-delay: 3.1s !important;
}

body.loaded .hero-left-list span:nth-child(3) {
    animation-delay: 3.2s !important;
}

/* Bottom Text delay */
body.loaded .hero-bottom-text p:nth-child(1) {
    animation-delay: 3.3s !important;
}

body.loaded .hero-bottom-text p:nth-child(2) {
    animation-delay: 3.4s !important;
}

body.loaded .hero-bottom-text p:nth-child(3) {
    animation-delay: 3.5s !important;
}

/* Center Action & Right Widget */
body.loaded .btn-callnow {
    animation-delay: 3.5s !important;
}

/* Square reveals first */
body.loaded .slider-square {
    animation-delay: 3.6s !important;
}

/* Social icons reveal stagger starting after the square */
body.loaded .hero-socials a:nth-child(1) {
    animation-delay: 3.8s !important;
}

body.loaded .hero-socials a:nth-child(2) {
    animation-delay: 3.85s !important;
}

body.loaded .hero-socials a:nth-child(3) {
    animation-delay: 3.9s !important;
}

body.loaded .hero-socials a:nth-child(4) {
    animation-delay: 3.95s !important;
}

body.loaded .scroll-indicator-wrapper {
    animation-delay: 3.9s !important;
}

/* ===================== LOGO CAROUSEL ===================== */
.logo-carousel {
    width: 100%;
    padding: 100px 0;
    background: transparent;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 120px;
    width: max-content;
    animation: logo-scroll 40s linear infinite;
}

.logo-item {
    flex: 0 0 220px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.3);
    /* Fully grayscale and more subtle */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-item:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

@keyframes logo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-33.3333%);
    }
}

@media (max-width: 768px) {
    .logo-carousel {
        padding: 60px 0;
    }

    .logo-track {
        gap: 60px;
        animation-duration: 20s;
    }

    .logo-item {
        flex: 0 0 140px;
        height: 60px;
    }

    @keyframes logo-scroll {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-33.3333%);
        }
    }
}

/* ===================== SERVICES SECTION ===================== */
.services-section {
    padding: 20px 1cm 100px 1cm;
    /* Fixed padding */
    background: transparent;
    position: relative;
    z-index: 60;
}

.services-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
    padding-bottom: 30px;
}

.services-sticky-container {
    display: flex;
    flex-direction: column;
    gap: 15vh;
    /* Espace pour scroller entre les cartes */
    padding-bottom: 20vh;
}

.service-sticky-card {
    position: sticky;
    top: 80px;
    /* Consistent top for all cards to stack perfectly */
    width: 100%;
    height: 80vh;
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-bottom: 50vh;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Remove bottom margin for the last card so it gets covered immediately */
.service-sticky-card:nth-child(4) {
    margin-bottom: 30vh;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Perfect Stacking: Each card is "above" the previous one */
.service-sticky-card:nth-child(1) {
    z-index: 10;
    top: 80px;
    background: #1a1a1a;
    color: #fff;
}

.service-sticky-card:nth-child(2) {
    z-index: 12;
    top: 100px;
    background: #ffffff;
    color: #1a1a1a;
}

.service-sticky-card:nth-child(3) {
    z-index: 14;
    top: 120px;
    background: var(--accent-color);
    color: #fff;
}

.service-sticky-card:nth-child(4) {
    z-index: 16;
    top: 140px;
    background: #f0f0f0;
    color: #1a1a1a;
    box-shadow: 0 -40px 100px rgba(0, 0, 0, 0.3);
    /* Ombre plus forte pour détacher la 4ème */
}

.ssc-image-side {
    flex: 0 0 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.ssc-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-sticky-card:hover .ssc-image-side img {
    transform: scale(1.1);
}

.ssc-wave-separator {
    position: absolute;
    top: 0;
    right: -1px;
    height: 100%;
    width: 120px;
    z-index: 2;
    pointer-events: none;
    color: inherit;
    /* Use card background color via inherit */
}

.ssc-wave-separator svg {
    width: 100%;
    height: 100%;
}

.ssc-content-side {
    flex: 0 0 50%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 5vw;
    position: relative;
    background: inherit;
    /* Card background */
    color: inherit;
    overflow: hidden;
    /* Prevent number from bleeding out */
    z-index: 3;
}

/* Fix colors and separators for each card */
.service-sticky-card:nth-child(1) .ssc-wave-separator {
    color: #1a1a1a;
}

.service-sticky-card:nth-child(2) .ssc-wave-separator {
    color: #ffffff;
}

.service-sticky-card:nth-child(3) .ssc-wave-separator {
    color: var(--accent-color);
}

.service-sticky-card:nth-child(4) .ssc-wave-separator {
    color: #f0f0f0;
}

.service-sticky-card:nth-child(1) .ssc-content-side {
    background: #1a1a1a;
}

.service-sticky-card:nth-child(2) .ssc-content-side {
    background: #ffffff;
}

.service-sticky-card:nth-child(3) .ssc-content-side {
    background: var(--accent-color);
}

.service-sticky-card:nth-child(4) .ssc-content-side {
    background: #f0f0f0;
}

.ssc-number {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(8rem, 20vw, 22rem);
    font-weight: 900;
    opacity: 0.07;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    z-index: -1;
}

.ssc-content h3 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: -2px;
    line-height: 1;
}

.ssc-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 700px;
    line-height: 1.6;
    opacity: 0.8;
}

/* ===== VOIR PLUS BUTTON ===== */
.services-blur-target {
    position: relative;
    z-index: 1;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.services-voir-plus-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12vh 1cm 18vh;
    position: relative;
    z-index: 100;
    isolation: isolate;
}

.services-voir-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px 36px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.5s var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 100;
    background: #ffffff;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.services-voir-plus:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.12);
}

.voir-plus-plus {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--black);
    transition: background 0.5s var(--transition), color 0.5s var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.services-voir-plus:hover .voir-plus-plus {
    background: var(--red);
    color: #fff;
}

.voir-plus-text-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 1.3em;
    vertical-align: middle;
    white-space: nowrap;
}

.voir-plus-text-top,
.voir-plus-text-bottom {
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    line-height: 1.3;
}

.voir-plus-text-top {
    transform: translateY(0);
}

.voir-plus-text-bottom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
}

.services-voir-plus:hover .voir-plus-text-top {
    transform: translateY(-100%);
}

.services-voir-plus:hover .voir-plus-text-bottom {
    transform: translateY(0);
}

.voir-plus-text-bottom .letter {
    filter: blur(6px);
    opacity: 0;
    transform: translateY(12px);
}

.services-voir-plus:hover .voir-plus-text-bottom .letter {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
}

.voir-plus-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    transition: all 0.5s var(--transition);
}

.voir-plus-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
    transition: transform 0.5s var(--transition);
}

.voir-plus-text-wrap:hover~.voir-plus-arrow,
.services-voir-plus:hover .voir-plus-arrow {
    background: var(--red);
    transform: translateX(4px);
}

.services-voir-plus:hover .voir-plus-arrow svg {
    transform: translateX(2px);
}

.services-section.is-blurred .services-blur-target {
    filter: blur(6px);
    transform: scale(0.98);
    opacity: 0.6;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.services-blur-target {
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 768px) {
    .service-sticky-card {
        flex-direction: column;
        width: 92%;
        /* Centered and detached from sides */
        margin: 0 auto 15vh auto;
        /* Detach bottom from the next card */
        height: auto;
        min-height: 70vh;
        border-radius: 30px;
        top: 60px;
        /* Better sticky position for mobile */
    }

    .ssc-image-side {
        flex: 0 0 300px;
        /* Smaller image area on mobile */
        width: 100%;
    }

    .ssc-wave-separator {
        display: none;
    }

    .ssc-content-side {
        flex: 1;
        width: 100%;
        padding: 40px 30px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .ssc-number {
        position: relative;
        /* Avoid overlapping on mobile */
        right: auto;
        top: auto;
        transform: none;
        font-size: 4rem;
        margin-bottom: 0px;
        opacity: 0.2;
        /* More visible on mobile for style */
        z-index: 1;
    }

    .ssc-content {
        position: relative;
        z-index: 2;
    }

    .ssc-content h3 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .ssc-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .services-voir-plus-wrapper {
        padding: 8vh 1cm 12vh;
    }

    .services-voir-plus {
        padding: 16px 24px;
        gap: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .voir-plus-plus {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }

    .voir-plus-text-wrap {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .voir-plus-arrow {
        width: 30px;
        height: 30px;
    }

    .voir-plus-arrow svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 40px 1cm 80px 1cm;
        /* Fixed mobile padding */
    }

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

    .service-card {
        /* Padding removed to fix mobile image borders */
    }

    .service-card h3 {
        font-size: 1.8rem;
    }
}

/* ===================== SERVICE CARDS (shared with service detail gallery) ===================== */
.service-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--black);
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.5s var(--transition);
    text-decoration: none;
    color: #fff;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.service-card img,
.service-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.6);
    transition: all 0.6s var(--transition);
}

.service-card:hover img,
.service-card:hover video {
    filter: grayscale(0);
    transform: scale(1.03);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.service-card-number {
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.service-card-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.service-card-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    font-weight: 300;
}

.service-card-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--transition);
}

.service-card-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    transition: transform 0.4s var(--transition);
}

.service-card:hover .service-card-arrow {
    background: var(--red);
    border-color: var(--red);
}

.service-card:hover .service-card-arrow svg {
    transform: translateX(4px);
}

/* ===================== HORIZONTAL GALLERY ===================== */
.horizontal-gallery-section {
    height: 400vh;
    position: relative;
    background-color: #fff;
    background-image: var(--bg-global);
    background-attachment: fixed;
    z-index: 20;
}

.gallery-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    align-items: center;
}

.gallery-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    z-index: 20;
    pointer-events: none;
    will-change: transform;
    display: flex;
    align-items: center;
}

.gallery-parallax-bg img {
    height: 100%;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.gallery-track-container {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

.gallery-track-container::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 5vw;
    padding: 0 15vw;
    will-change: transform;
    align-items: center;
}

.gallery-item {
    flex: 0 0 45vh;
    height: 65vh;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    /* Removed background, overflow, and box-shadow to allow natural shapes */
}

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

/* Removed gradients to leave marble authentic and transparent */

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

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

.gallery-more-item {
    flex: 0 0 45vh;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* New Minimal Explore Button */
.btn-explore-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #000;
    transition: all 0.4s var(--transition);
}

.explore-arrow {
    width: 90px;
    height: 90px;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--transition);
    background: transparent;
}

.explore-arrow svg {
    width: 32px;
    height: 32px;
    stroke: #000;
    stroke-width: 3px;
    /* Thicker for visibility */
    transition: transform 0.4s var(--transition), stroke 0.4s ease;
}

.explore-label-mini {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: #000;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.btn-explore-more:hover .explore-arrow {
    background: #ff3b30;
    /* Intense Red */
    border-color: #ff3b30;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.3);
}

.btn-explore-more:hover .explore-arrow svg {
    stroke: #fff;
    /* White on red for visibility */
    transform: translateX(8px);
}

.btn-explore-more:hover .explore-label-mini {
    color: #ff3b30;
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 80vw;
        height: 60vh;
    }
}

/* ===================== STICKY IMAGE SECTION ===================== */
.simple-image-section {
    width: 100%;
    height: 250vh;
    /* Increased significantly to slow down the transition motion */
    background: transparent;
    position: relative;
    z-index: 55;
}

.sticky-image-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.simple-image-section img {
    width: 100%;
    height: 140%;
    /* Taller than container for parallax reveal */
    object-fit: cover;
    display: block;
    object-position: top;
    filter: grayscale(1);
    will-change: filter, transform;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===================== NOS MARBRES SECTION ===================== */
.marbres-section {
    padding: 120px 1cm 100px 1cm;
    background: transparent;
    position: relative;
    z-index: 60;
}

.marbres-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 80px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.marbres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 80px;
}

.marbre-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 80px;
}

.marbre-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.marbre-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.marbre-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(0.3);
}

.marbre-card:hover .marbre-img-wrap img {
    transform: scale(1.08);
    filter: grayscale(0) contrast(1.1) brightness(1.05);
}

.marbre-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 45%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.marbre-card:hover .marbre-overlay {
    opacity: 1;
}

.marbre-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    z-index: 5;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(15px);
}

.marbre-card:hover .marbre-info {
    opacity: 1;
    transform: translateY(0);
}

.marbre-info h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0 0 4px 0;
}

.marbre-info span {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.marbres-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.marbres-footer p {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: #888;
    max-width: 600px;
    line-height: 1.7;
}

.marbres-cta {
    flex-shrink: 0;
    padding: 18px 40px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .marbres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .marbres-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================== MARBRE GALLERY SECTION ===================== */

/* White shadow overlay at the very top of the section */
.gallery-top-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.4) 60%, transparent 100%);
    z-index: 30;
    pointer-events: none;
}

/* Section header visible at start of scroll */
.marbre-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5vh 1cm;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marbre-gallery-link {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    color: #c0392b;
    text-decoration: none;
    transition: letter-spacing 0.3s ease;
    display: inline-block;
    margin-top: 8px;
}

.marbre-gallery-link:hover {
    letter-spacing: 5px;
}

/* Label on each gallery item */
.gallery-item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 18px;
    background: transparent;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-item-label span {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.gallery-item-label em {
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    font-weight: 500;
}

/* ===== GALLERY DRAG ===== */
.gallery-track {
    user-select: none;
    -webkit-user-select: none;
}

.gallery-track.is-dragging,
.gallery-track.is-dragging * {
    cursor: grabbing !important;
    user-select: none;
}

.gallery-item img {
    pointer-events: none;
    /* Prevent image ghost drag */
    -webkit-user-drag: none;
}

/* ===== SERVICES ? MARBRES TRANSITION ===== */

/* Remove padding at bottom of services so gallery starts immediately */
.services-section {
    padding-bottom: 0 !important;
}

.services-sticky-container {
    padding-bottom: 0 !important;
}

/* Remove margin from last service card */
.service-sticky-card:nth-child(4) {
    margin-bottom: 0 !important;
}

/* NOS MARBRES preview at the bottom of last card */
.services-next-preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 5vw 25px 5vw;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(to top, rgba(240, 240, 240, 1) 0%, transparent 100%);
    pointer-events: none;
}

.services-next-label {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #c0392b;
    font-weight: 700;
}

.services-next-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 0.9;
    opacity: 0.15;
}

/* Make marbre gallery sticky directly under services */
.marbre-gallery-section {
    margin-top: 0 !important;
    position: relative;
    z-index: 30;
    /* High enough to cover all cards */
    background: #fff;
    /* Solid background to cover the sticky cards */
    height: 350vh;
    /* Requis pour le scroll vertical mappé en horizontal */
}

/* ===== MARBRE GALLERY HEADER - hidden by default, revealed on scroll ===== */
.marbre-gallery-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.marbre-gallery-header.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    z-index: 15;
}

/* ===================== FAQ SECTION ===================== */
.faq-section {
    padding: clamp(60px, 10vh, 140px) clamp(24px, 5vw, 80px);
    background-color: #fff;
    position: relative;
    z-index: 30;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
}

.section-title-wrapper {
    text-align: right;
    margin-bottom: 100px;
    /* Plus d'espace sous le titre */
}

.section-title-wrapper .huge-title-stacked {
    text-align: right;
    line-height: 0.8;
}

/* Pagination on the right for Titles */
.section-title-wrapper.with-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 30px;
    text-align: right;
}

.title-pagination-right {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--accent-color);
    padding-top: 15px;
    /* Aligns with the top of the huge text */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .section-title-wrapper.with-pagination {
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .title-pagination-right {
        writing-mode: horizontal-tb;
        transform: none;
        padding-top: 0;
    }
}

.faq-container-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.faq-grid {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.faq-icon {
    width: 30px;
    height: 30px;
    position: relative;
}

.faq-icon span {
    position: absolute;
    background: #000;
    transition: all 0.4s ease;
}

.faq-icon span:first-child {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon span:last-child {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon span:last-child {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 20px;
    opacity: 1;
}

.faq-answer p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* ===================== CONTACT SECTION ===================== */
.contact-section {
    padding: clamp(60px, 10vh, 140px) clamp(24px, 5vw, 80px);
    background: #f9f9f9;
    position: relative;
    z-index: 30;
}

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

.contact-sub {
    font-size: 1.2rem;
    color: #555;
    margin: 30px 0 60px;
    max-width: 400px;
}

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

.cd-item span {
    font-size: 0.7rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: #c0392b;
}

.cd-item p {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #888;
}

.form-group input,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    font-size: 1.1rem;
    font-family: inherit;
    transition: border-color 0.4s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0392b;
}

.submit-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #000;
    color: #fff;
    border: none;
    padding: 20px 40px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.submit-btn:hover {
    background: #c0392b;
    padding-right: 50px;
}

/* ===================== MAIN FOOTER ===================== */
.main-footer {
    background: #000;
    color: #fff;
    padding: 100px 1cm 60px;
    position: relative;
    z-index: 30;
    overflow: hidden;
}

.footer-marquee {
    overflow: hidden;
    margin-bottom: 80px;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee-slide 15s linear infinite;
    white-space: nowrap;
}

.footer-marquee span {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -2px;
    text-transform: uppercase;
}

@keyframes marquee-slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
}

.footer-logo span {
    color: #c0392b;
}

.footer-col.portfolio-info,
.portfolio-info {
    display: none !important;
}

.footer-col h4 {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-col ul {
    list-style: none;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.footer-social-icons a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social-icons a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
    color: #fff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    color: #555;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ===================== FAQ ENHANCEMENTS ===================== */
.faq-container-wrapper {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-grid {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.faq-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pagination Styles */
.faq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 80px auto 0;
    /* Plus de marge et bien centré */
    width: fit-content;
}

.faq-nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.faq-nav-btn:hover:not(:disabled) {
    background: #000;
    border-color: #000;
}

.faq-nav-btn:hover:not(:disabled) svg {
    stroke: #fff;
}

.faq-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.faq-dots {
    display: flex;
    gap: 12px;
}

.faq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-dot.active {
    background: #c0392b;
    transform: scale(1.5);
}

/* ===================== CONTACT ENHANCEMENTS ===================== */
.contact-centered-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-minimal {
    margin-bottom: 60px;
}

.contact-info-minimal p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.contact-pills {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-pills .pill {
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-pills .pill span {
    color: #c0392b;
    margin-right: 5px;
}

.contact-form-container {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-form .form-group {
    text-align: left;
    margin-bottom: 30px;
}

.submit-btn-premium {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 22px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.submit-btn-premium:hover {
    background: #c0392b;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(192, 57, 43, 0.3);
}

.submit-btn-premium:hover .btn-icon {
    background: #fff;
    transform: rotate(-45deg);
}

.submit-btn-premium:hover .btn-icon svg {
    stroke: #c0392b;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 30px;
    }
}

/* ===================== MODAL STYLES ===================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.2);
    color: #c0392b;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 30px;
    color: #000;
}

.modal-scroll-area {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 20px;
}

.modal-scroll-area p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.modal-scroll-area strong {
    color: #000;
}

.modal-scroll-area hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* Custom Scrollbar for Modal */
.modal-scroll-area::-webkit-scrollbar {
    width: 5px;
}

.modal-scroll-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.modal-scroll-area::-webkit-scrollbar-thumb {
    background: #c0392b;
    border-radius: 5px;
}

/* ===================== MARBLE DETAIL MODAL ===================== */
.marble-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100001;
    display: block;
    /* Removed flex centering */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marble-modal.active {
    opacity: 1;
    visibility: visible;
}

.marble-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.88);
    backdrop-filter: blur(12px);
}

.marble-modal .modal-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    height: 92vh;
    max-height: 92vh;
    background: #ffffff;
    display: flex;
    border-radius: 28px 28px 0 0;
    /* Rounded top, attached sharp bottom body */
    overflow: hidden;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
    transform: translate(-50%, 100%);
    /* Slide out below screen */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marble-modal.active .modal-wrapper {
    transform: translate(-50%, 0);
    /* Slide up to dock exactly at bottom of screen */
}


.marble-modal .modal-image-side {
    flex: 1.1;
    position: relative;
    background: #0f0f0f;
    overflow: hidden;
}

.marble-modal .modal-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marble-modal:hover .modal-image-side img {
    transform: scale(1.04);
}

.marble-modal .stock-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 8px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    z-index: 12;
}

.marble-modal .stock-badge.in-stock {
    background: #2ecc71;
    color: #ffffff;
}

.marble-modal .stock-badge.out-of-stock {
    background: #e74c3c;
    color: #ffffff;
}

.marble-modal .modal-info-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
    color: #1a1a1a;
    position: relative;
}

.marble-modal .modal-info-side::-webkit-scrollbar {
    width: 6px;
}

.marble-modal .modal-info-side::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.marble-modal .modal-info-side::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.marble-modal .modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    color: #1a1a1a;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 20;
}

.marble-modal .modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #e74c3c;
    color: #ffffff;
}

.marble-modal .marble-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.marble-modal .marble-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: #0f0f0f;
}

.marble-modal .marble-origin {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 24px;
}

.marble-modal .marble-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 24px;
}

/* Order form section */
.marble-modal .order-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #0f0f0f;
}

.marble-modal .order-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.marble-modal .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.marble-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marble-modal .form-group label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
}

.marble-modal .form-group input,
.marble-modal .form-group textarea {
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fdfdfd;
    font-family: inherit;
    font-size: 0.85rem;
    border-radius: 0;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.marble-modal .form-group input:focus,
.marble-modal .form-group textarea:focus {
    outline: none;
    border-color: #c0392b;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.marble-modal .form-group textarea {
    height: 80px;
    resize: none;
}

.marble-modal .order-submit-btn {
    padding: 16px;
    background: #c0392b;
    color: #ffffff;
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.4s var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.marble-modal .order-submit-btn:hover {
    background: #e74c3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(192, 57, 43, 0.3);
}

.marble-modal .order-submit-btn:disabled {
    background: #cccccc;
    color: #777777;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.marble-modal .out-of-stock-alert {
    padding: 20px;
    background: #fdf2f2;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Success Overlay */
.marble-modal .order-success-overlay {
    position: absolute;
    inset: 0;
    background: #ffffff;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.marble-modal .order-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.marble-modal .success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f8f0;
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    animation: scaleInSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleInSuccess {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.marble-modal .success-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f0f0f;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.marble-modal .success-message {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    max-width: 320px;
}

/* Responsive Modal styling */
@media (max-width: 991px) {
    .marble-modal .modal-wrapper {
        flex-direction: column;
        height: 90vh;
        max-height: none;
        width: 95%;
    }

    .marble-modal .modal-image-side {
        flex: none;
        height: 200px;
    }

    .marble-modal .modal-info-side {
        padding: 30px;
    }

    .marble-modal .modal-close-btn {
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
}

/* ===================== PREMIUM MODAL ===================== */
.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-modal.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.premium-modal-container {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.premium-modal.active .premium-modal-container {
    transform: translateY(0) scale(1);
}

.premium-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-modal-close:hover {
    color: #ff3b30;
    transform: rotate(90deg);
}

.premium-modal-icon {
    color: #ff3b30;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.premium-modal-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.premium-modal-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ff3b30;
    margin-bottom: 20px;
}

.premium-modal-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 32px;
}

.premium-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: #ff3b30;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-modal-btn:hover {
    background: #e02b22;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 59, 48, 0.3);
}

.premium-modal-btn svg {
    transition: transform 0.3s ease;
}

.premium-modal-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .premium-modal-container {
        padding: 40px 24px;
        border-radius: 20px;
    }
}

/* ===================== PROJECT MODAL ===================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100002;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border-radius: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-modal::-webkit-scrollbar {
    display: none;
}

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

.project-modal .pm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.project-modal .pm-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 28px;
}

.project-modal .pm-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding-right: 28px;
}

.project-modal .pm-close-btn:hover {
    color: #ff3b30;
    gap: 12px;
}

.project-modal .pm-close-btn svg {
    width: 14px;
    height: 14px;
}

.project-modal .pm-subtitle {
    padding: 14px 0 0;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    line-height: 1.5;
    flex-shrink: 0;
    padding-left: 28px;
}

.project-modal .pm-media-wrapper {
    flex: none;
    position: relative;
    background: #0a0a0a;
}

.project-modal .pm-media-row {
    flex: none;
    display: flex;
    gap: 16px;
    padding: 20px 28px 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: #0a0a0a;
    height: 420px;
    min-height: 420px;
    align-items: stretch;
    scroll-snap-type: x mandatory;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
}

.project-modal .pm-media-row::-webkit-scrollbar {
    display: none;
}

.project-modal .pm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.project-modal .pm-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.project-modal .pm-arrow-left {
    left: 12px;
}

.project-modal .pm-arrow-right {
    right: 12px;
}

.project-modal .pm-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.project-modal .pm-media-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 320px;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #111;
    cursor: grab;
}

.project-modal .pm-media-card img,
.project-modal .pm-media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    pointer-events: none;
}

.project-modal .pm-media-card:hover img,
.project-modal .pm-media-card:hover video {
    filter: grayscale(0) brightness(1);
    transform: scale(1.02);
}

.project-modal .pm-footer {
    padding: 16px 28px;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.project-modal .pm-info-left {
    flex: 1;
}

.project-modal .pm-project-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.project-modal .pm-project-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 12px;
    max-width: 600px;
}

.project-modal .pm-read-more {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.project-modal .pm-read-more:hover {
    border-bottom-color: #fff;
}

.project-modal .pm-project-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.project-modal .pm-project-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.project-modal .pm-project-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.project-modal .pm-project-request {
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-modal .pm-project-request:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.project-modal .pm-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), padding 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-modal .pm-details.active {
    max-height: none;
    padding: 28px;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-modal .pm-details.active::-webkit-scrollbar,
.project-modal .pm-details.active *::-webkit-scrollbar {
    display: none !important;
}

.project-modal.read-more-active .pm-header,
.project-modal.read-more-active .pm-subtitle,
.project-modal.read-more-active .pm-media-wrapper {
    display: none !important;
}

.project-modal.read-more-active .pm-footer {
    display: none !important;
}

.project-modal.read-more-active .pm-details {
    max-height: none;
    padding: 20px;
    overflow-y: visible;
    order: -1;
}

.project-modal .pm-details-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.project-modal .pm-details-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-modal .pm-details-back:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.project-modal .pm-details-inner {
    padding: 0;
}

.project-modal .pm-details-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-modal .pm-details-text .process-phase-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-modal .pm-details-text .process-phase-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-modal .pm-details-text .process-phase-title::before {
    content: '↘';
    font-size: 1.5rem;
    color: #fff;
}

.project-modal .pm-details-text .process-steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-modal .pm-details-text .process-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 4cm;
    background: none;
    border: none;
    padding: 0;
}

.project-modal .pm-details-text .process-step:hover {
    background: none;
    transform: none;
}

.project-modal .pm-details-text .process-num {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.project-modal .pm-details-text .process-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-modal .pm-details-text .process-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .project-modal .pm-details.active {
        max-height: none;
    }

    .project-modal .pm-media-row {
        height: 280px;
        min-height: 280px;
        padding: 12px 16px 0;
    }

    .project-modal .pm-arrow {
        width: 36px;
        height: 36px;
    }

    .project-modal .pm-arrow-left {
        left: 6px;
    }

    .project-modal .pm-arrow-right {
        right: 6px;
    }

    .project-modal .pm-details-text {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .project-modal .pm-header,
    .project-modal .pm-subtitle,
    .project-modal .pm-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-modal .pm-details.active {
        padding-left: 16px;
        padding-right: 16px;
        overflow-y: visible;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .project-modal .pm-header-title {
        padding-left: 16px;
    }

    .project-modal .pm-close-btn {
        padding-right: 16px;
    }

    .project-modal .pm-project-name {
        font-size: 1.2rem;
    }

    .project-modal .pm-media-card {
        min-width: 260px;
    }
}

/* ===================== PROJECT MODAL LIGHTBOX ===================== */
.pm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100003;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.pm-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.pm-lightbox-content {
    position: relative;
    max-width: 70vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.pm-lightbox-content img,
.pm-lightbox-content video {
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pm-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pm-lightbox-close:hover {
    transform: rotate(90deg);
    color: #ff3b30;
}

/* Arrows anchored to the full-screen .pm-lightbox overlay — always outside the image */
.pm-lightbox-prev,
.pm-lightbox-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    font-size: 1.4rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000020 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.pm-lightbox-prev {
    left: 30px !important;
    right: auto !important;
}

.pm-lightbox-next {
    right: 30px !important;
    left: auto !important;
}

.pm-lightbox-prev:hover,
.pm-lightbox-next:hover {
    background: #ff3b30 !important;
    border-color: #ff3b30 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 768px) {

    .pm-lightbox-content img,
    .pm-lightbox-content video {
        max-width: 88vw;
        max-height: 80vh;
    }

    .pm-lightbox-close {
        top: -35px;
        right: 5px;
    }

    .pm-lightbox-prev,
    .pm-lightbox-next {
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.6) !important;
        z-index: 1000020 !important;
    }

    .pm-lightbox-prev {
        left: 10px !important;
    }

    .pm-lightbox-next {
        right: 10px !important;
    }
}


/* ===================== HOMEPAGE MARBLE HOVER BACKGROUND MOTION ===================== */
.gallery-hover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

.gallery-hover-bg.active {
    opacity: 0.65;
    transform: scale(1.02);
}

/* ===================== FLOATING CART BUTTON & CONTINUOUS SMOOTH SHAKE ===================== */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #c0392b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(192, 57, 43, 0.4);
    cursor: pointer;
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.6);
}

.floating-cart-btn.is-visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.floating-cart-btn:hover {
    background: #e74c3c;
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.6);
}

.floating-cart-btn svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2.5;
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffffff;
    color: #c0392b;
    font-size: 0.75rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.2);
}

@keyframes premium-smooth-shake {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    12% {
        transform: rotate(-8deg) scale(1.05);
    }

    24% {
        transform: rotate(8deg) scale(1.05);
    }

    36% {
        transform: rotate(-6deg) scale(1);
    }

    48% {
        transform: rotate(6deg) scale(1);
    }

    60% {
        transform: rotate(-3deg) scale(1);
    }

    72% {
        transform: rotate(3deg) scale(1);
    }

    84% {
        transform: rotate(0deg) scale(1);
    }
}

.floating-cart-btn.shake-active {
    animation: premium-smooth-shake 1.8s ease-in-out infinite;
}

/* ===================== PROJECTS 2x2 GRID ===================== */
.projects-grid-section {
    padding-top: 220px;
    padding-bottom: 160px;
    min-height: 100vh;
    background: #f5f5f0;
}

.projects-grid-header {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.projects-grid-title h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 0;
}

.projects-grid-desc {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
    max-width: 450px;
    font-weight: 400;
}

.projects-grid-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 10%;
    margin-bottom: 80px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #000;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    border-radius: 0;
}

.filter-btn:hover {
    border-bottom-color: rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    border-bottom-color: #000;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 180px;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 10%;
}

/* Zigzag layout */
.projects-zigzag {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.zigzag-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 60px;
}

.zigzag-row.zigzag-left .zigzag-image {
    order: 1;
}

.zigzag-row.zigzag-left .zigzag-text {
    order: 2;
}

.zigzag-row.zigzag-right .zigzag-text {
    order: 1;
}

.zigzag-row.zigzag-right .zigzag-image {
    order: 2;
}

.zigzag-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #d0d0d0;
}

.zigzag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.3) brightness(0.85);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
    content-visibility: auto;
    contain-intrinsic-size: 100%;
}

.zigzag-row:hover .zigzag-image img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(0.95);
}

.zigzag-text {
    padding: 40px 0;
}

.zigzag-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.zigzag-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .projects-zigzag {
        gap: 60px;
    }

    .zigzag-row {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
    }

    .zigzag-row.zigzag-left .zigzag-image,
    .zigzag-row.zigzag-left .zigzag-text,
    .zigzag-row.zigzag-right .zigzag-text,
    .zigzag-row.zigzag-right .zigzag-image {
        order: unset;
    }

    .zigzag-image {
        position: relative;
        order: 1 !important;
    }

    .zigzag-text {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        order: 2 !important;
        padding: 24px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
        z-index: 2;
    }

    .zigzag-category {
        color: rgba(255, 255, 255, 0.85);
    }

    .zigzag-title {
        color: #fff;
    }
}

@media (max-width: 768px) {
    .project-modal .pm-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-modal .pm-project-desc {
        max-width: 100%;
    }

    .project-modal .pm-project-request {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .project-modal,
    .project-modal .pm-details {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-modal::-webkit-scrollbar,
    .project-modal .pm-details::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================================
   FOOTER MARQUEE — En bas du footer, entre deux traits
   ============================================================ */
.main-footer {
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
}

.footer-marquee {
    order: 999;
    /* Toujours en dernier dans le flex */
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    margin-top: 60px;
    margin-bottom: 0 !important;
}

.footer-marquee .marquee-track {
    display: flex;
    gap: 80px;
    animation: marquee 18s linear infinite;
    white-space: nowrap;
}

.footer-marquee .marquee-track span {
    font-size: clamp(6rem, 14vw, 12rem) !important;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08) !important;
    text-transform: uppercase;
    letter-spacing: -4px;
}

/* ===================== STICKY TEXT REVEAL OVERFLIGHT SEQUENCE ===================== */
.text-reveal-section {
    position: relative;
    height: 250vh;
    z-index: 40;
    background: transparent;
}

.text-reveal-container-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.simple-image-section {
    position: relative;
    height: 220vh;
    z-index: 50;
    background: transparent;
    box-shadow: none;
}

.sticky-image-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Service Lightbox Navigation Overrides for Mobile & Touch Drag */
.lightbox-prev,
.lightbox-next {
    display: flex !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000010 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
}

.lightbox-prev {
    left: 20px !important;
}

.lightbox-next {
    right: 20px !important;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--red) !important;
    border-color: var(--red) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        width: 44px !important;
        height: 44px !important;
        background: rgba(0, 0, 0, 0.6) !important;
    }

    .lightbox-prev {
        left: 10px !important;
    }

    .lightbox-next {
        right: 10px !important;
    }
}

.sticky-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.services-section {
    position: relative;
    z-index: 60;
}

/* Universal Burger Menu Black Background Overlay for ALL pages & screen sizes */
body.nav-open .navbar {
    mix-blend-mode: normal !important;
    background: transparent !important;
}

body.nav-open .nav-links {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    background-color: #000000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1000000 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px !important;
    padding: 90px 20px 40px !important;
    box-sizing: border-box !important;
}

body.nav-open .nav-links li {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    list-style: none !important;
}

body.nav-open .nav-links a {
    color: #ffffff !important;
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
}

body.nav-open .nav-links a .nav-text-wrap {
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    display: inline-block !important;
}

body.nav-open .nav-links a .nav-text-top {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    display: block !important;
    position: static !important;
    color: #ffffff !important;
}

body.nav-open .nav-links a .nav-text-bottom {
    display: none !important;
}

body.nav-open .nav-links a.btn-contact {
    background: #ff3b30 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 14px 36px !important;
    margin-top: 10px !important;
    font-size: 1.1rem !important;
    letter-spacing: 2px !important;
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4) !important;
    display: inline-block !important;
}

body.nav-open .menu-toggle {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
    z-index: 1000005 !important;
    mix-blend-mode: normal !important;
}

body.nav-open .menu-toggle .bar {
    background: #ffffff !important;
}

body.nav-open .menu-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
}

body.nav-open .menu-toggle .bar:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg) !important;
    opacity: 1 !important;
}