/*-------------------------------------------*/
/*  SINGLE REALISATION                       */
/*-------------------------------------------*/

.laf-realisation-single {
    padding-top: 24px;
    padding-bottom: 56px;
}

.laf-realisation-wrap {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

.laf-realisation-wrap > article.laf-realisation {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
}

/*-------------------------------------------*/
/*  HERO                                     */
/*-------------------------------------------*/

.laf-realisation-hero {
    position: relative;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    background-color: #faf9f6;
}

.laf-realisation-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image: var(--laf-hero-bg);
    background-repeat: no-repeat;
    background-position: right 50px;
    background-size: min(62vw, 1100px) auto;
    opacity: 1;
}



.laf-realisation-hero__inner {
    position: relative;
    z-index: 2;
}

.laf-realisation-hero__top {
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin-bottom: 18px;
}

.laf-realisation-breadcrumbs-wrap {
    position: relative;
    width: var(--global-content-width);
    max-width: var(--global-content-width);
    margin: 0 auto 16px;
}

.laf-realisation-breadcrumbs,
.laf-realisation-breadcrumbs nav,
.laf-realisation-breadcrumbs p,
.laf-realisation-breadcrumbs .rank-math-breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-width: 0;
}

.laf-realisation-breadcrumbs {
    max-width: var(--global-content-width);
    margin: 0 auto;
    font-size: .92em;
    color: var(--global-palette6);
}

.laf-realisation-breadcrumbs a {
    color: var(--global-palette6);
    text-decoration: none;
}

.laf-realisation-breadcrumbs a:hover {
    color: var(--global-palette6);
    text-decoration: none;
}

.laf-realisation-breadcrumbs .separator {
    color: var(--global-palette6);
}

.laf-realisation-breadcrumbs .current {
    color: var(--global-palette5);
}

.laf-realisation-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
    gap: 32px;
    align-items: end;
    min-height: 640px;
    overflow: visible;
}

.laf-realisation-hero__content {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding-bottom: 24px;
}

.laf-realisation-category {
    margin-bottom: 6px;
}

.laf-realisation-category .product-single-category,
.laf-realisation-category .single-category {
    display: inline-block;
    color: var(--global-palette1);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.laf-realisation-hero .entry-title {
    max-width: 760px;
    margin: 0 0 20px;
}

.laf-realisation-meta {
    margin-top: -10px;
    font-size: 0.9rem;
    color: var(--global-palette6);
    font-weight: 500;
}

.laf-realisation-meta time {
    display: inline-block;
    opacity: 0.85;
}

.laf-realisation-intro {
    position: relative;
    max-width: 620px;
    margin-bottom: 24px;
    padding: 24px 48px 24px 0;
    z-index: 0;
}

.laf-realisation-intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    --bg: rgba(250, 249, 246, 0.78);

    --fade-soft: rgba(0, 0, 0, 0.15);
    --fade-mid: rgba(0, 0, 0, 0.4);
    --fade-strong: rgba(0, 0, 0, 0.7);

    --edge-1: 6%;
    --edge-2: 12%;
    --edge-3: 18%;
    --center-start: 28%;
    --center-end: 72%;

    background: var(--bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    --mask-x: linear-gradient(
        to right,
        transparent 0%,
        var(--fade-soft) var(--edge-1),
        var(--fade-mid) var(--edge-2),
        var(--fade-strong) var(--edge-3),
        black var(--center-start),
        black var(--center-end),
        var(--fade-strong) calc(100% - var(--edge-3)),
        var(--fade-mid) calc(100% - var(--edge-2)),
        var(--fade-soft) calc(100% - var(--edge-1)),
        transparent 100%
    );

    --mask-y: linear-gradient(
        to bottom,
        transparent 0%,
        var(--fade-soft) var(--edge-1),
        var(--fade-mid) var(--edge-2),
        var(--fade-strong) var(--edge-3),
        black var(--center-start),
        black var(--center-end),
        var(--fade-strong) calc(100% - var(--edge-3)),
        var(--fade-mid) calc(100% - var(--edge-2)),
        var(--fade-soft) calc(100% - var(--edge-1)),
        transparent 100%
    );

    -webkit-mask-image: var(--mask-x), var(--mask-y);
    -webkit-mask-composite: intersect;

    mask-image: var(--mask-x), var(--mask-y);
    mask-composite: intersect;
}

.laf-realisation-intro p:last-child {
    margin-bottom: 0;
}

.laf-realisation-hero-specs {
    width: min(560px, 100%);
    margin-top: 18px;
    position: relative;
    z-index: 3;
}

/*-------------------------------------------*/
/*  HERO MEDIA                               */
/*-------------------------------------------*/

.laf-realisation-hero__media {
    position: relative;
    z-index: 3;
    min-width: 0;
    min-height: 640px;

    display: block;
    align-items: end;
    justify-items: end;
}

/*-------------------------------------------*/
/*  CARTE PRODUIT HERO FLOTTANTE             */
/*-------------------------------------------*/

.laf-hero-product-floating {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 280px;
    pointer-events: auto;
}

.laf-hero-product-card {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    pointer-events: auto;
}

.laf-hero-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    color: inherit;
}

