/*
Theme Name: CCN Kawaco
Theme URI: https://card-payment.chemin-neuf.org
Author: Communauté du Chemin Neuf
Author URI: https://wwww.chemin-neuf.fr
Description: The WordPress theme for the CCN Inscriptions website
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccn
Version: 2.0.0
*/

:root {
    --font-sans: 'Inter', 'Source Sans Variable', 'Helvetica Neue', helvetica, arial, sans-serif;

    --color-primary: #0099e0;
    --color-primary-dark: #3a8ebc;
    --color-primary-light: #d8ebf5;
    --color-primary-ultralight: #f7fbfd;
    --light-gray: #EAECF0;
    --red: #da3838;
    --green: #53bb53;
    --black: rgb(36, 36, 36);
    --white: #fff;

    --box-shadow1: 0 2px 4px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);

    --clay-scale: 1;
    --clay-background: var(--white);
    /* --clay-shadow-inset-primary: calc(var(--clay-scale, 1) * -4px) calc(var(--clay-scale, 1) * -4px) calc(var(--clay-scale, 1) * 8px) 0 hsla(0, 0%, 0%, 0.2);
    --clay-shadow-inset-secondary: calc(var(--clay-scale, 1) * 4px) calc(var(--clay-scale, 1) * 4px) calc(var(--clay-scale, 1) * 8px) 0 hsla(0, 0%, 100%, 0.2); */
}

html, body {
    padding: 0;
    margin: 0;
    /* background-color: hsl(220 35% 98% / 1); */
    background-color: white;
    font-family: var(--font-sans);
    font-size: 16px;
    color: #333;
}

@media screen and (max-width: 782px) {
    html[lang] {
        margin-top: 0 !important;
    }
}

#wpadminbar {
    display: none;
    max-height: 0;
    pointer-events: none;
    position: absolute;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

a {
    -webkit-tap-highlight-color: transparent;
}

select {
    font-family: var(--font-sans);
}
select:focus-visible {
    outline: none;
}

.mb-1 {margin-bottom: 0.5rem;} .mb-2 {margin-bottom: 1rem;} .mb-3 {margin-bottom: 1.5rem;} .mb-4 {margin-bottom: 2rem;} .mb-5 {margin-bottom: 2.5rem;}
.mt-1 {margin-top: 0.5rem;} .mt-2 {margin-top: 1rem;} .mt-3 {margin-top: 1.5rem;} .mt-4 {margin-top: 2rem;} .mt-5 {margin-top: 2.5rem;}
.ml-1 {margin-left: 0.5rem;} .ml-2 {margin-left: 1rem;} .ml-3 {margin-left: 1.5rem;} .ml-4 {margin-left: 2rem;} .ml-5 {margin-left: 2.5rem;}
.mr-1 {margin-right: 0.5rem;} .mr-2 {margin-right: 1rem;} .mr-3 {margin-right: 1.5rem;} .mr-4 {margin-right: 2rem;} .mr-5 {margin-right: 2.5rem;}

#app .flex {display: flex; align-items: center;}
#app .flexcol {display: flex; flex-direction: column;}
#app .flexcol.al {align-items: flex-start;}

.w-100 {width: 100%;}

/* BUTTONS */
.button.threed {
    /* background-color: var(--primary-color); */
    font-size: 0.8rem;
    min-width: 150px;
    border-radius: 0;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    /* background: linear-gradient(60deg, var(--primary-color), hsl(189deg 100% 34%)); */
    background: radial-gradient( 100% 100% at 100% 0%, hsl(200.86deg 100% 41%) 0%, hsl(199 100% 44% / 1) 100% );
    /* transition: all 0.15s ease-in-out; */
    transition: box-shadow 0.15s ease,transform 0.15s ease;
    border-radius: 3px;
    border: none;
    color: var(--white);
    cursor: pointer;
    /* box-shadow: 0px 2px hsl(189deg 100% 24%); */
    text-shadow: 0 1px 0 rgb(0 0 0 / 34%);
    box-shadow: 7px 7px 10px -2px rgb(45 35 66 / 40%), 0px 7px 13px -3px rgb(45 35 66 / 30%), inset 0px -8px 0px hsl(232deg 31% 29% / 50%);
}

.button.threed.pay:active:hover {
    transform: translateY(5px);
    box-shadow: 0px 4px 10px -2px rgb(45 35 66 / 40%), 0px 2px 13px -3px rgb(45 35 66 / 30%), inset 0px -3px 0px hsl(232deg 31% 29% / 50%);
}

