:root {
    --primary-color: #0075BE;
    --white-color: #FFFFFF;
    --background-color: #EEF7FC;
    --button-color: #0075BE;
    --button-hover-color: #001928;
    --button-light-color: #F5F6F7;
    --font-color: #003758;
    --text-font-color: #001928;
    --error-color: #DB0000
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    font-family: "Heebo", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--text-font-color);
    font-size: 16px;
}

label,
button,
input {
    font-family: "Heebo", sans-serif;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
div,
section {
    display: block;
}

h1 {
    font-weight: 400;
    color: var(--font-color);

}

h2 {
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 2.75rem;
    color: var(--font-color);

    sup {
        line-height: 0 !important;
        font-size: 0.53em !important;
        vertical-align: super !important;
    }

    @media screen and (max-width: 800px) {
        font-size: 1.875rem;
        line-height: 2.1875rem;
    }
}



strong {
    font-weight: 700;
}


main {
    font-size: 1.125rem;
    line-height: 150%;
    scroll-margin-top: 100px;

    @media screen and (max-width: 800px) {
        font-size: 1rem;
    }

    &.bg-color {
        background-color: var(--background-color);
    }
}

a {
    color: var(--text-font-color);
    display: inline-flex;
    align-items: center;
    gap: 3px;

    img.icon {
        display: block;
        width: 19px;
        height: 19px;
    }

    &:hover {
        text-decoration: none;
    }
}

a[target="_blank"] {
    &:after {
        content: '';
        width: 20px;
        height: 20px;
        background: url(../img/icons/link-external-bh.svg) no-repeat center center;
        background-size: contain;
    }
}

#onetrust-policy-text a[target="_blank"] {
    &:after {
        background: url(../img/icons/link-external-b.svg) no-repeat center center;
    }
}

.center-content {
    margin-inline: auto;
    width: 100%;
    max-width: 1200px;
    padding-inline: 20px;
}

/* button */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 20px 32px;
    background-color: var(--button-color);
    color: var(--white-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color .2s, color .2s;

    &.center {
        justify-content: center;
    }

    &.sm {
        padding: 12px 20px;
        font-size: 14px;
        line-height: 16px;
    }

    &[target="_blank"] {
        &:after {
            margin-top: -2px;
        }
    }

    &:hover {
        background-color: var(--button-hover-color);
        text-decoration: underline;
    }

    &.ghost {
        background: none;
        color: var(--button-color);
        font-weight: bold;
    }

    &.white {
        background-color: var(--white-color);
        color: var(--button-color);

        &:hover {
            background-color: var(--button-hover-color);
            color: var(--white-color);
            text-decoration: underline;

            img {
                filter: brightness(0) invert(1);
            }
        }
    }

    &.outline {
        outline: 2px solid var(--button-color);
        background-color: var(--white-color);
        color: var(--button-color);

        &[target="_blank"] {
            &:after {
                background-image: url(../img/icons/link-external-b.svg);
            }
        }

        &:hover {
            outline: 2px solid var(--button-hover-color);
            color: var(--button-hover-color);
            text-decoration: underline;

            &[target="_blank"] {
                &:after {
                    background-image: url(../img/icons/link-external-bh.svg);
                }
            }
        }


    }

    img.icon {
        display: block;
        width: 19px;
        height: 19px;
        pointer-events: none;
    }

    &.icon {
        width: 41px;
        height: 41px;
        padding: 0;
        margin: 0;
        justify-content: center;

        img {
            width: 26px;
            height: 26px;
            pointer-events: none;
        }
    }

}

hr {
    border: 0;
    margin: 30px 0;
    padding: 0;

    &.white {
        border-top: 1px solid rgba(255, 255, 255, .5);
    }
}

