/****** INITIALISATIONS ******/

/****** FONTS & TEXT ******/

/****** HEADER / NAV ******/

/****** BURGER MENU ******/

/****** COMPONENTS ******/

/****** MODAL ******/

/****** CAROUSEL ******/

/****** COLLAPSE ******/

/****** ZOOMBOX IMAGES ******/

/****** TEXTAREA AUTOGROW ******/

/****** CONFIRM SLIDER ******/

/****** SPINNER ******/

/****** FOOTER ******/


/***********************************************************************/


/*****************************/
/****** INITIALISATIONS ******/
/*****************************/

:root {
    --color-main: #0060fe;
    --color-secondary: #125fc6;
    --color-light: #b3d0ff;

    --color-danger: #dc3545;
    --color-success: #20C94A;

    --white: #fff;

    --text-main: #444B51;
    --text-dark: #333333;
    --text-light: #707070;
    --text-lighter: #9F9F9F;

    --bg-main: #F2F2F2;
    --bg-dark: #E9E9E9;

    --border-main: #b7b7b7;
    --border-secondary: #dadce0;
    --border-profile: #F0F0F0;
}

body {
    display: grid;
    flex-direction: column;
    grid-template-rows: min-content auto min-content;
    background: var(--bg-main);
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

main > section {
    padding: 5rem 0 5rem 0;
}

main > .container > section {
    padding: 5rem 0 5rem 0;
}

@media screen and (min-width: 48em) {
    main > section {
        padding: 5rem 0 10rem 0;
    }

    main > .container > section {
        padding: 5rem 0 10rem 0;
    }
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media screen and (min-width: 36em) {
    .container {
        max-width: 55.2rem;
        padding-left: 0;
        padding-right: 0;
    }
    .container.sm {
        max-width: 49.5rem;
    }
}
@media screen and (min-width: 48em) {
    .container {
        max-width: 74.4rem;
    }
    .container.sm {
        max-width: 66.71rem;
    }
}
@media screen and (min-width: 62em) {
    .container {
        max-width: 96.8rem;
    }

    .container.sm {
        max-width: 86.8rem;
    }
}
@media screen and (min-width: 75em) {
    .container {
        max-width: 117.6rem;
    }

    .container.sm {
        max-width: 105.45rem;
    }
}
@media screen and (min-width: 87.5em) {
    .container {
        max-width: 120rem;
    }

    .container.sm {
        max-width: 107.6rem;
    }
}


/**************************/
/****** FONTS & TEXT ******/
/**************************/

.h-main {
    font-size: 2.1rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.see-more {
    position: relative;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    text-decoration: none;
    margin-right: 2rem;
}

.see-more::after {
    position: absolute;
    right: -2rem;
    height: 100%;
    content: url('/grafics/next.svg');
    display: inline-block;
}

a:not(.btn):link {
    color: var(--color-main);
}


/**************************/
/****** HEADER / NAV ******/
/**************************/

header {
    background: var(--white);
    font-size: 1.4rem;
    z-index: 10;
    transition: .5s ease-in-out;
}

header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

header .logo {
    flex-shrink: 0;
    width: 12rem;
    order: 2;
    transition: .3s;
}

header .logo img {
    width: 100%;
}

header.scrolling {
    position: sticky;
    top: 0;
    transition: .5s ease-in-out;

}

header.scrolling .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media screen and (max-width: 62em) {
    header.scrolling .logo {
        width: 12rem;
    }
}

header.scrolling #main-nav {
    padding-top: 0;
}

header.move-up .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    align-items: center;
}
header.move-up #main-nav {
    padding-top: 0;
}


#main-nav {
    order: 1;
}

.nav-group {
    width: 100%;
    z-index: 10;
}

.nav-group form {
    display: flex;
}

.nav-group form button {
    width: 4.75rem;
    height: auto;
    border: .1rem solid var(--border-main);
    border-left: none;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
    background: var(--white);
    z-index: 10;
}

#search-bar {
    width: 100%;
    border: var(--border-main) solid .1rem;
    padding: .5rem 0 .5rem 2rem;
    border-right: none;
    height: 3.3rem;
    z-index: 10;
}