.laf-hero-product-card__image {
    margin-bottom: 10px;
    text-align: center;
}

.laf-hero-product-card__image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    pointer-events: none;
}

.laf-hero-product-card__content {
    min-width: 0;
}

.laf-hero-product-card__eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.laf-hero-product-card__title {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--global-palette2);
}

.laf-hero-product-card__cta {
    font-size: 13px;
    line-height: 1.4;
    color: var(--global-palette1);
    font-weight: 600;
}

/*-------------------------------------------*/
/*  SECTIONS                                 */
/*-------------------------------------------*/

.laf-realisation-section {
    margin-bottom: 32px;
    padding: 24px;
}

.laf-realisation-section-heading {
    margin-bottom: 18px;
}

.laf-realisation-section-heading h2 {
    margin: 0;
}

.laf-realisation-editor-content > *:last-child {
    margin-bottom: 0;
}

/*-------------------------------------------*/
/*  LAYOUT SECTIONS TEXTE / GALERIE          */
/*-------------------------------------------*/

.laf-realisation-section__layout {
    display: grid;
    gap: 28px;
    align-items: start;
    margin-top: 22px;
}

.laf-realisation-section__layout--left,
.laf-realisation-section__layout--right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.laf-realisation-section__layout--left .laf-realisation-section__gallery {
    order: 1;
}

.laf-realisation-section__layout--left .laf-realisation-section__text {
    order: 2;
}

.laf-realisation-section__layout--right .laf-realisation-section__text {
    order: 1;
}

.laf-realisation-section__layout--right .laf-realisation-section__gallery {
    order: 2;
}

.laf-realisation-section__layout--top,
.laf-realisation-section__layout--bottom {
    grid-template-columns: 1fr;
}

.laf-realisation-section__layout--top .laf-realisation-section__text {
    order: 1;
}

.laf-realisation-section__layout--top .laf-realisation-section__gallery {
    order: 2;
}

.laf-realisation-section__layout--bottom .laf-realisation-section__gallery {
    order: 1;
}

.laf-realisation-section__layout--bottom .laf-realisation-section__text {
    order: 2;
}

.laf-realisation-section__text,
.laf-realisation-section__gallery {
    min-width: 0;
}

.laf-realisation-section__text .laf-realisation-editor-content {
    margin-top: 0;
}

/*-------------------------------------------*/
/*  LIGHTBOX                                 */
/*-------------------------------------------*/

.laf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.laf-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.laf-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.28s ease;
}

.laf-lightbox__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.laf-lightbox__media-wrap {
    position: relative;
    width: calc(100vw - 80px);
    height: calc(100vh - 80px);
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.laf-lightbox.is-open .laf-lightbox__media-wrap {
    transform: scale(1);
    opacity: 1;
}

.laf-lightbox__img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.laf-lightbox__img.is-active {
    opacity: 1;
}

.laf-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 28, 40, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.laf-lightbox__close:hover {
    background: rgba(20, 28, 40, 0.78);
}

.laf-lightbox__close span {
    font-size: 34px;
    line-height: 1;
    transform: translateY(-1px);
}

.laf-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 28, 40, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.42s ease, background 0.2s ease;
}

.laf-lightbox__nav:hover {
    background: rgba(20, 28, 40, 0.78);
}

.laf-lightbox__nav span {
    font-size: 40px;
    line-height: 1;
    transform: translateY(-2px);
}

.laf-lightbox__nav--prev {
    left: 18px;
}

.laf-lightbox__nav--next {
    right: 18px;
}