/* skip to content */
.skip-link {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translate(-50%, -100%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 100000;
    border-radius: 0 0 20px 20px;
    transition: transform 0.25s, background-color 0.25s;
}

.skip-link:focus {
    background-color: var(--font-color);
    text-decoration: underline;
    transform: translate(-50%, 0);
}

/* header */
header {

    nav {
        position: fixed;
        top: 0px;
        width: 100%;
        z-index: 10000;

        &:not(:has(a.menu-trigger.active)) .nav-menu,
        &:not(:has(a.menu-trigger.active)):before {
            display: none;
        }

        .bar {
            background-color: var(--white-color);
            width: 100%;
            height: 80px;
        }

        .center-content {
            display: flex;
            height: 100%;
            justify-content: space-between;
            align-items: center;

            >a {
                display: flex;

                img {
                    width: 110px;
                    height: auto;
                }
            }

            .nav-links {
                flex: 0 0 auto;
                display: flex;
                align-items: center;
                gap: 35px;

                .lang-trigger {
                    position: relative;
                    width: 45px;
                    height: 34px;

                    .menu {
                        position: absolute;
                        display: flex;
                        top: 0px;
                        gap: 7px;
                        flex-direction: column;
                        padding: 7px 13px;
                        border-radius: 5px;

                        a {
                            display: flex;
                            gap: 10px;
                            color: var(--button-color);
                            font-weight: bold;
                            display: none;

                            img {
                                pointer-events: none;
                            }
                        }

                        a:first-child {
                            text-decoration: none;
                            display: flex;
                        }

                        &:has(a.active) {
                            background: var(--button-light-color);

                            img {
                                transform: rotate(180deg);
                                margin-top: -2px;
                                ;
                            }

                            a:last-child {
                                display: block;
                            }
                        }

                    }

                }

                .menu-trigger {
                    display: block;
                    width: 60px;
                    height: 60px;
                    background: var(--button-light-color) url(../img/icons/menu-open.svg) no-repeat center center;
                    background-size: 28px auto;
                    border-radius: 100%;
                }

            }

        }

        &:has(a.menu-trigger.active) .menu-trigger {
            background-image: url(../img/icons/menu-close.svg) !important;
            background-size: 24px auto !important;
        }

        &:before {
            content: ' ';
            position: absolute;
            background: rgba(0, 0, 0, .7);
            width: 100%;
            height: 100vh;
            top: 0px;
            left: 0px;
            z-index: -1;
        }

        .nav-menu {
            position: absolute;
            background-color: var(--primary-color);
            border-radius: 15px;
            padding: 0.625rem 1.875rem;
            max-width: 530px;
            right: 20px;
            margin-left: 20px;
            top: 100px;

            ul {
                list-style: none;
                margin: 0;
                padding: 0;

                li {
                    margin: 0;
                    padding: 0;
                    border-bottom: 1px solid rgba(255, 255, 255, .5);

                    &:last-child {
                        border-bottom: none;
                    }
                }

                a {
                    font-size: 25px;
                    line-height: 32px;
                    color: var(--white-color);
                    font-weight: bold;
                    text-decoration: none;
                    padding-block: 20px;
                    width: 100%;

                    &:hover,
                    &:focus {
                        text-decoration: underline;
                    }
                }
            }
        }

        @media screen and (max-width: 800px) {

            .center-content {

                >a {
                    img {
                        width: 91px;
                    }
                }

                .nav-links {
                    gap: 25px;

                    .lang-trigger {
                        display: flex;
                        gap: 10px;
                        color: var(--button-color);
                        font-weight: bold;
                        text-decoration: none;
                    }

                    .menu-trigger {
                        width: 45px;
                        height: 45px;
                        background-size: 20px auto;
                    }
                }

            }

            .nav-menu {
                padding: 5px 20px;

                ul {
                    list-style: none;
                    margin: 0;
                    padding: 0;

                    li {
                        margin: 0;
                        padding: 0;
                        border-bottom: 1px solid rgba(255, 255, 255, .5);

                        &:last-child {
                            border-bottom: none;
                        }
                    }

                    a {
                        font-size: 18px;
                        line-height: 24px;
                        padding-block: 11px;
                    }
                }

            }

            &:has(a.menu-trigger.active) .menu-trigger {
                background-size: 18px auto !important;
            }

        }
    }

    .hero {
        display: flex;
        align-items: center;
        min-height: 400px;
        background-color: var(--primary-color);
        color: var(--white-color);
        margin-top: 80px;
        padding-block: 40px;

        a {
            color: inherit;
        }

        a:after {
            background-image: url(../img/icons/link-external-w.svg)
        }

        h1 {
            width: 100%;
            display: block;
            font-size: 3.75rem;
            line-height: 4.25rem;
            margin: 0;
            padding: 0;
            color: var(--white-color);

            .sm {
                font-size: 2.5rem;
                line-height: 2.75rem;
            }

            .light {
                font-weight: 300;
            }

        }

        ul.instructions {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: space-between;
            gap: 30px;
            margin-top: 40px;

            li {
                display: flex;
                align-items: center;
                flex-direction: column;
                text-align: center;
                gap: 6px;
                width: 25%;
                font-size: 1rem;
                font-weight: bold;

                img {
                    width: 62px;
                    height: auto;
                }
            }

        }

        @media screen and (max-width: 800px) {
            min-height: 210px;

            h1 {
                font-size: 2.5rem;
                line-height: 2.875rem;

                .sm {
                    font-size: 1.875rem;
                    line-height: 2.1875rem;
                }
            }

            ul.instructions {
                list-style: none;
                margin: 0;
                padding: 0;
                display: flex;
                margin-top: 15px;
                gap: 5px;

                li {
                    gap: 6px;
                    width: 25%;

                    img {
                        width: 52px;
                        height: auto;
                    }
                }

            }
        }

        &.home {
            position: relative;
            min-height: calc(100dvh - 160px);

            .home-wrapper {
                display: flex;
                gap: 40px;
            }

            .text {
                width: 50%;
                padding-block: clamp(20px, 1dvh, 40px) 80px;

                p {
                    font-size: 1.5rem;
                    line-height: 2rem;
                    font-weight: 300;

                    a[target="_blank"] {
                        &:after {
                            width: 24px;
                            height: 24px;
                        }
                    }

                }

                .btn {
                    margin-top: 32px;
                }
            }

            .images {
                position: absolute;
                top: 0px;
                right: 0px;
                height: 100%;
                width: calc(50vw - 80px);

                .slides {
                    position: relative;
                    width: 100%;
                    height: 100%;

                    img {
                        position: absolute;
                        display: block;
                        height: 100%;
                        width: 100%;
                        object-fit: cover;
                        object-position: left center;
                        opacity: 1;
                        transition: opacity .5s;
                    }

                    img.fadeout {
                        opacity: 0;
                    }
                }

                .cover {
                    position: absolute;
                    background: url(../img/rainbow-fill-d.png) no-repeat left center;
                    background-size: auto 100%;
                    top: 0px;
                    left: 0px;
                    height: 100%;
                    width: 100%;
                }

                .controller {
                    position: absolute;
                    width: 30px;
                    height: 30px;
                    top: 20px;
                    right: 20px;
                    border-radius: 100%;
                    background: var(--white-color) url(../img/icons/pause.svg) no-repeat center center;

                    &.play {
                        background-image: url(../img/icons/play.svg);
                        background-position: 8px center;
                    }
                }

            }

            @media screen and (max-width: 1000px) {

                & {
                    padding: 0;

                    .home-wrapper {
                        display: flex;
                        flex-direction: column;
                        gap: 0px;
                    }

                    .text {
                        width: 40vw;

                        p {
                            font-size: 1.125rem;
                            line-height: 1.5rem;

                            a[target="_blank"] {
                                &:after {
                                    width: 20px;
                                    height: 20px;
                                }
                            }
                        }

                        .btn {
                            margin-top: 4px;
                            width: 100%;
                            justify-content: center;
                        }
                    }

                    .images {
                        position: absolute;
                        top: 0px;
                        right: 0px;
                        height: 100%;
                        width: 50vw;
                    }
                }

            }

            @media screen and (max-width: 800px) {

                & {
                    padding: 0;
                    overflow: hidden;

                    .home-wrapper {
                        display: flex;
                        flex-direction: column;
                        gap: 0px;
                    }

                    .text {
                        width: 100%;
                        padding-block: 30px;

                        p {
                            font-size: 1.125rem;
                            line-height: 1.5rem;
                        }

                        .btn {
                            margin-top: 4px;
                            width: 100%;
                            justify-content: center;
                        }
                    }

                    .images {
                        position: relative;
                        left: -20px;
                        width: calc(100% + 40px);
                        aspect-ratio: 375 / 345;

                        .slides {
                            position: relative;
                            width: 100%;
                            height: 100%;

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

                        .cover {
                            position: absolute;
                            background: url(../img/rainbow-fill-m.png) no-repeat center top;
                            background-size: 100% auto;
                            top: 0px;
                            left: 0px;
                            height: 100%;
                            width: 100%;
                        }

                        .controller {
                            top: auto;
                            bottom: 70px;
                        }


                    }


                }

            }



            @media screen and (max-width: 700px) {

                & {

                    .images {
                        .controller {
                            top: auto;
                            bottom: 20px;
                        }
                    }


                }

            }

        }

    }
}

/* footer */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 185px;
    padding-inline: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);

    div {
        text-align: center;
        max-width: 650px;
        font-size: 0.875rem;
        line-height: 1.125rem;
    }

     a {
        color: inherit;
        &:hover {
            text-decoration: none;
        }
    }

}