#menu {
    display: flex;
    justify-content: space-between;
    flex-grow: 2;
    margin: 0;
}

@media screen and (max-width: 61.99em) {
    #menu.closed {
        height: 0;
        overflow: hidden;
    }
}

#mainsearch-results {
    position: absolute;
    top: 0;
    width: 100%;
    max-height: 80vh;
    background: var(--white);
    transform: translateY(3.1rem);
    margin: 0;
    border: .1rem solid var(--border-main);
    border-top: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 1;
    overflow: auto;
}

#mainsearch-results li a,
#mainsearch-results li button{
    display: grid;
    grid-template-columns: 10rem auto;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    text-align: right;
    min-height: 8rem;
    color: var(--text-main);
}

#mainsearch-results li button {
    width: 100%;
    background: none;
    border: none;
    font-weight: 600;
}

#mainsearch-results li a .badge,
#mainsearch-results li button .badge {
    margin-left: 2rem;
}

#mainsearch-results li:nth-child(even) {
    background-color: var(--bg-main);
}

#mainsearch-results li img {
    justify-self: center;
    max-width: 10rem;
    max-height: 5rem;
}

#mainsearch-results li img[alt="svg"] {
    filter: invert(24%) sepia(93%) saturate(3313%) hue-rotate(213deg) brightness(97%) contrast(105%);
}


@media screen and (min-width: 62em) {
    #menu a:hover {
        transform: scale(1.05);
    }
}

header a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: ease-in-out;
}

#menu a.active {
    color: var(--color-main);
}


#menu a {
    padding: 1.5rem;
    display: inline-block;
    width: 100%;
    transition: .3s ease-in-out;
    color: var(--text-dark);
}

#burger-logs img {
    min-width: 3rem;
}

.logs {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-main);
    padding: 1.5rem 2rem;
    border: .1rem solid var(--border-secondary);
    z-index: 10;
}

.logs ul {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.logs ul li {
    text-align: center;
}

.logs ul li:first-child {
    margin-right: 0;
    margin-bottom: 1rem;
}

.logs ul li:nth-child(2) {
    font-weight: 600;
}

.logs ul li:nth-child(2) a {
    color: var(--white);
}

#online_profile {
    margin-right: 1rem;
}



/*************************/
/****** BURGER MENU ******/
/*************************/

[hidden] {
    visibility: hidden;
}

#main-nav {
    display: flex;
}

#burger-btn {
    background: none;
    border: none;
}


@media screen and (min-width: 62em) {
    header .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    header #main-nav {
        flex-grow: 1;
        padding: 2.4rem 5rem 0;
    }

    #burger-btn.toggle-menu {
        display: none;
    }
    .nav-group[hidden] {
        visibility: visible;
        display: block;
    }

    header .logo {
        order: 1;
    }

    #main-nav {
        order: 2;
    }

    #burger-logs {
        order: 3;
    }

    .logs {
        order: 4;
    }
}

.nav-group {
    position: relative;
}

@media screen and (max-width: 61.99em) {
    .nav-group {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg-main);
        border: .1rem solid var(--border-main);
        box-shadow: 0 500rem 0 500rem #00000075;
    }

    .nav-group ul {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .nav-group ul li {
        margin: 0 0;
    }

    .nav-group ul li a:hover,
    .nav-group ul li a:focus {
        background-color: var(--bg-dark);
    }

    #menu a:hover:not(.active) {
        color: var(--text-main);
    }
}

#burger-logs {
    background: none;
    border: none;
    order: 3;
}

#burger-logs {
    width: 3.8rem;
    height: 3rem;
}
#burger-logs .menu-icon {
    width: 100%;
}

@media screen and (min-width: 70em) {
    header .logo {
        width: 14.5rem;
    }
}

