/* GLOBAL */
:root {
    --color-bg-primary: rgb(249 250 251);
    --color-bg-secondary: rgb(255 255 255);
    --color-bg-tertiary: rgb(243 244 246);
    --color-bg-premium: rgb(209 250 229);
    --color-bg-searchbtn: rgb(37 99 235);
    --color-bg-icons-blue: rgb(219 234 254);
    --color-bg-icons-green: rgb(209 250 229);
    --color-bg-icons-yellow: rgb(254 243 199);
    --color-bg-icons-red: rgb(254 226 226);
    --color-bg-icons-purple: rgb(243 232 255);
    --color-font-primary: rgb(0 0 0);
    --color-font-secondary: rgb(75 85 99);
    --color-font-tertiary: rgb(37 99 235);
    --color-font-premium: rgb(6 95 70);
    --color-font-searchbtn: rgb(255 255 255);
    --color-font-qualiopi: rgb(16 185 129);
    --color-font-expired: rgb(153 27 27);
    --color-font-rs: rgb(107 33 168);
    --color-border-grey: rgb(209 213 219);
    --color-border-blue: rgb(37 99 235);
    --font-size-s: 0.75rem;
    --font-size-m: 0.875rem;
    --font-size-l: 1.5rem;
    --font-size-xxl: 3.75rem;
    --shadow-primary: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --medium: 1rem;
    --large: 2rem;
    --extra-large: 4rem;
}

* {
    box-sizing: border-box;
}

svg {
    box-sizing: content-box;
}

.display-flex {
    display: flex;
}

.display-none {
    display: none;
}

.flex-direction-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-fit-content {
    flex-basis: fit-content;
}

.flex-1-1-80 {
    flex: 1 1 80%;
}

.flex-1-1-70 {
    flex: 1 1 70%;
}

.flex-1-1-60 {
    flex: 1 1 60%;
}

.flex-1-1-50 {
    flex: 1 1 49%;
}

.flex-1-1-28 {
    flex: 1 1 28%;
}

.flex-1-1-18 {
    flex: 1 1 18%;
}