/* text block */
.text-block {

    display: flex;
    align-items: center;
    gap: 125px;
    margin-bottom: 88px;

    &:not(.alt) {
        flex-direction: row-reverse;
    }

    &.init {
        margin-top: -30px;

        .text {
            padding-block-start: 80px;
        }
    }

    .text {
        flex: 1 1 auto;

        h2 {
            margin: 0;
            padding: 0;
            margin-bottom: 24px;
        }

        .btn {
            margin-top: 16px;
        }
    }

    .image {
        width: 466px;
        flex: 0 0 auto;
        display: flex;
        align-items: center;

        img {
            border-radius: 20px;
            width: 100%;
        }
    }

    @media screen and (max-width: 1000px) {

        &,
        &.alt {
            gap: 65px;
            margin-bottom: 65px;

            &.init {
                margin-top: 40px;
            }

            .text {
                padding-block: 0px;

                .btn {
                    margin-top: 14px;
                }
            }

            .image {
                width: 40vw;
                min-width: 200px;
            }

        }
    }

    @media screen and (max-width: 800px) {

        &,
        &.alt {
            flex-direction: column !important;
            gap: 40px;
            margin-bottom: 65px;

            &.init {
                margin-top: -25px;
            }

            .text {
                padding-block: 0px;

                .btn {
                    margin-top: 0px;
                }
            }

            .image {
                width: 100%;
                max-width: 400px;

                img {
                    border-radius: 20px;
                    width: 100%;
                }
            }

        }
    }

}

/* cotent */
.content {
    padding-block: 3.25rem;
    font-size: 1.125rem;
    line-height: 150%;

    @media screen and (max-width: 800px) {
        padding-block: 1.875rem;
        font-size: 1rem;
    }
}

/* cta */
main>.cta {
    position: relative;
    background: var(--background-color);
    padding-block: 100px;

    .text {
        width: 50%;

        h2 {
            margin: 0;
            padding: 0;
            margin-bottom: 24px;
        }

        .btn {
            margin-top: 32px;
        }
    }

    .image {
        position: absolute;
        top: 0px;
        right: 0px;
        height: 100%;
        width: 50vw;

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

    }

    >img {
        display: none
    }

    @media screen and (max-width: 800px) {

        padding-block: 30px 0;

        .text {
            width: 100%;

            h2 {
                margin: 0;
                padding: 0;
                margin-bottom: 24px;
            }

            .btn {
                margin-top: 14px;
            }
        }

        .image {
            display: none;
        }

        >img {
            display: block;
            width: 100%;
            height: auto;
            margin-top: 27px;
        }

    }

}

/* tags */
.tagline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white-color);
    overflow: hidden;
    width: 100%;
    max-width: min(calc(100vw - 40px), 1152px);
    height: 120px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .15);
    margin: 0 auto;
    margin-top: -60px;
    z-index: 5000;

    .left {
        width: 50%;
        height: 100%;
        display: flex;
        align-items: center;
        padding-inline: 40px;
        gap: 20px;
        max-width: 506px;
        background: #f5f6f8 url(../img/tagline-rec.jpg) no-repeat right center;

        
        .note {
            font-size: 2rem;
            line-height: 2.25rem;
            font-weight: 300;
        }
    }

    .right {
        height: 100%;
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        
              
        

        .amt {
            display: flex;
            flex: 1 1 auto;
            font-size: 70px;
            justify-content: end;
            line-height: 70px;
            color: var(--primary-color);
            min-width: 240px;

            &:has(img) {
                align-items: center;
            }
            img {
                height: 10px;
                width: auto;
            }
        }

        .note {
            font-size: 1.4625rem;
            line-height: 1.8rem;
            font-weight: bold;
            margin-right: 5px;
        }
    }

    @media screen and (max-width: 1100px) {
        
        .left {
            width: 700px;
        }

        .right {
            padding-inline: 0 20px;
            padding-block: 20px;
            flex-direction: column;
            align-items: end;
            justify-content: space-even;
            width: 100%;
            margin-right: 10px;
            flex: 1 1 auto;
            gap: 0;
            
            

            .amt {
                font-size: clamp(50px, 8vw, 70px);
                height: 100px;
                flex: 1 1 auto;

                &:lang(fr) {
                    font-size: clamp(40px, 8vw, 60px);
                     height: 65px;
                }

            }

            .note {
                height: 100%;
                flex: 1 1 auto;
                text-align: right;
                font-size: 18px;
                line-height: normal;
            }
        }
    }

    @media screen and (max-width: 850px) {

        
        height: auto;
        padding-block: 15px;
        padding-inline: 10px;
        box-shadow: none;
        flex-direction: column;
        border-radius: 0;
        margin-top: 0;
        max-width: none;
        gap: 0px;
        

        .left {
            background: none;
            flex: 1 1 auto;
            width: 100%;
            padding: 0;
            justify-content: center;

            .note {
                text-align: center;
                1display: none;
            }
        }

        .right {
            flex: 0 0 auto;
            width: auto;
            padding: 0;
            margin: 0;
            gap: 0px;
            align-items: center;
            
            
            .amt {
                font-size: 50px;
                text-align: center;
                justify-content: center;
                margin: 0;
                padding: 0;
                height: auto;
                color: var(--primary-color);
            }

            .note {
                font-size: 0.875rem;
                text-align: center;
                padding: 0;
            }
        }

    }

}