@media screen and (min-width: 80em) {
    #burger-logs.toggle-menu {
        display: none;
    }
    .logs[hidden] {
        visibility: visible;
        display: block;
    }
    .logs {
        position: initial;
        align-self: baseline;
        padding-top: 3rem;
        background: none;
        border: none;
    }
    .logs {
        padding: 0;
    }
    .logs ul {
        flex-direction: row;
        align-items: center;
    }
    .logs ul li:first-child {
        margin-right: 2rem;
        margin-bottom: 0;
    }
}

/*icone transorm*/
.menu-icon {
    position: relative;
    display: block;
    width: 3rem;
    height: 3rem;
    transition: transform 0.5s;
}

.menu-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    color: black;
    width: 2.5rem;
    height: .2rem;
    background-color: var(--color-main);
    border-radius: .1rem;
    transition: background 0.5s;
}

.menu-icon span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-1rem);
    display: block;
    width: 2rem;
    height: .2rem;
    background-color: var(--color-main);
    border-radius: .1rem;
    transition: transform 0.5s;
}


.menu-icon span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(1rem);
    display: block;
    width: 2rem;
    height: .2rem;
    background-color: var(--color-main);
    border-radius: .1rem;
    transition: transform 0.5s;
}

.menu-icon.is-opened span {
    background: transparent;
}

.menu-icon.is-opened span::before {
    transform: translateY(0) rotate(45deg);
}

.menu-icon.is-opened span::after {
    transform: translateY(0) rotate(-45deg);
}


/************************/
/****** COMPONENTS ******/
/************************/

.shadow {
    box-shadow: 0 1px 5px #00000015;
}


/*BTN*/

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    background-color: var(--color-main);
    padding: 1rem 2.75rem;
    font-weight: 400;
    text-decoration: none;
    border: none;
    transition: .3s linear;
}
.btn:hover,
.btn:focus {
    background-color: var(--color-secondary);
    text-decoration: none;
}


.btn.btn-sec {
    color: var(--color-main);
    background-color: var(--white);
    border: .1rem solid var(--color-main);
}
.btn.btn-sec:hover,
.btn.btn-sec:focus {
    color: var(--white);
    background-color: var(--color-main);
}


.btn.btn-ter {
    /*color: var(--text-dark);
    background-color: var(--bg-main);
    border: .1rem solid var(--border-main);*/
    color: var(--color-main);
    background-color: var(--white);
    border: .1rem solid var(--color-main);
}
.btn.btn-ter:hover,
.btn.btn-ter:focus {
    color: var(--color-main);
    background-color: var(--bg-main);
    border: .1rem solid var(--color-main);
}

.btn.btn-danger {
    color: var(--color-danger);
    background-color: var(--white);
    border: .1rem solid var(--color-danger);
}

.btn.btn-a {
    color: var(--text-main);
    background: none;
    border: none;
    font-size: 1.4rem;
    font-weight: 600;
}

.btn.bubble {
    border-radius: 3rem 3rem 0 3rem;
    padding: .7rem 2rem;
}


/* BADGES */

.badge {
    font-size: 1.4rem;
    color: var(--white);
    background-color: var(--color-main);
    display: inline-block;
    padding: .25rem 1rem;
    border-radius: 2rem;
}

.badge>button {
    background: none;
    border: none;
    color: inherit;
    font-weight: 600;
    padding: 0;
    margin-left: .5rem;
}


/*CARDS*/

.card-project {
    border: .2rem solid var(--border-secondary);
}

.card-project a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.card-project .zoombox {
    flex-grow: 1;
}

.card-project .zoombox img {
    height: 100%;
}

.card-project .details {
    background-color: var(--white);
    padding: 2rem 3rem;
}

.card-project .details .title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 2rem;
}

.card-project .details .categ {
    color: var(--color-main);
    font-weight: 400;
    font-size: 1.5rem;
}

@media screen and (min-width: 48em) {
    .card-project .details h2 {
        font-size: 2.2rem;
    }

    .card-project .details p {
        font-size: 1.6rem;
    }
}

@media screen and (min-width: 62em) {
    .card-project .details h2 {
        font-size: 3.1rem;
    }

    .card-project .details p {
        font-size: 1.8rem;
    }
}



/*******************/
/****** MODAL ******/
/*******************/

