/* ============================================================================
   BASE STYLES - Commun à tous les appareils
   ============================================================================ */

.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 130vh;
    overflow: visible;
}

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-bg-index {
    object-position: center 70%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 60vh;
    left: 0;
    z-index: 3;
    text-align: left;
    max-width: 900px;
    padding: 0 80px;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-indicator {
    position: absolute;
    left: 4.78%;
    bottom: 10px;
    font-family: "din-2014", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 1px;
    color: #fff;
    z-index: 15;
}

.page-indicator strong {
    font-size: 16px;
    font-weight: 700;
}

.scroll-indicator-right {
    position: absolute;
    right: 5px;
    top: 35%;
    width: 40px;
    height: 140px;
    z-index: 15;
}

/* Hero Bottom Container */
.hero-bottom-container {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

.hero-signature {
    position: relative;
    display: inline-block;
    text-align: center;
    margin: 0;
    padding: 0;
}

.hero-signature-icon {
    width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.hero-arrow-down {
    position: absolute;
    bottom: -105px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 210px;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.arrow-anchor {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 1px;
    z-index: 1999;
}

.hero-title {
    font-family: "orpheuspro", serif;
    font-style: normal;
    font-weight: 100;
    margin-bottom: 0;
    line-height: 1.1;
    letter-spacing: 1px;
    color: white;
    -webkit-font-smoothing: antialiased;
}

.hero-subtitle {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}




/* ============================================================================
   DESKTOP - Ordinateur (1025px et plus)
   ============================================================================ */

@media (min-width: 1025px) {
    .hero-fullscreen {
        height: 130vh;
    }

    .hero-content {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-title {
        font-size: 45px;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .scroll-indicator-right {
        display: flex;
    }

    .hero-bottom-container::before,
    .hero-bottom-container::after {
        content: '';
        position: absolute;
        top: 55%;
        transform: translateY(-50%);
        height: 1px;
        background: #c2c2c2;
        z-index: 16;
        clip-path: inset(0% var(--line-clip, 50%) 0% var(--line-clip, 50%));
        transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-bottom-container::before {
        left: 10%;
        width: 20%;
    }

    .hero-bottom-container::after {
        right: 10%;
        width: 20%;
    }

    .page-indicator {
        display: block;
        left: 4.78%;
        bottom: 2%;
    }

    .hero-bottom-container {
        bottom: 10px;
    }

    .hero-signature-icon {
        width: 500px;
    }

    .hero-arrow-down {
        bottom: -30px;
        width: 30px;
        height: 60px;
    }
}


/* ============================================================================
   TABLET - Tablette (769px à 1024px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-fullscreen {
        height: 60vh;
    }

    .hero-content {
        bottom: 15vh;
        padding: 0 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-signature::before,
    .hero-signature::after {
        display: none;
    }

    .hero-arrow-down,
    .arrow-anchor {
        display: none;
    }

    .hero-subtitle {
        font-size: 10px;
    }

    .scroll-indicator-right {
        display: none;
    }


    .page-indicator {
        display: block;
        left: 4.78%;
        bottom: 10px;
    }

    .hero-bottom-container {
        bottom: 10px;
    }

    .hero-signature-icon {
        width: 450px;
    }

    .hero-arrow-down {
        width: 40px;
        height: 70px;
        bottom: -37px;
    }

    .section-arrow {
        display: none;
    }
    .header-right {
        display: none;
    }

    .portfolio-carousel {
        min-height: unset;
        height: auto;
        max-height: none;
        margin-bottom: 0;
        padding-bottom: 0;
        display: block;
        flex-direction: unset;
    }

    .carousel-container {
        background: #f3f3f1;
        height: auto;
        min-height: unset;
        max-height: none;
        padding: 0;
        margin: 0;
        border-bottom: 1px solid #e0e0e0;
        flex: unset;
    }

    .carousel-track {
        height: auto;
        min-height: unset;
        max-height: none;
        padding: 0;
        background-color: #fff;
        margin: 0;
    }

    .carousel-slide {
        height: auto;
        max-height: none;
        padding: 0;
        margin: 0;
    }

    .carousel-slide img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        object-position: center;
        aspect-ratio: 16/10;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .portfolio-carousel + * {
        margin-top: 0;
        padding-top: 0;
    }

    #contact {
        margin-top: 0;
        padding-top: 0;
    }

    .contact-minimal {
        margin-top: 0;
        padding-top: 0;
    }
}


/* ============================================================================
   MOBILE - Téléphone (jusqu'à 768px)
   ============================================================================ */

@media (max-width: 768px) {
    .hero-fullscreen {
        position: relative;
        height: 70vh;
        min-height: 70vh;
        max-height: 70vh;
        width: 100vw;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .hero-signature {
        display: none;
    }

    .hero-arrow-down,
    .arrow-anchor {
        display: none;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        height: 35vh;
        min-height: 35vh;
        max-height: 35vh;
        width: 100%;
        overflow: hidden;
    }

    .hero-background img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .hero-overlay {
        display: none;
    }

    .hero-content {
        position: absolute;
        top: 35vh;
        left: 0;
        height: 35vh;
        min-height: 35vh;
        max-height: 35vh;
        width: 100%;
        background: #fff;
        color: #333;
        text-align: left;
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        overflow: hidden;
        margin: 0;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.3;
        text-shadow: none;
        white-space: normal;
        color: #333;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        color: #666;
        text-shadow: none;
    }

    .scroll-indicator {
        display: none;
    }

    .scroll-indicator-right {
        display: none;
    }

    .page-indicator {
        position: absolute;
        left: 30px;
        bottom: 20px;
        font-family: "din-2014", sans-serif;
        font-style: normal;
        font-weight: 700;
        font-size: 9px;
        letter-spacing: 1px;
        color: #fff;
        z-index: 15;
        display: block;
    }

    .page-indicator strong {
        font-size: 16px;
        font-weight: 700;
    }

    .hero-bottom-container {
        bottom: 10px;
    }

    .hero-signature-icon {
        width: 180px;
    }

    .hero-arrow-down {
        bottom: -20px;
        width: 8px;
        height: 17px;
    }

    }


/* ============================================================================
   EXTRA SMALL - Très petit écran (jusqu'à 480px)
   ============================================================================ */

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
}


/* ============================================================================
   PAGE LOADER
   ============================================================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
    flex-direction: column;
}

.loader-logo {
    max-width: 200px;
    opacity: 1;
}

.loader-signature {
    max-width: 400px;
    margin-top: 20px;
    opacity: 1;
}

.signature-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    overflow: hidden;
}

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

@keyframes signatureReveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.loader-signature {
    animation: signatureReveal 2.5s ease-in-out forwards;
    transform-origin: center center;
}

.signature-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 20px;
    overflow: visible;
}

@keyframes navbarContentReveal {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

@keyframes navbarTraitReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.navbar.reveal .nav-links,
.navbar.reveal .nav-burger {
    animation: navbarContentReveal 0.8s ease-in-out forwards;
}

.navbar.reveal .nav-logo::after {
    animation: navbarTraitReveal 0.8s ease-in-out forwards;
}

/* ============================================================================
   PORTFOLIO CAROUSEL - Clean refactored styles
   ============================================================================ */

/* Mobile First - Hidden on mobile */
@media (max-width: 768px) {
    .portfolio-carousel {
        display: none;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }
}

/* Tablet - Vertical layout (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-carousel {
        width: 100vw;
        height: auto;
        position: relative;
        overflow: visible;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding-block: 60px;
        z-index: 10;
    }

    .carousel-header {
        background: #fff;
        padding: 40px 40px 80px 20px;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    .header-left {
        top: 20px;
        left: 10%
    }

    
    
    .header-title {
        font-family: "orpheuspro", serif;
        font-weight: 400;
        font-size: 36px;
        color: #111111;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .header-link {
        display: inline-block;
        font-family: "din-2014", sans-serif;
        font-weight: 700;
        font-size: 10px;
        letter-spacing: 2px;
        line-height: 1;
        text-transform: uppercase;
        color: #995447;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
        margin-top: 10px;
    }

    .header-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #995447;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .header-link:hover {
        color: #b06659;
    }

    .header-link:hover::after {
        transform: scaleX(1);
    }

    .carousel-container {
        width: 100%;
        aspect-ratio: 16 / 10;
        background: #f3f3f1;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .carousel-track {
        width: 100%;
        height: 100%;
        position: relative;
        display: flex;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel-track-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    .carousel-slide {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .slide-info-overlay {
        display: none;
    }

    .carousel-sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 35px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        z-index: 50;
        padding: 40px 0;
    }

    .sidebar-label {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-family: "din-2014", sans-serif;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #000;
        position: relative;
        padding: 20px 0;
    }

    .sidebar-label::before,
    .sidebar-label::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        background: #000;
        height: 15px;
    }

    .sidebar-label::before {
        top: 0;
    }

    .sidebar-label::after {
        bottom: 0;
    }

    .sidebar-project-name {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-family: "din-2014", sans-serif;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #999;
        max-height: 200px;
        overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .carousel-info-column {
        display: none;
    }

    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 100;
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-arrow svg {
        width: 50px;
        height: 50px;
        color: rgba(255, 255, 255, 0.8);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .carousel-arrow:hover svg {
        color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

    .carousel-arrow-prev {
        left: 20px;
    }

    .carousel-arrow-next {
        right: 55px;
    }
}

/* Desktop - Horizontal layout (1025px and up) */
@media (min-width: 1025px) {
    .portfolio-carousel {
        width: 100vw;
        height: 105vh;
        position: relative;
        overflow: visible;
        background: #fff;
        display: flex;
        flex-direction: row;
        padding-block: 110px;
    }

    .carousel-overflow-bg {
        position: absolute;
        bottom: 0px;
        left: 0;
        width: 100vw;
        height: 300px;
        background: #f3f3f1;
        z-index: auto;
        border-bottom: 20px solid rgb(229, 229, 227);
    }

    .carousel-header {
        width: 38%;
        background: #fff;
        padding: 80px 60px;
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 0;
    }

    
    .header-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 2%;
        left: 21%;
        margin-right:10%
    }

    .header-right {
        width:100%;
        height: 35%; 
        position: absolute;
        bottom: 50px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        padding-left: 40px;
        background: transparent;
        z-index: 0;
    }

    .wedding-map {
        position: fixed;
        bottom: 47vh;
        left: 6%;
        width: 320px;
        height: 220px;
        border-radius: 8px;
        overflow: hidden;
        z-index: 2000;
        visibility: visible;
        opacity: 1;
        display: block;
        background: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        pointer-events: auto;
    }

    .header-title {
        font-family: "orpheuspro", serif;
        font-weight: 400;
        font-size: 42px;
        color: #111111;
        line-height: 1.1;
        margin-bottom: 15px;
    }


    .header-link {
        display: inline-block;
        font-family: "din-2014", sans-serif;
        font-weight: 700;
        font-size: 10px;
        letter-spacing: 2px;
        line-height: 1;
        text-transform: uppercase;
        color: #995447;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
        margin-top: 10px;
    }

    .header-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #995447;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .header-link:hover {
        color: #b06659;
    }

    .header-link:hover::after {
        transform: scaleX(1);
    }

    .carousel-container {
        width: 62%;
        background: #000;
        display: block;
        position: relative;
        overflow: hidden;
        z-index: 2;
        aspect-ratio: 13/8;
    }

    .carousel-track {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        overflow: hidden;
        will-change: transform;
    }

    .carousel-track-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
        display: block;
        z-index: 1;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s ease, visibility 0.6s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-sizing: border-box;
        aspect-ratio: 13/8;
    }

    .carousel-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

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

    .slide-info-overlay {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        color: white;
    }

    .slide-info-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .slide-location {
        font-family: "orpheuspro", serif;
        font-size: 24px;
        font-weight: 400;
        color: #111111;
    }

    .slide-year {
        font-family: "din-2014", sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #999;
    }

    .slide-see-more {
        display: inline-block;
        font-family: "din-2014", sans-serif;
        font-weight: 700;
        font-size: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #995447;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
    }

    .slide-see-more::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #995447;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .slide-see-more:hover {
        color: #b06659;
    }

    .slide-see-more:hover::after {
        transform: scaleX(1);
    }

    .carousel-sidebar {
        position: absolute;
        right: unset;
        top: unset;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        z-index: 50;
        padding: 0 40px 0 5px;
        margin-top: 0;
        border: 1px solid #b4b6b8;
    }

    .sidebar-number {
        font-family: "orpheuspro", serif;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 1px;
        color: #b4b6b8;
        min-width: 50px;
        padding: 10px 8px;
        margin: 0px 0px 0px 5px;
        transition: transform 0.3s ease, font-size 0.3s ease;
        cursor: default;
        position: relative;
        transform-origin: left bottom;
    }

    .sidebar-number::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 90%;
        background: #b4b6b8;
    }

    .sidebar-number:hover {
        transform: scale(2.5);
        font-size: 18px;
        transform-origin: left bottom;
    }

    .sidebar-label {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-family: "din-2014", sans-serif;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #000;
        position: relative;
        padding: 0 20px;
    }

    .sidebar-label::before,
    .sidebar-label::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 1px;
        background: #000;
    }

    .sidebar-label::before {
        left: 0;
    }

    .sidebar-label::after {
        right: 0;
    }

    .sidebar-project-name {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        font-family: "din-2014", sans-serif;
        font-size: 10px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #999;
        max-width: 200px;
        overflow: visible;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .carousel-info-column {
        width: 100%;
        background: #fff;
        padding: 30px 40px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid #f0f0f0;
    }

    .carousel-location {
        font-family: "orpheuspro", serif;
        font-size: 24px;
        font-weight: 400;
        color: #111111;
    }

    .carousel-year {
        font-family: "din-2014", sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #999;
        margin-left: 15px;
    }

    .carousel-see-more {
        display: inline-block;
        font-family: "din-2014", sans-serif;
        font-weight: 700;
        font-size: 10px;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #995447;
        text-decoration: none;
        position: relative;
        transition: color 0.3s ease;
    }

    .carousel-see-more::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 1px;
        background: #995447;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
    }

    .carousel-see-more:hover {
        color: #b06659;
    }

    .carousel-see-more:hover::after {
        transform: scaleX(1);
    }

    .carousel-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 100;
        transition: opacity 0.3s ease, transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-arrow svg {
        width: 60px;
        height: 60px;
        color: rgba(255, 255, 255, 0.8);
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .carousel-arrow:hover svg {
        color: rgba(255, 255, 255, 1);
        transform: scale(1.1);
    }

    .carousel-arrow-prev {
        left: 25px;
        z-index: 101;
    }

    .carousel-arrow-next {
        right: 25px;
        z-index: 101;
    }
}

.carousel-spacer-top,
    .carousel-spacer-bottom {
        flex: 1;
        background: transparent;
        width: 50%;
        margin-left: auto;
    }

    .carousel-spacer-top {
        background: linear-gradient(to bottom, #f3f3f1, transparent);
    }

    .carousel-spacer-bottom {
        background: linear-gradient(to top, #f3f3f1, transparent);
    }

    /* Global carousel styles */
.carousel-container:focus-within .carousel-arrow {
    opacity: 1;
}

.carousel-slide.loading {
    background: #1a1a1a;
}

.carousel-slide.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    color: #666;
    font-family: 'Cormorant Garamond', serif;
}

.map-error p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-error p:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================================================
   MAPBOX CUSTOM MARKERS
   ============================================================================ */

.mapbox-custom-marker {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapbox-custom-marker .marker-icon {
    font-size: 20px;
    background: linear-gradient(135deg, #a95d4f 0%, #c4776a 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(169, 93, 79, 0.3);
    border: 3px solid white;
    position: relative;
    z-index: 2;
}

.mapbox-custom-marker .marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(169, 93, 79, 0.3);
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Styles pour les popups Mapbox */
.mapboxgl-popup-content {
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mapboxgl-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
}

.mapboxgl-popup-tip {
    border-top-color: white;
}

.map-popup h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
}

.map-popup p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* ============================================================================
   MAP SIGNATURE
   ============================================================================ */

.map-signature-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.map-signature-container svg {
    display: block;
    width: 100%;
    height: auto;
}


/* ============================================================================
   DEMO CAROUSEL SECTION - Two Column Layout
   ============================================================================ */

section.demo-carousel-section {
    padding: 0;
    background: #fff;
    width: 100%;
    position: relative;
    display: block;
    visibility: visible;
    z-index: auto; /* Supprime le z-index négatif qui causait le problème */
    overflow: visible;
}

@media (max-width: 1024px) {
    section.demo-carousel-section {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    section.demo-carousel-section {
        height: auto;
        overflow: visible;
    }
}

/* ============================================================================
   PAGE NUMBER VERTICAL - Numéro de page dans colonne droite
   ============================================================================ */

.num-page {
	position: absolute;
	right: 3em;
	top: 25px;
	z-index: 99;
	transform: rotate(90deg);
}

/* Positionnement en haut de la section entière en desktop */
@media (min-width: 1025px) {
	.demo-carousel-section {
		position: relative; /* Conteneur de référence */
	}
	
	.num-page {
		position: absolute;
		right: 3em;
		bottom: auto;
		z-index: 99;
		transform: rotate(90deg);
		margin-top: 0;
		padding-top: 0;
	}
}

.num-page img {
	display: inline-block !important;
	max-width: 25px;
	vertical-align: middle;
	margin-right: 5px;
}

.num-page p {
	display: inline-block;
	vertical-align: middle;
	font-family: "din-2014", sans-serif;
	font-style: normal;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8b8d90;
	line-height: 1;
	margin-bottom: 0;
}

.num-page p span#currentPageNumber {
	font-size: 14px;
	font-weight: 600;
}

.num-page p span#totalPageNumber {
	font-size: 10px;
	font-weight: 400;
}

.demo-carousel-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    visibility: visible;
    /* Plus de dimensions fixes ici - laissé aux enfants */
}

@media (min-width: 769px) and (max-width: 1024px) {
    .demo-carousel-column {
        flex: unset;
        display: block;
    }
}

@media (max-width: 768px) {
    .demo-carousel-column {
        flex: unset;
        display: block;
        overflow: visible;
    }
}

/* Desktop - Force les colonnes à avoir la même hauteur */
@media (min-width: 1025px) {
    .demo-carousel-column {
        height: 100%;
        min-height: 100%;
    }
}

/* Dimensions spécifiques pour les enfants */
/* Colonne gauche - Carousel d'images */
@media (min-width: 1025px) {
    .demo-carousel-column:first-child .demo-carousel-content {
        aspect-ratio: 1.080 / 1;
        width: 100%;
        height: auto;
        max-height: 100vh;
        overflow: hidden;
    }
}

/* Colonne droite - Contenu texte */
@media (min-width: 1025px) {
    .demo-carousel-column:last-child .demo-text-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        overflow-y: auto;
    }
}

.demo-carousel-column:first-child {
    background: #000;
    width: 100%;
}

.demo-carousel-column:last-child {
    background: #fff;
}

.demo-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 100%;
    padding: 40px;
    overflow: hidden;
    position: relative;
    visibility: visible;
}

