:root {
    --realisations-primary: #e66b18;
    --realisations-primary-dark: #b94c08;
    --realisations-dark: #172027;
    --realisations-dark-soft: #25313a;
    --realisations-text: #59636d;
    --realisations-light: #f5f6f7;
    --realisations-white: #ffffff;
    --realisations-border: #e4e7ea;
    --realisations-radius: 24px;
    --realisations-shadow: 0 24px 60px rgba(23, 32, 39, 0.12);
}

.Realisations,
.Realisations *,
.Realisations *::before,
.Realisations *::after {
    box-sizing: border-box;
}

.Realisations {
    width: 100%;
    overflow: hidden;
    background: var(--realisations-white);
    color: var(--realisations-dark);
}

.Realisations img {
    display: block;
    max-width: 100%;
}

.realisations-label {
    display: inline-flex;
    margin-bottom: 18px;
    align-items: center;
    gap: 12px;
    color: #ff9a53;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.realisations-label::before {
    display: block;
    width: 38px;
    height: 3px;
    content: "";
    border-radius: 20px;
    background: currentColor;
}

.realisations-label-dark {
    color: var(--realisations-primary);
}

/* HERO */

.realisations-hero {
    position: relative;
    display: flex;
    min-height: 650px;
    padding: 100px max(6vw, 24px);
    align-items: center;
    overflow: hidden;
}

.realisations-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realisations-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 21, 26, 0.95) 0%,
            rgba(15, 21, 26, 0.78) 50%,
            rgba(15, 21, 26, 0.2) 100%
        );
}

.realisations-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    color: var(--realisations-white);
}

.realisations-hero h1 {
    margin: 0 0 26px;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.realisations-hero-content > p {
    max-width: 690px;
    margin: 0 0 35px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
}

.realisations-hero-button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: var(--realisations-primary);
    color: var(--realisations-white);
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.realisations-hero-button:hover {
    background: var(--realisations-primary-dark);
    box-shadow: 0 14px 34px rgba(230, 107, 24, 0.32);
    transform: translateY(-2px);
}

/* INTRODUCTION */

.realisations-introduction {
    display: grid;
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 105px 0 75px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: end;
    gap: clamp(40px, 8vw, 100px);
}

.realisations-introduction h2,
.realisations-empty h2,
.realisations-contact h2 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.realisations-introduction-text {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
}

.realisations-introduction-text p {
    margin: 0;
    color: var(--realisations-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.realisations-count {
    display: inline-flex;
    padding: 9px 15px;
    border: 1px solid rgba(230, 107, 24, 0.2);
    border-radius: 999px;
    background: rgba(230, 107, 24, 0.08);
    color: var(--realisations-primary-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

/* GALERIE */

.realisations-gallery-section {
    padding: 0 24px 115px;
    scroll-margin-top: 90px;
}

.realisations-gallery {
    display: grid;
    width: min(1350px, 100%);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.realisations-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--realisations-dark);
    box-shadow: 0 14px 38px rgba(23, 32, 39, 0.11);
}

.realisations-card:nth-child(6n + 1),
.realisations-card:nth-child(6n + 5) {
    grid-column: span 2;
}

.realisations-card-link {
    position: relative;
    display: block;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
    color: var(--realisations-white);
    text-decoration: none;
}

.realisations-card:nth-child(6n + 1) .realisations-card-link,
.realisations-card:nth-child(6n + 5) .realisations-card-link {
    min-height: 470px;
}

.realisations-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition:
        transform 0.65s ease,
        filter 0.35s ease;
}

.realisations-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(
            0deg,
            rgba(14, 20, 25, 0.82) 0%,
            rgba(14, 20, 25, 0.06) 55%,
            transparent 100%
        );
    transition: background-color 0.3s ease;
}

.realisations-card-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(20, 28, 34, 0.62);
    color: var(--realisations-white);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.realisations-card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--realisations-white);
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.realisations-card-link:hover img,
.realisations-card-link:focus-visible img {
    filter: brightness(0.84);
    transform: scale(1.055);
}

.realisations-card-link:hover .realisations-card-action,
.realisations-card-link:focus-visible .realisations-card-action {
    opacity: 1;
    transform: translateY(0);
}

.realisations-card-link:focus-visible {
    outline: 4px solid rgba(230, 107, 24, 0.4);
    outline-offset: -4px;
}

.realisations-gallery-help {
    margin: 28px auto 0;
    color: var(--realisations-text);
    font-size: 0.9rem;
    text-align: center;
}

/* ÉTAT VIDE */

.realisations-empty {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(45px, 7vw, 85px);
    border: 1px solid var(--realisations-border);
    border-radius: var(--realisations-radius);
    background:
        radial-gradient(
            circle at top right,
            rgba(230, 107, 24, 0.12),
            transparent 40%
        ),
        var(--realisations-light);
    text-align: center;
}

.realisations-empty-number {
    display: block;
    margin-bottom: 20px;
    color: var(--realisations-primary);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.realisations-empty h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 3.3rem);
}