.modal {
    position: fixed;
    left: 50%;
    top: 50%;
    display: block;
    background-color: var(--white);
    color: var(--text-main);
    min-width: 90vw;
    height: auto;
    width: auto;
    max-height: 90vh;
    max-width: 90vw;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50vh 500rem #00000075;
    z-index: 10;
    overflow-y: auto;
}

/*.modal:not(#modal-signup) {
    overflow: hidden;
}*/
.modal#modal-login,
.modal#modal-signup{
    overflow: auto;
    min-width: 30rem;
    max-width: 40rem;
}



@media screen and (min-width: 48em) {
    .modal {
        min-width: initial;
    }
}

.modal .modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*padding: 2rem 3rem;*/
}

@media screen and (min-width: 36em) {
    .modal .modal-body {
        padding: 2rem 3rem;
    }
}

.modal .modal-body > .modal-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 4rem;
    font-size: 2.5rem;
    color: var(--text-lighter);
    background-color: inherit;
    border: none;
    z-index: 15;
}



.modal header {
    text-align: center;
    padding: 1.5rem 2rem;
}

.modal .modal-title {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1.8rem;
}

.modal .modal-content {
    padding: 2rem;
}

.modal .modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.modal .modal-actions button {
    font-size: 1.4rem;
    padding: 1rem 1.5rem;
}

.modal .modal-actions button:not(:last-child) {
    margin-right: 5rem;
}

.no-scroll {
    overflow: hidden;
}

.modal .info {
    display: block;
    font-size: 1.2rem;
    padding: 1rem;
    border: .1rem solid var(--border-secondary)
}

#modal-signup {
    max-width: 50rem;
}

/*Modal PIN*/
.digit-group {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.digit-group input {
    width: 40px;
    height: 50px;
    background-color: var(--color-main);
    border: none;
    border-radius: .2rem;
    line-height: 50px;
    text-align: center;
    font-size: 24px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--white);
    margin: 0 2px;
}

.splitter {
    padding: 0 5px;
    color: var(--white);
    font-size: 24px;
}


/******* MODAL EVENT *******/

#modal-event .modal-content > div:not(:last-child) {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: .1rem solid var(--border-profile);
}

#modal-event img {
    max-height: 40rem;
    margin-left: auto;
    margin-right: auto;
}

#modal-event .header > small {
    text-align: right;
    width: 100%;
    display: inline-block;
}

#modal-event .timezone > p > span {
    float: right;
}

#modal-event .timezone address,
#modal-event .timezone .contact {
    margin-top: 2rem;
}

@media screen and (min-width: 48em) {
    #modal-event {
        min-width: 40rem;
    }
}

#modal-event .header > small {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: .6rem;
}

#modal-event .header img {
    max-width: 5rem;
    max-height: 5rem;
    margin: 0;
}

#modal-event .socials {
    display: flex;
}

#modal-event .description p {
    margin-bottom: 1rem;
}

#modal-event .socials img {
    width: 2rem;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(0%);
}

#modal-event .socials li:not(:last-child) {
    margin-right: 2rem;
}

#modal-event .time {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
            "start end"
            "time time";
}

#modal-event .time .start {
    grid-area: start;
}
#modal-event .time .end {
    grid-area: end;
}

#modal-event .time .start,
#modal-event .time .end {
    display: flex;
    flex-direction: column;
    color: var(--color-main);
    font-weight: 100;
    text-align: center;
    justify-self: center;
}

#modal-event .time .start .wrapper,
#modal-event .time .end .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .8rem;
    border-radius: .5rem;
    box-shadow: var(--text-lighter) 0 .1rem .2rem .1rem;
}

#modal-event .time .start .day,
#modal-event .time .end .day {
    font-size: 1.8rem;
    color: var(--text-main);
}

#modal-event .time .start .date,
#modal-event .time .end .date {
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
}

#modal-event .time .start .month-year,
#modal-event .time .end .month-year {
    font-size: 1.8rem;
    color: var(--text-main);
}

#modal-event .time .start .year,
#modal-event .time .end .year {
    font-size: 3rem;
}