/* listings */
.listing {

    padding-block: 50px 74px;
    scroll-margin-top: 80px;

    .intro {
        display: flex;
        gap: 50px;
        margin-bottom: 50px;

        .text {
            flex: 1 1 auto;

            h2,
            p {
                margin: 0;
                padding: 0;
            }

            h2 {
                text-wrap: balance;
                margin-bottom: 10px;
            }
        }

        .button {
            flex: 0 0 auto;
        }

        @media screen and (max-width: 800px) {
            flex-direction: column;
            gap: 20px;
        }
    }

    >.loading {
        display: block;
        margin: 0 auto;
        pointer-events: none;
    }

    .deposits {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        align-content: start;
        gap: 20px;

        @media screen and (max-width: 800px) {
            & {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }
        }

        a {
            position: relative;
            display: flex;
            width: 100%;
            aspect-ratio: 1 / 1;

            img {
                border-radius: 8px;
                width: 100%;
                height: 100%;
                object-fit: cover;
                pointer-events: none;
            }

            &:after {
                position: absolute;
                pointer-events: none;
                border-radius: 8px;
                display: flex;
                width: 100%;
                height: 100%;
                align-items: center;
                justify-content: center;
                content: 'View Image';
                color: var(--white-color);
                font-weight: bold;
                font-size: 0.875rem;
                background-color: #001928bf;
                text-transform: uppercase;
                opacity: 0;
                transition: opacity .2s;
                pointer-events: none;
            }

            &:lang(fr):after {
                content: 'Voir l\'image';
            }            

            &:hover:after,
            &:hover:focus {
                opacity: 1;
            }

        }

    }

    a.btn.loadmore {
        margin: 41px auto 0px;
        width: fit-content;
        display: block;
        padding: 12px 20px;
        background-color: var(--background-color);


        >div {
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 10px;

            img {
                flex: 0 0 auto;

            }
        }

        &.loading div:first-child {
            display: none;
        }

        &:not(.loading) div:last-child {
            display: none;
        }

    }

    &:not(:has(.deposits:empty)) .loading {
        display: none !important;
    }

    .deposits:empty+a {
        display: none !important;
    }

}



/* deposit */
#dialog-deposit {
    position: fixed;
    background: var(--background-color);
    border: none;
    padding: 0;
    border-radius: 15px;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    max-width: 80vw;
    max-height: 90dvh;
    min-width: 300px;
    min-height: 300px;
    transition: width .25s, height .25s;

    &[open] {
        display: flex;
    }

    form {
        width: 100%;
        flex: 0 0 auto;
        display: flex;
        justify-content: end;
        padding: 11px 20px 0;

        button {
            border: none;
            background: none;
            font-family: inherit;
            font-weight: bold;
            font-size: 14px;
            color: var(--primary-color);
            text-transform: uppercase;
            user-select: none;
            background: url(../img/icons/close.svg) no-repeat calc(100% - 4px) center;
            background-size: 12px 12px;
            padding-right: 25px;
            cursor: pointer;
        }

        button:hover,
        button:focus-visible {
            color: var(--button-hover-color);
            text-decoration: underline;
            background-image: url(../img/icons/close-h.svg);
        }
    }

    .image {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        display: flex;        
        padding: 8px 20px 20px;
        user-select: none;
        overflow: hidden; 

        img {
            border-radius: 5px;
            max-width: 100%;
            display: block;
            margin: 0 auto;
            max-height: 100%;
            object-fit: contain;
            object-position: center;
            opacity: 1;
            transition: opacity .2s;
            pointer-events: none;
        }

    }


    .info {
        display: flex;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        flex: 0 0 auto;
        background: var(--white-color);
        padding: 20px;
        user-select: none;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 15px;

        >div {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
            color: var(--text-font-color);

            img {
                width: 28px;
                height: 28px;
            }
        }
    }

    &.no-location {
        .info {
            >div:first-child {
                display: none;
            }
        }
    }

    .controls {

        a.next,
        a.prev {
            position: absolute;
            display: flex;
            left: -35px;
            top: calc(50% - 70px);
            transform: translateY(-50%);
            width: 35px;
            height: 40px;
            background: var(--background-color) url(../img/icons/arrow-left.svg) no-repeat center center;
            transition: background-color .2s
        }

        a[disabled] {
            pointer-events: none;
            opacity: .1;
        }

        a.prev {
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;
        }

        a.prev:hover,
        a.prev:focus {
            background-image: url(../img/icons/arrow-left-h.svg);
            background-color: var(--button-hover-color);
        }

        a.next {
            left: auto;
            right: -35px;
            background-image: url(../img/icons/arrow-right.svg);
            border-top-right-radius: 5px;
            border-bottom-right-radius: 5px;
        }

        a.next:hover,
        a.next:focus {
            background-image: url(../img/icons/arrow-right-h.svg);
            background-color: var(--button-hover-color);
        }
    }

    &.loading {
        .image {
            div {
                background: url(/res/img/loading-lightblue.gif) no-repeat center center;
                width: 100%;
                height: 100%;
            }

            img {
                opacity: 0;
            }
        }
    }

    @media screen and (max-width: 800px) {
        .info {

            >div {
                font-size: 16px;
            }
        }
    }

}