.button.threed.error {
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    margin: 1rem 0.5rem;
    color: white;
    background: radial-gradient( 100% 100% at 100% 0%, hsl(11.63deg 100% 41%) 0%, hsl(27.69deg 100% 44%) 100% );
}

.button .loading-icon {
    margin-left: 1rem;
}

.badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    border-radius: 12px;
    padding: 4px 0.5rem;
    font-size: 0.7rem;
}
.badge.green {background-color: var(--green);}


/* CLAYMORPHISM */
.clay {
    background: var(--clay-background,rgba(0,0,0,.005));
    border-radius: var(--clay-border-radius,32px);
    box-shadow: var(--clay-shadow-outset, 2px 2px 4px 0 rgba(0,0,0,.25)),
        inset var(--clay-shadow-inset-primary, calc(var(--clay-scale) * -4px) calc(var(--clay-scale) * -4px) calc(var(--clay-scale) * 8px) 0 rgba(0, 0, 0, 0.2)),
        inset var(--clay-shadow-inset-secondary, calc(var(--clay-scale) * 4px) calc(var(--clay-scale) * 4px) calc(var(--clay-scale) * 8px) 0 hsla(0,0%,100%,.2));
}

button.clay {
    border: none;
}

/* NOTIFS */
.notif {
    font-size: 0.9rem;
    padding: 4px 12px;
    background-color: #ccc;
    width: fit-content;
    border-radius: 12px;
}
.notif a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.notif.success {
    background-color: var(--green);
    color: white;
}
.notif.error {
    background-color: var(--red);
    color: white;
    padding: 0.7rem 1rem;
}

.notif.error a {
    text-decoration: underline;
}


/* FORM */
.field {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* LISTS */
ul a, .menu a {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

ul.list, .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.list > li, .menu > * {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    /* box-shadow: var(--box-shadow1); */
    border-bottom: 1px solid #ddd;
    background-color: white;
}

ul.list > li.active, .menu > .active {
    background-color: var(--color-primary);
    color: white;
    box-shadow: none;
}

.menu.horizontal {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
}

.menu.horizontal > * {
    display: block;
    padding: 1.2rem 1rem;
    width: 100%;
    text-align: center;
    box-shadow: none;
    margin: 0;
}

.menu.horizontal > .router-link-active {
    background-color: var(--color-primary);
    color: white;
}




/* ================================================== */
/* VUE TRANSITIONS */
/* ================================================== */

/* Fade in */
.myfade-enter-active,
.myfade-leave-active {
  transition: opacity 0.5s ease;
}

.myfade-enter-from,
.myfade-leave-to {
  opacity: 0;
}


/* Transition for vur router page change */
/* Slide  */
.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease-out;
}

.slide-enter-to {
  transform: translateX(0);
}

.slide-enter-from {
    transform: translateX(-100%);
}

.slide-leave-to {
    transform: translateX(100%);
}

.slide-leave-from {
    transform: translateX(0);
}



/* Scale slide */
.scale-slide-enter-active,
.scale-slide-leave-active {
  transition: all 0.15s ease-out;
}

.scale-slide-enter-to {
  transform: translateX(0) scale(1);
}

.scale-slide-enter-from {
    transform: translateX(-100%) scale(0.9);
}

.scale-slide-leave-to {
    transform: translateX(100%) scale(0.9);
}

.scale-slide-leave-from {
    transform: translateX(0) scale(1);
}





/* Bounces from the top while appearing */
.bounce-top-enter-active {
    animation: bounce-in-from-top 0.25s;
}

.bounce-top-leave-active {
    animation: bounce-in-from-top 0.3s reverse;
}

@keyframes bounce-in-from-top {
    0% {
        transform: translateY(-80%) scale(0.8) scaleX(1);
    }
    50% {
        transform: translateY(20%) scale(1.05);
    }
    100% {
        transform: translateY(0);
    }
}



/* Bounces from the bottom while appearing */
.bounce-bottom-enter-active {
    animation: bounce-in-from-bottom 0.25s;
}

.bounce-bottom-leave-active {
    animation: bounce-in-from-bottom 0.3s reverse;
}

@keyframes bounce-in-from-bottom {
    0% {
        transform: translateY(100%) scale(0.8);
    }
    50% {
        transform: translateY(-20%) scale(1.05);
    }
    100% {
        transform: translateY(0);
    }
}


/* Bounce appear */
.bounce-enter-active {
    animation: bounce-in 0.4s;
}
.bounce-leave-active {
    animation: bounce-in 0.3s reverse;
}
@keyframes bounce-in {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}