/*#modal-event .timeTable .start .time{
    justify-content: right;
}
#modal-event .timeTable .end .time {
    justify-content: left;
}*/
#modal-event .time .start .time,
#modal-event .time .end .time {
    font-weight: 600;
    font-size: 2.5rem;
    justify-content: center;
    color: var(--white);
    background-color: var(--text-dark);
    margin-top: 1rem;
    border-radius: .5rem;
    box-shadow: var(--text-lighter) 0 .1rem .2rem .1rem;
    margin-bottom: 2rem;
}

#modal-event .time .time {
    grid-area: time;
    display: flex;
    color: var(--text-main);
    margin-top: 2rem;
    justify-content: center;
    font-size: 2rem;
}


/**********************/
/****** CAROUSEL ******/
/**********************/

section#carousel {
    position: relative;
}

section#carousel picture {
    display: flex;
    justify-content: center;
    align-items: center;
    /* display: block; */
    /*height: 400px;*/
    max-height: 100%;
    max-width: 100%;
    background-color: black;

}

section#carousel>picture.hidden {
    display: none;
}
section#carousel>picture>img {
    display: none;
    margin: 0px;

}

section#carousel>picture.visible>img {
    display: block;
    overflow: hidden;
    position: relative;
    max-height: 100%;
    max-width: 100%;
}

/*section#carousel>figure>figcaption {
    display: none;
}

section#carousel>figure.visible>figcaption {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
}*/

section#carousel>button.btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15rem;
    color: var(--white);
    opacity: .5;
    transform: translateY(-50%);
    transition: .3s ease-in;
    top: 45%;
    background: none;

}

section#carousel>button.btn:hover,
section#carousel>button.btn:hover {
    transform: translateY(-50%) scale(1.1);
}

section#carousel>button.btn#next {
    right: 0;
}


section#carousel>button.btn>img {
    height: 5rem;
    filter: brightness(100) saturate(100%) invert(0%) sepia(0%) saturate(100%) hue-rotate(180deg) brightness(100%) contrast(100%) drop-shadow(2px 2px 4px rgba(0, 0, 0, 1));
}

@media screen and (min-width: 48em) {
    section#carousel>button.btn>img {
        height: 10rem;
    }
}

section#carousel>button#prev>img {
    transform: rotate(180deg);
}

#carousel-thumbnails {
    display: flex;
    justify-content: start;
    width: 100%;
    max-width: max-content;
    margin: 0 auto;
    overflow: auto;
    padding: 1rem 1rem 1rem;
}

#carousel-thumbnails>li>button {
    opacity: .4;
    cursor: pointer;
    border: none;
    background: none;
}

#carousel-thumbnails>li>button.selected {
    opacity: 1;
}

#carousel-thumbnails .img-fluid {
    height: 10rem;
    /*width: 16rem;*/
}


/**********************/
/****** COLLAPSE ******/
/**********************/


.collapse {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s ease-out;
}

/*.collapse:not(.active) {
    display: none;
}*/


.btn-collapse {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    background: none;
    border: none;
    height: 5rem;
    font-weight: bold;
}

.btn-collapse::after {
    display: inline-block;
    content: url('/grafics/collapse.svg');
    transition: .3s ease-in-out;
}

.btn-collapse.active::after {
    transform: rotate3d(1, 0, 0, -180deg) translateY(-.5rem);
}

.scrolable.active {
    overflow: auto;
}

@media (min-width:991px) {
    #filters .btn-collapse {
        height: 3rem;
        margin-top: 2rem;
    }
    #filters .btn-collapse::after {
        display: none;
    }
    #filters .collapse{
        max-height:fit-content;
    }
}

#filters .plusde, #filters .moinsde{
    font-style: italic;
    color: var(--color-main);
    cursor: pointer;
    font-size: 0.9em;
    padding-left: 0.5rem;
}



/*******************/
/****** RATIO ******/
/*******************/


.ratio-wrap-169 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /*16:9*/
}

.ratio-wrap-43 {
    position: relative;
    width: 100%;
    padding-top: 75%; /*4:3*/
}