/* explore rainbows */
#dialog-explorerainbows {
    position: fixed;
    background: var(--white-color);
    border: none;
    padding: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    overflow: visible;

    &[open] {
        display: flex;
    }

    >form {
        position: absolute;
        top: 15px;
        right: 0px;
        padding: 8px;
        background: var(--white-color);
        border-top-left-radius: 20px;
        border-bottom-left-radius: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, .15);
        z-index: 200000;

        button {
            border: none;
            background: none;
            font-family: inherit;
            font-weight: bold;
            font-size: 14px;
            color: var(--primary-color);
            text-transform: uppercase;
            user-select: none;
            background: url(../img/icons/close.svg) no-repeat calc(100% - 4px) center;
            background-size: 12px 12px;
            padding-right: 25px;
            cursor: pointer;
        }

        button:hover,
        button:focus {
            color: var(--button-hover-color);
            text-decoration: underline;
            background-image: url(../img/icons/close-h.svg);
        }
    }


    aside {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        width: 490px;
        height: 100%;
        padding: 24px;
        overflow: auto;
        scrollbar-color: #CCC rgba(255, 255, 255, 0);
        scrollbar-width: thin;
        scrollbar-gutter: stable;
        overscroll-behavior: none;

        h1 {
            font-size: 32px;
            line-height: 36px;
            font-weight: 300;
        }

        form {
            margin: 0;
            padding: 0;

            .search {
                position: relative;
                display: flex;
                width: 100%;

                input {
                    font-family: inherit;
                    color: var(--text-font-color);
                    font-size: 1rem;
                    padding: 10px 16px;
                    border: 1px solid #868D98;
                    border-radius: 50px;
                    width: 100%;
                    padding-right: 140px;

                    &:focus-visible {
                        border: 1px solid #868D98;
                    }

                    &::placeholder {
                        color: #646C76;
                    }

                    &:focus-visible {
                        outline: none;
                        border-color: var(--text-font-color);

                        &::placeholder {
                            color: var(--text-font-color);
                        }
                    }
                }

                input:lang(fr) {
                    padding-right: 150px;
                }
                
                button[type="reset"] {
                    position: absolute;
                    top: 0px;
                    right: 100px;
                    height: 100%;
                    width: 20px;
                    background: none;
                    border: none;
                    background: url(../img/icons/close-input.svg) no-repeat center center;
                    cursor: pointer;
                    display: block;
                }

                button[type="reset"]:lang(fr) {
                    right: 125px;
                }

                &:not(:has(input[type="text"]:valid)) button[type="reset"] {
                    display: none;
                }

                button[type="submit"] {
                    position: absolute;
                    top: 4px;
                    right: 4px;
                    font-weight: 600;
                    font-size: 14px;
                    padding: 8.5px 20px;
                    border: none;
                    cursor: pointer;

                    button[type="submit"]:hover,
                    button[type="submit"]:focus-visible {
                        text-decoration: underline;
                    }

                    img {
                        display: none;
                    }

                }
            }

            &.loading button[type="submit"] {
                pointer-events: none;

                span {
                    visibility: hidden;
                }

                img {
                    position: absolute;
                    display: block;
                    left: 50%;
                    transform: translateX(-50%);
                }
            }

            &.error>.error {
                margin-top: 5px;
                color: var(--error-color);
                font-size: 14px;
                display: flex;
                background: url(../img/icons/warning.svg) no-repeat left 3px;
                background-size: 13px;
                padding-left: 17px;
                margin-left: 5px;
            }

            &:not(.error)>.error {
                display: none;
            }

            fieldset {
                margin-top: 16px;
                display: flex;
                align-items: center;
                gap: 16px;
                border: none;

                >label {
                    display: block;
                    font-family: inherit;
                    font-size: 1rem;
                    color: #646C76;
                    white-space: nowrap;
                }

                div {
                    display: flex;
                    flex: 1 1 auto;
                    gap: 8px;

                    label {
                        outline: 1px solid var(--primary-color);
                        border-radius: 25px;
                        font-family: inherit;
                        font-size: 14px;
                        color: var(--primary-color);
                        font-weight: bold;
                        display: flex;
                        padding: 5px 10px;
                        cursor: pointer;
                        display: flex;
                        transition: outline .2s, color .2s;
                        white-space: nowrap;
                        user-select: none;

                        &:hover {
                            text-decoration: underline;
                            color: var(--button-hover-color);
                            outline: 1px solid var(--button-hover-color);
                        }

                        &:has(:focus-visible) {
                            outline: 3px solid var(--primary-color) !important;
                        }

                        &:has(:checked) {
                            outline: none;
                            color: var(--white-color);
                            padding-right: 25px;
                            background: var(--button-hover-color) url(../img/icons/close-sw.svg) no-repeat calc(100% - 10px) center;
                            background-size: 10px 10px;
                        }

                        input {
                            appearance: none;
                            height: 0;
                            width: 0;
                            margin: 0;
                            padding: 0;
                        }

                    }
                }
            }
        }

        .deposits {
            margin-top: 50px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
            align-content: start;
            height: 100%;
            flex: 1 1 auto;
            gap: 8px;

            &:empty {
                align-content: center;
                background: url(../img/loading-wh.gif) no-repeat center center;
            }

            &:has(>div) {
                grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
                 align-content: center;
            }

            > div {
                display: flex;       
                justify-content: center;
                font-size: 14px;
                color: #646C76;
                text-align: center;      
                height: 100%;
            }

            a {
                position: relative;
                display: flex;
                flex: 1 1 auto;
                width: 100%;
                aspect-ratio: 1 / 1;

                img {
                    border-radius: 8px;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    pointer-events: none;
                }

                &:after {
                    position: absolute;
                    pointer-events: none;
                    border-radius: 8px;
                    display: flex;
                    width: 100%;
                    height: 100%;
                    align-items: center;
                    justify-content: center;
                    text-align: center;
                    content: 'View On Map';
                    color: var(--white-color);
                    font-weight: bold;
                    font-size: 0.875rem;
                    text-transform: uppercase;
                    background-color: #001928bf;
                    opacity: 0;
                    transition: opacity .2s;
                }

                &:lang(fr):after {
                    content: 'Voir sur la carte';
                }

                &:hover:after,
                &:hover:focus {
                    opacity: 1;
                }

            }

        }
    }

    section {
        position: relative;
        flex: 1 1 auto;
        width: 60%;
        height: 100%;



        >div {
            position: relative;
            width: 100%;
            height: 100%;

            .googlemap-pin {
                position: relative;
                display: flex;
                justify-content: center;
                width: 54px;
                height: 72px;
                background: url(/res/img/icons/marker.svg) no-repeat center center;
                background-size: 54px 72px;

                span {
                    margin-top: 11px;
                    background: var(--button-hover-color);
                    width: 34px;
                    height: 34px;
                    border-radius: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    font-size: 18px;
                    font-weight: bold;
                    color: #FFF;
                }

                img {
                    margin-top: 11px;
                    width: 34px;
                    height: 34px;
                    border-radius: 100%;
                }
            }

        }
    }



    @media screen and (max-width: 1000px) {

        flex-direction: column-reverse;

        aside {
            height: 50%;
            width: 100%;
        }

        section {
            height: 50%;
            width: 100%;
        }

    }

    @media screen and (max-width: 800px) {

        aside {
            padding: 11px 20px;

            h1 {
                font-size: 20px;
                line-height: 26px;
            }

            form {
                fieldset {
                    display: block;

                    >label {
                        width: 100%;
                        flex: 0 0 auto;
                        margin-bottom: 5px;
                    }
                }
            }

            .deposits {
                margin-top: 30px;
            }

        }

    }


}