@media (max-width: 768px) {
    .demo-text-content {
        height: auto;
        overflow: visible;
        padding: 20px;
    }
}

.demo-text-header {
    margin-bottom: 40px;
}

.demo-text-title {
    font-family: "orpheuspro", serif;
    font-size: 46px;
    font-weight: 400;
    color: #111111;
    line-height: 1.2;
    margin-bottom: 25px;
}

.demo-text-subtitle {
    font-family: "din-2014", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 25px;
}

.demo-text-body {
    flex: 1;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
}

.demo-text-body .btn-voir-plus {
    align-self: flex-start;
    margin-top: 20px;
    margin-left: 120px;
}

.field-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0;
    margin-bottom: 24px;
    position: relative;
}

.field-label {
    font-family: "brandon-grotesque", sans-serif;
    font-style: normal;
    color: #111111;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 2;
    transform: translateY(4px);
    grid-column: 1;
}

.field-value {
    font-family: "brandon-grotesque", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    color: #b4b6b8;
    line-height: 1.6;
    grid-column: 2;
    padding-left: 40px;
}

.field-sep {
    grid-column: 2;
    margin-top: 16px;
    margin-bottom: 8px;
    padding-left: 40px;
    box-sizing: border-box;
    height: 1px;
    background: linear-gradient(to right, #ccc 60%, transparent 40%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    position: relative;
    margin-left: 40px;
    width: calc(100% - 40px);
}

.field-sep::before {
    content: '';
    display: block;
}

.demo-text-item {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.demo-text-item.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.demo-carousel-white-space {
    height: 60px;
    background: #fff;
    width: 100%;
    display: block;
    visibility: visible;
}

#demoTextContent .field-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    margin-bottom: 0;
    gap: 0;
}

#demoTextContent .field-label {
    color: rgb(17, 17, 17);
    font-weight: 700;
    font-family: brandon-grotesque, sans-serif;
    font-style: normal;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.6;
    flex-shrink: 0;
    min-width: 80px;
    transform: none;
}