.ratio-content {
    position:  absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}


.circle{
    border-radius: 50%;
}

/****************************/
/****** ZOOMBOX IMAGES ******/
/****************************/

.zoombox {
    position: relative;
    width: 100%; /* for IE 6 */
    overflow: hidden;
}

.zoombox img {
    /*width: 100%; */
}

.zoombox img {
    transform: scale3d(1, 1, 1);
    transition: .3s ease-out;
    transition-property: opacity, transform, filter;
}

.zoombox img:hover {
    opacity: 1;
    transform: scale3d(1.05, 1.05, 1);
}


/*******************************/
/****** TEXTAREA AUTOGROW ******/
/*******************************/

.grow-wrap {
    /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
    display: grid;
}
.grow-wrap::after {
    /* Note the weird space! Needed to preventy jumpy behavior */
    content: attr(data-replicated-value) " ";

    /* This is how textarea text behaves */
    white-space: pre-wrap;

    /* Hidden from view, clicks, and screen readers */
    visibility: hidden;
}
.grow-wrap > textarea {
    /* You could leave this, but after a user resizes, then it ruins the auto sizing */
    resize: none;

    /* Firefox shows scrollbar on growth, you can hide like this. */
    overflow: scroll;
}
.grow-wrap > textarea,
.grow-wrap::after {
    /* Identical styling required!! */
    border: 1px solid black;
    padding: 0.5rem;
    font: inherit;
    overflow: hidden;

    /* Place on top of each other */
    grid-area: 1 / 1 / 2 / 2;
}



/****************************/
/****** CONFIRM SLIDER ******/
/****************************/

:root {
    --slider-pos: 0
}

.slider-field input {
    display: none;
}

.slider-wrapper {
    position: relative;
    width: 25rem;
    height: 5rem;
    border: .1rem solid var(--border-main);
    background-color: var(--white);
    padding: .1rem;
}

.slider-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--slider-pos);
    width: 5rem;
    height: 100%;
    background-color: rgba(0, 96, 254, 0.8);
    z-index: 1;
}

.slider {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5rem;
    aspect-ratio: 1;
    cursor: grab;
    background: var(--white);
    padding: 0!important;
    border: .1rem solid var(--border-main);
    z-index: 2;
}

.slider>.slider-extend {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.slider>.slider-extend::before {
    content: '';
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translateY(50%);
    display: block;
    width: 200%;
    height: 300%;
}
.slider>.slider-extend::after {
    content: '';
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateY(50%);
    display: block;
    width: 200%;
    height: 300%;
}

.slider-wrapper.loading {
    background-color: var(--color-main);
    background-image: repeating-linear-gradient(-45deg, var(--color-main) 0, var(--white) 1.25rem, var(--color-main) 2.5rem);
    border-color: var(--border-main);
    box-shadow: none;
    animation: slide 2s linear infinite;
    will-change: background-position;
}

@keyframes slide {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 25rem;
    }
}

.slider-wrapper.loading button {
    display: none;
}

.slider-wrapper.loading::before {
    display: none;
}

/*.slider-wrapper.valid {
    background-color: var(--color-main);
    border-color: var(--border-main);
    box-shadow: none;
}*/


/*********************/
/****** SPINNER ******/
/*********************/

