:root{
    --wr-main-color:  #072440;
    --fs-xl: 3.5rem;
    --fs-600: 2rem;
    --fs-500: 1.3rem;
    --fs-400: 1rem;
    --box-shadow: 0px 2px 2px #c1c1c1;
    --img-box-shadow: 0px 0px 5px #d9d9d9;

    --positive-color: #289b1cdd;
    --card-padding: 20px;
    --card-border-radius: 10px;

    --button-background: #0c569dc4;
    --negative-color: #8f0000;
    
    --pale-color-1: #F8EEE266;
    --pale-color-2: #E2F2F966;
    --pale-color-3: #FAF8E766;
    --pale-color-4: #E6F2E866;
    --pale-color-5: #F5E6C766;
    --header-height:  40px;
    --product-categories-top:  calc(var(--header-height) + 2rem);
    --product-category-name-top:  calc(70px + var(--product-categories-top));
}
#main-container {
    max-width: 1200px;
    margin: 0px auto;
    scroll-behavior: smooth;
    scroll-margin: 110px;
    padding-top: 20px;
}

div#overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    background: #c5c5c547;
    z-index: 3;
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: all ease-in .3s;
}
div#overlay.active{
  opacity: 1;
  pointer-events: all;
}

/*
    MAIN
*/
*:not(i){
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  font-size: 16px;
  scroll-margin: 70px;
  /*outline: 1px solid limegreen !important;*/
  -webkit-tap-highlight-color: transparent;
}
h1{
  font-size: var(--fs-xl);
}
html{
  scroll-behavior: smooth;
}
body:has(#overlay.active) {
    overflow: hidden;
}
body {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
}
main {
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.card {
    padding: 15px 40px;
    width: fit-content;
    /* white-space: nowrap; */
    background: #fff;
    border-radius: 5px;
    box-shadow: 0px 5px 5px #dddddd;
    margin: 10px;
}
/*
Custom inputs
*/
.custom-input-text {
    position: relative;
    margin: 8px 8px;
    width: 100%;
    background: #f9f9f9;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 5px #ddd;
}
.custom-input-text label {
    position: absolute;
    left: 15px;
    top: 20px;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #373737;
    pointer-events: none;
    transition: all ease-in-out .3s;
    color: #878787;
}
.custom-input-text input:valid ~ label,
.custom-input-text input:active ~ label,
.custom-input-text input:focus ~ label {
    top: -5px;
    font-size: .8rem;
    outline: none;
}
.custom-input-text input {
    border: none;
    outline: none;
    background: transparent;
    padding: 5px;
    border-radius: 6px;
}
.custom-input-text.error input,
.custom-input-text.error label,
.custom-input-text.error .error-message {
    color: red;
}

.custom-input-text.error .error-message {
    display: block;
}
.custom-input-text .error-message {
    /* position: absolute; */
    /* left: 7px; */
    /* bottom: -1rem; */
    font-size: .7rem;
    display: none;
}

.button-holder {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}


/*
ERROR TOAST
*/
#error_toast {
    position: fixed;
    width: clamp(100px, calc(100vw - 2* 20px - 2* 10px), 1200px);
    margin: 20px;
    background: linear-gradient(356deg, #c91109, #f33030);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px #797979;
    top: -130px;
    left: 50%;
    transition: all ease-in-out .3s;
    z-index: 20;
    transform: translateX(calc(-50% - 20px));
}
#error_toast.active{
    top: 0;
}
#error_message {
    text-align: center;
    color: #fff;
    font-size: var(--fs-500);
}

/* Tablettes */
@media (max-width: 1024px) {
    :root{
      --fs-xl: 3rem;
      --fs-600: 2rem;
      --fs-400: 1rem;
    }
    #error_message {
      font-size: var(--fs-400);
  }
}

/* Smartphones */
@media (max-width: 768px) {
    :root{
      --fs-xl: 2.8rem;
      --fs-600: 2rem;
      --fs-400: 1rem;
    }
}

/* Très petits appareils */
@media (max-width: 480px) {
    :root{
      --fs-xl: 2.2rem;
      --fs-600: 2rem;
      --fs-400: 1rem;
    }
}