.flex-1-1-8 {
    flex: 1 1 8%;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.position-sticky {
    position: sticky;
}

.z-index-100 {
    z-index: 100;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-right {
    justify-content: right;
}

.justify-content-space-between {
    justify-content: space-between;
}

.justify-content-space-evenly {
    justify-content: space-evenly;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}

.align-items-stretch {
    align-items: stretch;
}

.border-box {
    box-sizing: border-box;
}

.color-bg-transparent {
    background-color: transparent;
}

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

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

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

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

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

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

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

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

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

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

.color-font-primary {
    color: var(--color-font-primary);
}

.color-font-secondary {
    color: var(--color-font-secondary);
}

.color-font-tertiary,
.liens-externes a:visited,
li a.color-font-tertiary:visited,
td a.color-font-tertiary:visited,
a.color-font-tertiary:visited {
    color: var(--color-font-tertiary);
}

.color-font-premium {
    color: var(--color-font-premium);
}

.color-font-searchbtn {
    color: var(--color-font-searchbtn);
}

.color-font-qualiopi {
    color: var(--color-font-qualiopi);
}

.color-font-expired {
    color: var(--color-font-expired);
}

.color-font-rs {
    color: var(--color-font-rs);
}

.font-size-s {
    font-size: var(--font-size-s);
}

.font-size-m {
    font-size: var(--font-size-m);
}

.font-size-l {
    font-size: var(--font-size-l);
}

.font-size-xxl {
    font-size: var(--font-size-xxl);
}

.font-bold {
    font-weight: 700;
}

.width-150 {
    width: 150%;
}

.width-100 {
    width: 100%;
}

.width-80 {
    width: 80%;
}

.width-70 {
    width: 70%;
}

.width-50 {
    width: 50%;
}

.width-48 {
    width: 48%;
}

.width-30 {
    width: 30%;
}

.width-20 {
    width: 20%;
}

.width-15 {
    width: 15%;
}

.width-11 {
    width: 11%;
}

.width-10 {
    width: 10%;
}

.width-5 {
    width: 5%;
}

.width-fit-content {
    width: fit-content;
}

.border-radius-05 {
    border-radius: 0.5rem;
}

.border-radius-50 {
    border-radius: 50px;
}

.margin-0 {
    margin: 0;
}

.margin-auto {
    margin: auto;
}

.margin-bottom-medium {
    margin-bottom: var(--medium);
}

.margin-bottom-large {
    margin-bottom: var(--large);
}

.margin-bottom-extra-large {
    margin-bottom: var(--extra-large);
}

.margin-left-3px {
    margin-left: 3px;
}

.margin-left-right-25 {
    margin: 0 25px;
}

.padding-0 {
    padding: 0;
}

.padding-025 {
    padding: 0.25rem;
}

.padding-05 {
    padding: 0.5rem;
}

.padding-10 {
    padding: 1rem;
}

.padding-15 {
    padding: 1.5rem;
}

.padding-025-0 {
    padding: 0.25rem 0;
}

.padding-025-05 {
    padding: 0.25rem 0.5rem;
}

.padding-05-025 {
    padding: 0.5rem 0.25rem;
}

.padding-4-0 {
    padding: 4rem 0;
}

.padding-1-0 {
    padding: 1rem 0;
}

.padding-05-1 {
    padding: 0.5rem 1rem;
}

.padding-0-15 {
    padding: 0 15%;
}

.padding-075-15 {
    padding: 0.75rem 1.5rem;
}

.padding-bottom-025 {
    padding-bottom: 0.25rem;
}

.padding-top-025 {
    padding-top: 0.25rem;
}

.padding-left-30 {
    padding-left: 3rem;
}

.padding-left-medium {
    padding-left: var(--medium);
}

.padding-right-10px {
    padding-right: 10px;
}

.padding-right-05 {
    padding-right: 0.5rem;
}

.height-160px {
    min-height: 160px;
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.gap-20 {
    gap: 20px;
}

.gap-10 {
    gap: 10px;
}

.gap-4 {
    gap: 4px;
}

.gap-0125 {
    gap: 0.125rem;
}

.border-none {
    border: 0;
}

.border-1-solid-grey {
    border: 1px solid var(--color-border-grey);
}

.border-bottom-1-solid-grey {
    border-bottom: 1px solid var(--color-border-grey);
}

.border-1-solid-blue {
    border: 1px solid var(--color-border-blue);
}

a,
a:visited {
    text-decoration: none;
    color: var(--color-font-primary);
}

.color-font-searchbtn:visited {
    color: var(--color-font-searchbtn);
}

input[type="search"]:focus {
    outline-color: var(--color-border-blue);
}

input[type="button"]:hover {
    cursor: pointer;
}

.text-transform-uppercase {
    text-transform: uppercase;
}

body {
    background-color: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-m);
    color: var(--color-font-primary);
}

main {
    min-height: 100vh;
}

h1 {
    font-size: 1.5rem;
}

.text-align-center {
    text-align: center;
}

.text-align-left {
    text-align: left;
}

.text-align-right {
    text-align: right;
}

.vertical-align-middle {
    vertical-align: middle;
}

button:hover {
    cursor: pointer;
}

.button-glow a:hover {
    opacity: 0.8;
}

.inline-block {
    display: inline-block;
}

.overflow-hidden {
    overflow: hidden;
}

.text-overflow-ellipsis {
    text-overflow: ellipsis;
}

.white-space-nowrap {
    white-space: nowrap;
}

/* HEADER */
header {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 2rem 15%;
    top: 0;
}

.account-status {
    padding: 4px 12px;
    line-height: 1rem;
}

#search-dropdown-menu {
    top: 110%;
    left: 0;
    width: 16rem;
}

.menu-hide {
    position: fixed;
    height: 100%;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.menu-show {
    position: fixed;
    height: 100%;
    top: 0;
    left: 30%;
    opacity: 1;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

/* GOBAL SEARCH */
#global-search-dropdown {
    max-height: 26rem;
    overflow: auto;
    scrollbar-width: thin;
    top: 42px;
}

.suggestion-text-max-height {
    max-height: 2rem;
}

input:valid + #global-search-dropdown,
#global-search-dropdown:hover,
#global-search-dropdown:focus,
#global-search-dropdown:focus-within,
#global-search-dropdown:focus-visible,
#global-search-dropdown:active {
    display: flex;
    visibility: visible;
    transition-delay: 0s; /* react immediately on hover */
}

input:invalid + #global-search-dropdown,
input:not(:focus):valid + #global-search-dropdown {
    visibility: hidden;
    transition: 0.2s 1s; /* delay of 1 seconds on hover off */
}