.laf-lightbox.show-left-nav .laf-lightbox__nav--prev {
    opacity: 1;
}

.laf-lightbox.show-right-nav .laf-lightbox__nav--next {
    opacity: 1;
}

.laf-lightbox__dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.laf-lightbox__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.laf-lightbox__dot.is-active {
    background: rgba(255,255,255,0.96);
    transform: scale(1.15);
}

/*-------------------------------------------*/
/*  RESPONSIVE                               */
/*-------------------------------------------*/

@media (max-width: 1400px) {
    .laf-realisation-wrap {
        max-width: 1440px;
    }

    .laf-realisation-hero::before {
        background-size: min(66vw, 980px) auto;
    }

    .laf-realisation-hero__grid {
        grid-template-columns: minmax(0, 640px) minmax(220px, 1fr);
        min-height: 580px;
    }

    .laf-realisation-hero__media {
        min-height: 580px;
        grid-template-columns: 1fr 250px;
    }

    .laf-hero-product-floating {
        max-width: 250px;
    }
}

@media (max-width: 1200px) {
    .laf-realisation-wrap {
        max-width: 1280px;
    }

    .laf-realisation-hero::before {
        background-size: min(72vw, 860px) auto;
        background-position: right bottom;
    }

    .laf-realisation-hero__grid {
        grid-template-columns: minmax(0, 1fr) 240px;
        min-height: 520px;
    }

    .laf-realisation-hero__media {
        min-height: 520px;
        grid-template-columns: 1fr 230px;
    }

    .laf-hero-product-floating {
        max-width: 230px;
    }
}

@media (max-width: 900px) {
    .laf-realisation-section__layout--left,
    .laf-realisation-section__layout--right {
        grid-template-columns: 1fr;
    }
    
    .laf-realisation-section__layout--left .laf-realisation-section__gallery,
    .laf-realisation-section__layout--left .laf-realisation-section__text,
    .laf-realisation-section__layout--right .laf-realisation-section__gallery,
    .laf-realisation-section__layout--right .laf-realisation-section__text,
    .laf-realisation-section__layout--top .laf-realisation-section__gallery,
    .laf-realisation-section__layout--top .laf-realisation-section__text,
    .laf-realisation-section__layout--bottom .laf-realisation-section__gallery,
    .laf-realisation-section__layout--bottom .laf-realisation-section__text {
        order: initial;
    }

    .laf-realisation-hero::before {
        background-size: 96vw auto;
        background-position: center bottom;
        opacity: 0.22;
    }

    

    .laf-realisation-hero__grid {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
    }

    .laf-realisation-hero__content {
        padding-bottom: 0;
    }

    .laf-realisation-hero__media {
        min-height: 0;
        grid-template-columns: 1fr;
        justify-items: stretch;
        align-items: start;
    }

/*
    .laf-hero-product-floating {
        width: 100%;
        max-width: 100%;
    }
    */
}

@media (max-width: 767px) {
    .laf-realisation-single {
        padding-top: 18px;
        padding-bottom: 38px;
    }

    .laf-realisation-wrap {
        padding: 0 16px;
    }

    .laf-realisation-hero {
        margin-bottom: 34px;
    }

    .laf-realisation-hero__top {
        margin-bottom: 12px;
    }

    .laf-realisation-intro {
        max-width: 100%;
        padding: 18px 14px 18px 0;
        margin-bottom: 18px;
    }

    .laf-realisation-hero-specs {
        width: 100%;
    }

    .laf-realisation-hero::before {
        background-size: 122vw auto;
        background-position: center bottom;
        opacity: 0.16;
    }

    .laf-realisation-section {
        padding: 18px;
        margin-bottom: 24px;
    }

    .laf-lightbox__stage {
        padding: 18px;
    }

    .laf-lightbox__img {
        max-width: calc(100vw - 36px);
        max-height: calc(100vh - 36px);
    }

    .laf-lightbox__media-wrap {
        width: calc(100vw - 36px);
        height: calc(100vh - 36px);
        max-width: calc(100vw - 36px);
        max-height: calc(100vh - 36px);
    }

    .laf-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .laf-lightbox__nav span {
        font-size: 32px;
    }

    .laf-lightbox__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .laf-realisation-breadcrumbs .rank-math-breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .laf-realisation-breadcrumbs .current {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
    }
}