.lds-ripple {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
}
.lds-ripple div {
    position: absolute;
    border: 4px solid var(--color-secondary);
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {
    0% {
        top: 3.6rem;
        left: 3.6rem;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 7.2rem;
        height: 7.2rem;
        opacity: 0;
    }
}


/********************/
/****** FOOTER ******/
/********************/

footer {
    background: var(--color-main);
    color: var(--white);
    font-size: 1.6rem;
    padding: 3rem 0;
    overflow: hidden;
}

footer .logo {
    filter: invert(99%) sepia(40%) saturate(16%) hue-rotate(5deg) brightness(104%) contrast(100%);
    width: 13.5rem;
}

footer a {
    color: var(--white)!important;
    text-decoration: none;
}
footer a:hover,
footer a:focus {
    text-decoration: underline;
}

footer .why *:not(:last-child) {
    font-weight: 200;
    margin-bottom: 1.5rem;
}

footer .why p:last-child {
    font-weight: 600;
}


/*Display*/

footer .container {
    display: flex;
    flex-direction: column;
}


footer .why {
    order: 1;
    margin-bottom: 2rem;
}


footer .newsletter {
    order: 3;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

footer .newsletter form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background-color: var(--white);
    padding: .1rem;
}

footer .newsletter form input[type="email"] {
    width: 100%;
    min-height: 4rem;
    border: none;
    padding-left: 2rem;
}

footer .social {
    order: 4;
    margin-bottom: 2rem;
}

footer .social ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .social ul li:not(:last-child) {
    margin-right: 4rem;
}

footer .social li {
    transition: .3s ease-in-out;
}

footer .social li:hover,
footer .social li:focus {
    transform: scale(1.2);
}

footer .social li span {
    display: none;
}


footer .legal {
    order: 5;
    text-align: center;
    padding-top: 1.5rem;
    border-top: .1rem solid var(--white);
}


footer .nav {
    order: 2;
    margin-bottom: 2rem;
}

footer .nav li:not(:last-child) {
    margin-bottom: 1.75rem;
}

@media screen and (min-width: 36em) {
    footer .newsletter form {
        flex-direction: row;
    }
}

@media screen and (min-width: 48em) {

    footer .container {
        flex-direction: row;
        flex-wrap: wrap;
    }


    footer .why {
        width: 50%;
    }


    footer .newsletter {
        display: flex;
        align-items: center;
        order: 3;
        width: 100%;
    }

    footer .newsletter form {
        max-width: 60rem;
        min-width: 50rem;
    }

    footer .social {
        order: 5;
        padding-top: 1.5rem;
        margin-bottom: 0;
        border-top: .1rem solid var(--white);
        width: 50%;
    }

    footer .social ul {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    footer .legal {
        display: flex;
        order: 4;
        align-items: center;
        text-align: start;
        width: 50%;
    }


    footer .nav {
        justify-self: flex-end;
        text-align: end;
        width: 50%;
    }
}

@media screen and (min-width: 62em) {
    footer .container {
        flex-direction: row;
        flex-wrap: wrap;
    }


    footer .why {
        width: 40%;
        padding-right: 4rem;
    }


    footer .newsletter {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: baseline;
        justify-content: start;
        width: 40%;
    }

    footer .newsletter form {
        width: 100%;
        max-width: initial;
        min-width: initial;
    }

    footer .newsletter h2 {
        color: inherit;
        font-weight: 600;
        font-size: 2.7rem;
    }

    footer .social {
        order: 3;
        padding-top: 0;
        margin-bottom: 2rem;
        border-top: none;
        width: 20%;
    }

    footer .social ul {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        margin: 0;
    }

    footer .social li {
        display: inline;
        justify-self: flex-start;
        transform: translateX(calc(100%/3));
    }

    footer .social li:hover,
    footer .social li:focus {
        transform: scale(1) translateX(28%);
    }

    footer .social li:not(:last-child) {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    footer .social li a {
        display: inline-flex;
    }

    footer .social li img {
        margin-right: 2rem;
    }

    footer .social li span {
        display: inline;
    }

    footer .social ul li:not(:last-child) {
        margin-right: 0;
    }


    footer .nav {
        order: 5;
        text-align: center;
        width: 50%;
        margin-bottom: 0;
        padding-top: 1.5rem;
        border-top: .1rem solid var(--white);
    }

    footer .nav ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin: 0;
    }

    footer .nav li:not(:last-child) {
        margin-bottom: 0;
        margin-right: 2.2rem;
    }
}


/*********************/
/****** COOKIES ******/
/*********************/

#tarteaucitron {
    background: none!important;
}

div#tarteaucitronServices {
    box-shadow: 0 1px 5px #00000030 !important;
}