/* rainbow deposit / share instram */
#dialog-rainbowdeposit,
#dialog-shareinstagram {
    position: fixed;
    background: var(--background-color);
    border: none;
    padding: 0;
    border-radius: 15px;
    flex-direction: column;
    width: calc(100% - 40px);
    max-width: 840px;
    max-height: calc(100% - 20px);
    overflow: hidden;
    
    

    &[open] {
        display: flex;
    }

    @media screen and (max-width: 800px) {
        &:not(#dialog-shareinstagram) {
            width: calc(100% - 20px);
            height: calc(100dvh - 20px);
        }
    }

    >.header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        background: var(--white-color);
        padding: 16px 30px;

        h1 {
            display: block;
            font-size: 32px;
            font-weight: bold;
            padding: 0;
            margin: 0;
        }

        form {
            position: relative;
            flex: 0 0 auto;
            align-items: center;
            display: flex;

            button {
                border: none;
                background: none;
                font-family: inherit;
                font-weight: bold;
                font-size: 14px;
                color: var(--primary-color);
                text-transform: uppercase;
                user-select: none;
                background: url(../img/icons/close.svg) no-repeat calc(100% - 4px) center;
                background-size: 12px 12px;
                padding-right: 25px;
                cursor: pointer;
            }

            button:hover,
            button:focus {
                color: var(--button-hover-color);
                text-decoration: underline;
                background-image: url(../img/icons/close-h.svg);
            }
        }

        @media screen and (max-width: 800px) {
            & {
                padding: 10px 20px;

                h1 {
                    font-size: 20px;
                }
            }
        }

    }

    .main {
        padding: 20px;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;

        section:not(.active) {
            display: none;
        }

        @media screen and (max-width: 800px) {
            & {
                padding: 10px;
            }
        }

        .upload {
            flex: 1 1 auto;
            background: var(--white-color);
            width: 100%;
            height: 100%;
            min-height: 360px;
            border: 1px dashed #D9DCE1;
            border-radius: 10px;
            color: #9e9e9e;
            transition: border .2s, color .2s;

            &.drag-over {
                border-color: var(--primary-color);

                label {
                    color: var(--font-color);
                }

                .icon {
                    background-image: url(../img/icons/image-bl.svg)
                }
            }


            label {
                width: 100%;
                height: 100%;
                display: flex;
                min-height: 360px;
                color: #646C76;
                flex-direction: column;
                justify-content: center;
                font-weight: normal;
                border-radius: 10px;
                align-items: center;
                font-size: 25px;
                line-height: 35px;
                font-weight: bold;

                button {
                    padding: 0;
                    border: none;
                    background: none;
                    font-size: inherit;
                    color: inherit;
                    font-weight: inherit;
                    font-family: inherit;
                    text-decoration: underline;
                    cursor: pointer;
                }

                .icon {
                    width: 50px;
                    height: 50px;
                    background: url(../img/icons/image.svg) no-repeat center center;
                    background-size: contain;
                    margin-bottom: 12px;
                    pointer-events: none;
                }

                .text {
                    text-align: center;
                    flex-direction: column;
                    pointer-events: none;

                    small {
                        color: #646C76;
                        display: block;
                        margin-top: 30px;
                        font-size: 16px;
                        line-height: 1.5rem;
                        font-weight: 300;
                    }

                }
            }

            @media screen and (max-width: 800px) {
                .text {
                    font-size: 18px;
                    line-height: 24px;

                    small {
                        margin-top: 41px;
                        font-size: 14px;
                    }
                }
            }
        }

        .review {
            display: flex;
            flex-direction: column;
            height: 100%;

            &:not(.uploading-invalid) .uploads .error {
                display: none;
            }

            .uploads {
                display: flex;
                flex-direction: column;
                gap: 0;
                flex: 1 1 auto;
                padding: 20px 5px;
                background: var(--white-color);
                border-radius: 10px;
                border: 1px solid #D9DCE1;

                h1 {
                    font-size: 1rem;
                    font-weight: bold;
                    margin: 0;
                    padding: 0;
                    padding-inline: 15px;
                    margin-bottom: 13px;

                    a {
                        color: inherit;
                    }
                }

                .error {
                    margin-top: 5px;
                    color: var(--error-color);
                    font-size: 14px;
                    display: flex;
                    background: url(../img/icons/warning.svg) no-repeat left 4px;
                    background-size: 13px;
                    padding-left: 17px;
                    margin-inline: 15px;
                    margin-bottom: 20px;
                }

                .images {
                    position: relative;
                    flex: 1 1 auto;
                    overflow: hidden;
                    min-height: 140px;

                    @media screen and (max-width: 800px) {
                        & {
                            min-height: auto;
                        }
                    }

                    .slider {
                        position: absolute;
                        height: 100%;
                        width: 100%;
                        display: grid;
                        padding: 14px 20px 0;
                        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
                        align-content: start;
                        gap: 15px;
                        overflow: auto;
                        scrollbar-color: #CCC rgba(255, 255, 255, 0);
                        scrollbar-width: thin;
                        scrollbar-gutter: stable;
                        overscroll-behavior: none;

                        >div {
                            position: relative;
                            border-radius: 5px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            aspect-ratio: 1 /1;
                            background: var(--background-color);

                            img {
                                display: block;
                                width: 100%;
                                height: 100%;
                                object-fit: cover;
                            }

                            img.loading {
                                display: block;
                                width: auto;
                                height: auto;
                                object-fit: contain;
                            }

                            button {
                                position: absolute;
                                top: -10px;
                                right: -10px;
                                border-radius: 100%;
                                background: var(--white-color) url(../img/icons/close.svg) no-repeat center center;
                                background-size: 10px;
                                width: 25px;
                                height: 25px;
                                border: none;
                                box-shadow: 0 0 10px rgba(0, 0, 0, .15);
                                cursor: pointer;
                                border: 1px solid #fff;
                                transition: border .2s;

                                &:hover {
                                    border-color: var(--primary-color);
                                }
                            }

                            &.uploaded button {
                                background: #089527 url(../img/icons/checkmark.svg) no-repeat center center;
                                background-size: 14px;
                            }

                            &.uploadfailed button {
                                background: var(--error-color) url(../img/icons/close-sw.svg) no-repeat center center;
                                background-size: 10px;
                            }

                        }

                        >button {
                            position: relative;
                            aspect-ratio: 1 /1;
                            border: none;
                            padding: 0;
                            display: flex;
                            gap: 8px;
                            padding: 10px;
                            text-transform: uppercase;
                            flex-direction: column;
                            align-items: center;
                            justify-content: center;
                            background: var(--background-color);
                            font-size: 14px;
                            font-weight: bold;
                            color: var(--primary-color);
                            cursor: pointer;
                            transition: color .2s;

                            img {
                                pointer-events: none;
                            }

                            &:hover {
                                text-decoration: underline;
                                color: var(--button-hover-color);
                            }
                        }
                    }
                }

                .progress {
                    width: 100%;
                    font-size: 0px;
                    margin-top: 10px;
                    padding-inline: 15px;

                    label {
                        color: var(--primary-color);
                        font-size: 14px;
                        text-align: right;
                        width: 100%;
                        display: block;
                        margin: 0;
                        padding: 0;
                    }

                    .bar {
                        width: 100%;
                        height: 100%;
                        border-radius: 25px;

                        progress {
                            -webkit-appearance: none;
                            -moz-appearance: none;
                            appearance: none;
                            width: 100%;
                            height: 10px;
                            vertical-align: 0;
                            border: none;
                            border-radius: 25px;
                        }

                        progress::-webkit-progress-bar {
                            background-color: rgba(0, 117, 190, .2);
                            border-radius: 25px;
                        }

                        progress::-webkit-progress-value {
                            background: var(--primary-color);
                            border-radius: 25px;
                        }
                    }

                }


            }

            .bottom {
                position: relative;
            }

            details.error {
                border: 1px solid #DB0900;
                border-radius: 10px;
                font-size: 14px;
                color: #DB0900;
                margin-block: 8px;
                background: #FFF;
                overflow: hidden;

                summary {
                    cursor: pointer;
                    user-select: none;
                    align-items: center;
                    display: flex;
                    background: #fef5f5 url(../img/icons/warning.svg) no-repeat 10px 9.5px;
                    padding: 8px 10px;
                    padding-left: 30px;
                    border-radius: 10px;

                    &::after {
                        flex: 0 0 auto;
                        margin-left: auto;
                        margin-right: 0px;
                        content: ' ';
                        width: 12px;
                        height: 12px;
                        background: url(../img/icons/chev-down-r.svg) no-repeat center;
                        border: 1px solid var(--border-color);
                        border-radius: 100%;
                        display: inline-block;
                        transition: transform .3s
                    }

                    &::-webkit-details-marker {
                        display: none;
                    }
                }

                &[open] summary::after {
                    transform: rotate(180deg);
                }

                ul {
                    margin: 0;
                    padding: 0;
                    padding-inline: 28px 10px;
                    ;
                    line-height: 30px;
                    padding-bottom: 8px;
                    overflow: auto;
                    max-height: 160px;
                    scrollbar-width: thin;
                    overscroll-behavior: none;
                }

                &:has(ul:empty) {
                    display: none;
                }

            }

            form {
                position: relative;
                display: flex;
                margin-top: 16px;
                flex: 0 0 auto;

                ul {
                    list-style: none;
                    margin: 0;
                    padding: 0;
                    display: flex;
                    flex-direction: column;
                    gap: 12px;
                    width: 100%;
                    flex: 1 1 auto;
                    padding-bottom: 5px;

                    >li>ul {
                        margin-left: 38px;
                        margin-top: 13px;
                    }


                    li {
                        margin: 0;
                        padding: 0;

                        label {
                            display: flex;
                            align-items: center;
                            gap: 11px;
                            font-size: 16px;

                            input {
                                width: 22px;
                                height: 22px;
                                border-radius: 3px;
                                -webkit-appearance: none;
                                appearance: none;
                                border: 1px solid var(--primary-color);
                                background: var(--white-color);
                                cursor: pointer;

                                &:checked {
                                    background: var(--primary-color) url(../img/icons/checkmark.svg) no-repeat center center;
                                    ;
                                }
                            }
                        }

                        .error {
                            color: var(--error-color);
                            font-size: 14px;
                            display: flex;
                            background: url(../img/icons/warning.svg) no-repeat left 4px;
                            background-size: 13px;
                            padding-left: 17px;
                            margin-left: 40px;
                        }

                        label:not(.invalid)+.error {
                            display: none;
                        }

                        label.invalid input {
                            border-color: var(--error-color);
                        }

                    }
                }


                >div {
                    display: flex;
                    flex-direction: column;
                    justify-content: end;
                    align-items: end;

                    .error {
                        right: 0px;
                        color: var(--error-color);
                        font-size: 14px;
                        display: flex;
                        background: url(../img/icons/warning.svg) no-repeat left 3px;
                        background-size: 13px;
                        padding-left: 17px;
                        margin-bottom: 12px;
                    }

                    .buttons {
                        position: relative;
                        flex: 0 0 auto;
                        display: flex;
                        align-items: end;
                        white-space: nowrap;


                        button {
                            font-weight: bold;
                        }
                    }
                }

                @media screen and (max-width: 800px) {
                    & {
                        flex-direction: column;
                        gap: 16px;
                    }

                    ul {
                        list-style: none;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        flex-direction: column;
                        gap: 12px;
                        width: 100%;
                        flex: 1 1 auto;
                        padding-bottom: 5px;

                        >li>ul {
                            margin-left: 32px;
                            margin-top: 10px;
                        }


                        li {

                            label {
                                gap: 10px;
                                font-size: 14px;
                            }

                        }
                    }

                    >div {
                        align-items: stretch;

                        .error {
                            margin-inline: auto;
                        }

                        .buttons {
                            flex-direction: column-reverse;
                            align-items: center;

                            .solid {
                                width: 100%;
                                text-align: center;
                                justify-content: center;
                            }
                        }

                    }
                }
            }

            .cta {
                position: absolute;
                background: var(--background-color);
                width: 100%;
                height: 100%;
                top: 0px;
                opacity: 0;
                pointer-events: none;
                transition: opacity .5s;
            }

            &.uploading,
            &.completed {

                details {
                    display: none !important;
                }

                .images button {
                    pointer-events: none;
                }

                .images .slider div:not(.uploaded) button {
                    display: none;
                }


                button.addmore {
                    display: none !important;
                }

                form {
                    opacity: .2;
                    pointer-events: none;
                }
            }

            &.completed {
                .progress label {
                    font-weight: bold;
                }

                form {
                    visibility: hidden;
                }

                .cta {
                    opacity: 1;
                    pointer-events: auto;
                }
            }

        }
    }

    .cta {
        margin-top: 30px;

        .header {
            display: flex;
            align-items: center;

            h2 {
                font-size: 25px;
                font-weight: 300;
                width: 100%;
                margin: 0;
                padding: 0;
                line-height: normal;

                &:lang(fr) {
                    font-size: 21px;
                }
            }

            .social {
                flex: 0 0 autp;
                display: flex;
                gap: 16px;
            }
        }

        .buttons {
            margin-top: 40px;
            display: flex;
            gap: 33px;
            justify-content: center;

            button {
                font-weight: bold;
            }
        }

        @media screen and (max-width: 800px) {

            & {
                margin-top: 20px;

                .header {
                    flex-direction: column;
                    text-align: center;
                    gap: 14px;

                    h2 {
                        font-size: 18px;
                    }

                    .social {
                        flex: 0 0 autp;
                        display: flex;
                        gap: 16px;
                    }
                }

                .buttons {
                    flex-direction: column;
                    gap: 8px;

                    button {
                        justify-content: center;
                    }
                }
            }


        }

    }

    .content {

        padding: 20px;
        background: var(--white-color);
        border-radius: 10px;
        border: 1px solid #D9DCE1;

        h2 {
            font-size: 25px;
            font-weight: bold;
            margin: 0;
            margin-bottom: 11px;
            padding: 0;
        }

        p {
            font-size: 18px;
        }

        @media screen and (max-width: 800px) {

            & {
                padding: 15px;

                h2 {
                    font-size: 18px;
                    line-height: 24px;
                }

                p {
                    font-size: 1rem;
                }

                .btn {
                    width: 100%;
                    justify-content: center;
                }

            }

        }
    }

}

dialog[open]::backdrop {
    background-color: rgba(0, 0, 0, .6);
}

/* accessibility */
.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}