.realisations-empty p {
    margin: 0;
    color: var(--realisations-text);
    line-height: 1.8;
}

/* VISIONNEUSE CSS */

.realisations-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    padding: 30px;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.realisations-lightbox:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.realisations-lightbox-background {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 15, 0.94);
    cursor: zoom-out;
}

.realisations-lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(1400px, 100%);
    max-height: calc(100vh - 60px);
    border-radius: 18px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0d1216;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.realisations-lightbox-content > img {
    display: block;
    width: 100%;
    max-height: calc(100vh - 60px);
    object-fit: contain;
}

.realisations-lightbox-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 45px 30px 25px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    background:
        linear-gradient(
            0deg,
            rgba(8, 12, 15, 0.92) 0%,
            rgba(8, 12, 15, 0) 100%
        );
    color: var(--realisations-white);
}

.realisations-lightbox-caption span {
    color: #ff9a53;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.realisations-lightbox-caption strong {
    max-width: 70%;
    font-size: 1rem;
    text-align: right;
}

.realisations-lightbox-close,
.realisations-lightbox-navigation {
    position: absolute;
    z-index: 4;
    display: flex;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(18, 25, 30, 0.7);
    color: var(--realisations-white);
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.realisations-lightbox-close:hover,
.realisations-lightbox-navigation:hover {
    background: var(--realisations-primary);
}

.realisations-lightbox-close {
    top: 18px;
    right: 18px;
    font-size: 2rem;
}

.realisations-lightbox-navigation {
    top: 50%;
    font-size: 2.3rem;
    transform: translateY(-50%);
}

.realisations-lightbox-navigation:hover {
    transform: translateY(-50%) scale(1.06);
}

.realisations-lightbox-previous {
    left: 18px;
}

.realisations-lightbox-next {
    right: 18px;
}

/* APPEL À L’ACTION */

.realisations-contact {
    display: flex;
    width: min(1250px, calc(100% - 48px));
    margin: 0 auto 115px;
    padding: 65px 70px;
    border-radius: var(--realisations-radius);
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.2),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--realisations-primary),
            var(--realisations-primary-dark)
        );
    color: var(--realisations-white);
}

.realisations-contact .realisations-label {
    color: var(--realisations-white);
}

.realisations-contact h2 {
    margin-bottom: 18px;
}

.realisations-contact p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.83);
    line-height: 1.75;
}

.realisations-contact-button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 27px;
    border-radius: 12px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--realisations-white);
    color: var(--realisations-primary-dark);
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.realisations-contact-button:hover {
    background: #fff4ec;
    box-shadow: 0 15px 35px rgba(82, 32, 0, 0.2);
    transform: translateY(-2px);
}

/* TABLETTE */

@media screen and (max-width: 1000px) {
    .realisations-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .realisations-card:nth-child(6n + 1),
    .realisations-card:nth-child(6n + 5) {
        grid-column: auto;
    }

    .realisations-card-link,
    .realisations-card:nth-child(6n + 1) .realisations-card-link,
    .realisations-card:nth-child(6n + 5) .realisations-card-link {
        min-height: 370px;
    }
}

@media screen and (max-width: 800px) {
    .realisations-introduction {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .realisations-contact {
        padding: 50px;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* MOBILE */

@media screen and (max-width: 650px) {
    .realisations-hero {
        min-height: 610px;
        padding-top: 110px;
    }

    .realisations-hero-overlay {
        background: rgba(15, 21, 26, 0.8);
    }

    .realisations-hero h1 {
        font-size: 3.1rem;
    }

    .realisations-hero-button {
        width: 100%;
    }

    .realisations-introduction {
        width: calc(100% - 32px);
        padding: 80px 0 55px;
    }

    .realisations-gallery-section {
        padding: 0 12px 80px;
    }

    .realisations-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .realisations-card-link,
    .realisations-card:nth-child(6n + 1) .realisations-card-link,
    .realisations-card:nth-child(6n + 5) .realisations-card-link {
        min-height: 330px;
    }

    .realisations-card-action {
        opacity: 1;
        transform: none;
    }

    .realisations-lightbox {
        padding: 10px;
    }

    .realisations-lightbox-content {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .realisations-lightbox-content > img {
        max-height: calc(100vh - 20px);
    }

    .realisations-lightbox-caption {
        padding: 50px 18px 18px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .realisations-lightbox-caption strong {
        max-width: 100%;
        text-align: left;
    }

    .realisations-lightbox-close,
    .realisations-lightbox-navigation {
        width: 44px;
        height: 44px;
    }

    .realisations-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .realisations-lightbox-previous {
        left: 12px;
    }

    .realisations-lightbox-next {
        right: 12px;
    }

    .realisations-contact {
        width: calc(100% - 24px);
        margin-bottom: 80px;
        padding: 42px 25px;
    }

    .realisations-contact-button {
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    .realisations-hero h1 {
        font-size: 2.65rem;
    }

    .realisations-card-link,
    .realisations-card:nth-child(6n + 1) .realisations-card-link,
    .realisations-card:nth-child(6n + 5) .realisations-card-link {
        min-height: 285px;
    }
}