/* SEARCH FORM */
.form-search-field-main {
    padding: 0.5rem 0.5rem 0.5rem 40px;
}

.form-search-field {
    padding: 0.5rem;
}

.filter-icon-invert {
    transform: scaleY(-1);
    transition: all 0.3s;
}

.icon-search-field {
    left: 0.5rem;
}

.show-filters {
    transform-origin: top;
    transform: scaleY(1);
    max-height: 45px;
    opacity: 100;
    visibility: visible;
    transition: max-height 0.5s ease-in-out, transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out;
}

.hide-filters {
    transform-origin: top;
    transform: scaleY(0);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s ease-in-out, transform 0.5s ease-in-out,
        opacity 0.5s ease-in-out, visibility 0s 1s;
}

/* TABLE */
.overflow-x-auto {
    overflow-x: auto;
    overflow-y: hidden;
}

table {
    table-layout: fixed;
    text-align: left;
    border-collapse: collapse;
    min-width: 80%;
}

.bottom-border-grey,
.bottom-border-grey td,
.bottom-border-grey th {
    border-bottom: 1px solid var(--color-border-grey);
}

td a:visited {
    color: var(--color-font-secondary);
}

.to-hover:hover + .popup-info,
.to-hover:hover + .popup-info-2 {
    visibility: visible;
    opacity: 1;
}

.popup-info {
    visibility: hidden;
    opacity: 0;
    top: 0;
    right: 18px;
    transform: translate(calc(50% - 2rem), -100%);
    transition: opacity 0.2s;
}

.popup-info-2 {
    visibility: hidden;
    opacity: 0;
    top: 0;
    left: 15%;
    transform: translate(0, calc(-9px - 1rem));
    transition: opacity 0.2s;
    max-width: 50%;
}

/* BOTTOM MENU */

.bottom-menu {
    border-left: 1px solid var(--color-border-grey);
    border-right: 1px solid var(--color-border-grey);
    border-bottom: 1px solid var(--color-border-grey);
    border-radius: 0 0 0.5rem 0.5rem;
}

/* FOOTER */
.no-bullet {
    list-style-type: none;
}

footer {
    padding: 2rem 15%;
    top: 8px;
}

.no-bullet a:hover {
    color: var(--color-font-tertiary);
}

/* MEDIAQUERIES */
@media only screen and (max-width: 1440px) {
    main .width-80 {
        width: 90%;
    }
    table {
        width: max-content;
    }
}

@media only screen and (max-width: 1024px) {
    .bottom-menu .flex-1-1-70 {
        flex: 1 1 48%;
    }

    footer,
    footer ul {
        flex-direction: column;
    }

    footer ul {
        align-items: center;
    }

    footer ul.width-20 {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .bottom-menu .flex-1-1-70 {
        min-width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    #header-menu-desktop.display-flex,
    #header-menu-user.display-flex {
        display: none;
    }

    #header-menu-burger-mobile.display-none,
    #header-menu-mobile {
        display: flex;
    }

    form {
        flex-direction: column;
        flex-wrap: wrap;
    }

    #form_search-option,
    form div.width-80,
    form button,
    form div.flex-1-1-50 {
        width: 100%;
    }

    .bottom-menu nav {
        min-width: 100%;
        overflow-x: auto;
    }

    .bottom-menu .gap-4 {
        gap: 0;
    }
}