#demoTextContent .field-value {
    color: #b4b6b8;
    font-weight: 400;
    font-family: brandon-grotesque, sans-serif;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    text-align: left;
    position: relative;
    margin-left: 20px;
    padding-left: 0;
    padding-bottom: 8px;
    margin-bottom: 0;
    border-bottom: 1px dashed #d0d0d0;
}

#demoTextContent .field-row:last-child .field-value {
    border-bottom: none;
    padding-bottom: 0;
}

#demoTextContent .field-value::after {
    display: none;
}

#demoTextContent .field-sep {
    display: none;
}

.demo-portfolio-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
    display: block;
    visibility: visible;
}

.demo-carousel-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: block;
    visibility: visible;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .demo-carousel-content {
        height: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .demo-carousel-content {
        height: auto;
        width: 100%;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .demo-carousel-content {
        height: 100%;
        width: 100%;
    }
}

.demo-carousel-track-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .demo-carousel-track-wrapper {
        height: 100vw;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .demo-carousel-track-wrapper {
        height: 100vw;
    }
}

.demo-carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .demo-carousel-track {
        height: 100%;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .demo-carousel-track {
        height: 100%;
    }
}

.demo-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    height: 100%;
}

.demo-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.demo-carousel-dots {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    visibility: visible;
}