#tarteaucitronAlertSmall #tarteaucitronCookiesListContainer #tarteaucitronClosePanelCookie, #tarteaucitron #tarteaucitronClosePanel {
    background: var(--color-secondary)!important;
    color: var(--white)!important;
    font-size: 1.2rem!important;
    font-weight: 600!important;
    width: 7rem!important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronMainLine {
    background: #fff!important;
    border: none!important;
}

#tarteaucitronRoot .tarteaucitronH1 {
    font-size: 1.5em!important;
    color: var(--color-main)!important;
}

#tarteaucitronAlertSmall #tarteaucitronCookiesListContainer #tarteaucitronCookiesList .tarteaucitronTitle,
#tarteaucitron #tarteaucitronServices .tarteaucitronTitle button, #tarteaucitron #tarteaucitronInfo,
#tarteaucitron #tarteaucitronServices .tarteaucitronDetails {

    color: var(--text-main)!important;
    background: var(--white)!important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow, #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny, .tac_activate .tarteaucitronAllow {
    background: var(--color-main)!important;
}

#tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronAllow, #tarteaucitron #tarteaucitronServices .tarteaucitronLine .tarteaucitronAsk .tarteaucitronDeny, .tac_activate .tarteaucitronAllow {
    border-radius: 0 !important;
}

#tarteaucitronRoot .tarteaucitronH2 {
    color: var(--text-main)!important;
}

#tarteaucitron .tarteaucitronBorder {
    border: none!important;
}

/*JQ AUTOCOMPLETE*/

.ui-autocomplete {
    max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front {
    color: var(--text-main);
    background-color: var(--bg-main);
}
.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: var(--bg-dark) !important;
    border: .1rem solid var(--bg-dark);
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front li:first-child > div {
    position: relative;
}

.ui-menu.ui-widget.ui-widget-content.ui-autocomplete.addFirst.ui-front li:first-child > div::after {
    position: absolute;
    content: "+ Ajouter";
    right: 1rem;
    bottom: 25%;
    font-size: 70%;
    color: var(--color-main);
}

.ui-helper-hidden-accessible {
    display: none;
}

/*UPLOADCARE*/

.uploadcare--button:not([title='Fermer'], .uploadcare--file__remove),
.uploadcare--widget__button_type_open {
    background-color: var(--color-main);
    color: var(--white);
    border-radius: 0;
}

.uploadcare--button:not([title='Fermer'], .uploadcare--file__remove ):hover,
.uploadcare--button:not([title='Fermer'], .uploadcare--file__remove ):focus,
.uploadcare--widget__button_type_open:hover,
.uploadcare--widget__button_type_open:focus {
    background-color: var(--color-main);
}

.uploadcare--widget__button.uploadcare--widget__button_type_open {
    background: none;
    color: var(--text-main);
    font-weight: 200;
    border: 0.2rem var(--text-lighter) dashed;
    border-radius: 1rem;
    padding: 5rem 2.5rem;
    cursor: pointer;
}

.uploadcare--powered-by {
    display: none;
}

/* TEL INPUT */
.iti__flag {background-image: url("/assets/tel-input/img/flags.png");}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {background-image: url("assets/tel-input/img/flags@2x.png");}
}

.iti__country-list {
    background-color: var(--bg-main)!important;
}

.iti__country.iti__highlight {
    background-color: var(--bg-dark)!important;
}

.iti__dial-code {
    color: var(--color-main)!important;
}


/* SCEDITOR */

.sceditor-container.valid {
    border: .1rem solid var(--color-success)
}

.sceditor-container.error {
    border: .1rem solid var(--color-danger)
}

.sceditor-grip {
    position: relative;
}
.sceditor-grip::before {
    position: absolute;
    content: '';
    background: linear-gradient(-45deg, var(--border-secondary)  50%, rgba(255, 255, 255, 0) 50%);
    height: 1rem;
    aspect-ratio: 1;
}


/* LOADING SCREEN */

#loading {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--bg-main);
    z-index: 99;
}

#loading-image {
    z-index: 100;
    margin-bottom: 2rem;
}

/*
#toTop {
    position: fixed;
    right: 3rem;
    bottom: ;
}*/