.demo-carousel-dots li {
    margin: 0;
    padding: 0;
    display: block;
    visibility: visible;
}

.demo-carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: block;
    visibility: visible;
}

.demo-carousel-dots li.active button {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.demo-carousel-dots button:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.demo-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    visibility: visible;
}

.demo-carousel-arrow svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease, transform 0.3s ease;
}

.demo-carousel-arrow:hover svg {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.demo-carousel-arrow-prev {
    left: 10px;
}

.demo-carousel-arrow-next {
    right: 10px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .demo-carousel-container {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
    
    .demo-carousel-column {
        width: 100%;
        flex: unset;
    }
    
    .demo-carousel-column:first-child {
        width: 100%;
        aspect-ratio: 1.080 / 1;
        max-height: 60vh;
    }
    
    .demo-carousel-column:last-child {
        aspect-ratio: auto;
        height: auto;
        background: #fff;
    }
    
    .demo-text-content {
        padding: 30px;
    }
    
    .demo-text-title {
        font-size: 46px;
    }
    
    .demo-carousel-white-space {
        height: 50px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .demo-carousel-container {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
    
    .demo-carousel-column {
        aspect-ratio: 1.080 / 1;
        width: 100%;
    }
    
    .demo-carousel-column:first-child {
        width: 100%;
        aspect-ratio: 1.080 / 1;
        max-height: 60vh;
    }
    
    .demo-carousel-column:last-child {
        aspect-ratio: auto;
        height: auto;
        background: #fff;
    }
    
    .demo-text-content {
        padding: 30px;
        height: auto;
        overflow: visible;
    }
    
    .demo-text-title {
        font-size: 46px;
    }
    
    .demo-carousel-white-space {
        height: 50px;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .demo-carousel-container {
        flex-direction: column;
        gap: 20px;
        height: auto;
    }
    
    .demo-carousel-column {
        width: 100%;
    }
    
    .demo-carousel-column:first-child {
        width: 100%;
        aspect-ratio: 1.080 / 1;
        max-height: 50vh;
        overflow: hidden;
        flex: none;
    }
    
    .demo-carousel-column:last-child {
        aspect-ratio: auto;
        height: auto;
        background: #fff;
    }
    
    .demo-text-content {
        padding: 30px;
    }
    
    .demo-text-title {
        font-size: 46px;
    }
    
    .demo-carousel-white-space {
        height: 50px;
    }
}

/* Desktop - Section adapts proportionnellement avec aspect-ratio 1.080/1 */
@media (min-width: 1025px) {
    section.demo-carousel-section {
        width: 100%;
        max-width: 100%;
        margin-top: -220px;
        overflow: visible;
        position: relative;
        z-index: 1;
    }
    
    .demo-carousel-container {
        width: 100%;
        max-height: 100vh;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 1fr !important;
        align-items: stretch !important;
    }
}

@media (max-width: 768px) {
    section.demo-carousel-section {
        position: static; /* Évite que les sections suivantes se superposent */
        height: auto; /* Permet au contenu de s'adapter naturellement */
        overflow: visible;
    }
    
    /* Colonne gauche - Carousel en mobile */
    .demo-carousel-column:first-child .demo-carousel-content {
        aspect-ratio: 1.080 / 1; /* Garde le ratio pour l'image */
        width: 100%;
        height: auto;
        max-height: 85vh; /* Limite raisonnable */
    }
    
    .demo-carousel-column {
        height: auto; /* Permet aux colonnes de s'adapter au contenu */
        max-height: none; /* Supprime la limite */
    }
    
    .demo-carousel-column:first-child {
        width: 100%;
        max-height: 85vh; /* Limite raisonnable pour l'image */
    }
    
    .demo-text-content {
        padding: 20px;
        height: auto; /* Permet au contenu de s'étendre */
        overflow: visible; /* Évite le scroll interne */
    }
    
    .demo-text-title {
        font-size: 46px;
    }
    
    .demo-carousel-white-space {
        height: 40px;
    }
}

/* ============================================================================
   SECTION PORTFOLIO BOTTOM - Fond différent après portfolio
   ============================================================================ */

.portfolio-bottom-section {
    width: 100%;
    height: 20vh;
    background-color: #F3F3F1;
}
