@import "fonts/index.css";

:root {
    --colors-red: #C30100;
    --colors-gray: #707070;
    --colors-brown: #B97D38;
    --colors-bg-primary: #FDF4EF;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    font-family: Montserrat-Regular, sans-serif;
    font-size: 14px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

    /*UnComment below code to disable text select on all platforms !*/
    /*-webkit-touch-callout: none;*/
    /*-webkit-user-select: none;*/
    /*-khtml-user-select: none;*/
    /*-moz-user-select: none;*/
    /*-ms-user-select: none;*/
    /*user-select: none;*/
}

body {
    margin: 0;
    padding: 0;
}

p {
    margin: unset;
    padding: unset;
}

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

.d-block {
    display: block;
}

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

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.grid-colls-2 {
    grid-template-columns: 47% 47%;
    gap: .5rem 6%;

    @media screen and (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: .5rem;
    }
}

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

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

.mt-2 {
    margin-top: .5rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mt-4 {
    margin-top: 1rem !important;
}

.gap-1 {
    gap: .25rem;
}

.gap-2 {
    gap: .5rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-8 {
    gap: 2rem;
}

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

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

.self-end {
    align-self: end;
}

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

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

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

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

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

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

.w-full {
    width: 100%;
}

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

.h-fit {
    height: fit-content;
}

.h-device {
    height: 100dvh;
}

.w-device {
    width: 100dvw;
}

.h-full {
    height: 100%;
}

.m-2 {
    margin: .5rem;
}

.p-2 {
    padding: .5rem;
}
.p-4 {
    padding: 1rem;
}

.bg-black {
    background: #000;
}

.bg-white {
    background: #fff;
}

.text-black {
    color: #000;
}

.text-white {
    color: #fff;
}

.text-red {
    color: var(--colors-red);
}

.text-gray {
    color: var(--colors-gray);
}

.bg-gray {
    background: var(--colors-gray);
}

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

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

.cursor-pointer {
    cursor: pointer;
}

.regular {
    font-family: "Montserrat-Regular", sans-serif;
}

.semi-bold {
    font-family: "Montserrat-SemiBold", sans-serif;
}

.bold {
    font-family: "Montserrat-Bold", sans-serif;
}

.medium {
    font-family: "Montserrat-Medium", sans-serif;
}

.regular-cormorant {
    font-family: 'Cormorant', sans-serif
}

.semi-bold-cormorant {
    font-family: 'Cormorant', sans-serif;
    font-weight: 500;
}

.bold-cormorant {
    font-family: 'Cormorant', sans-serif;
    font-weight: 600;
}

.medium-cormorant {
    font-family: 'Cormorant', sans-serif;
    font-weight: 400;
}

.text-decoration-line-through {
    text-decoration: line-through;
    color: #999; /* gris clair */
    font-style: italic; /* optionnel */
}


.desktop {
    @media screen and (max-width: 1188px) {
        display: none;
    }
}

.tablet {
    @media screen and (min-width: 1189px) {
        display: none;
    }
}

.mobile {
    @media screen and (max-width: 508px) {
        display: none;
    }
}

.d-768 {
    display: inherit;
    @media screen and (max-width: 768px) {
        display: none;
    }
}

.d-1024 {
    display: inherit;
    @media screen and (max-width: 1024px) {
        display: none;
    }
}

.h-1024 {
    display: none;
    @media screen and (max-width: 1024px) {
        display: inherit !important;
    }
}

.h-768 {
    display: none;
    @media screen and (max-width: 768px) {
        display: inherit !important;
    }
}

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

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

.btn-primary.disabled, .btn-secondary.disabled {
    filter: opacity(0.3);
    pointer-events: none;
}

.btn-primary {
    all: unset;
    cursor: pointer;
    padding: 10px 20px;
    background: var(--colors-red);
    border: 1px solid var(--colors-red);
    color: #FFF;
    border-radius: 900px;
    font-family: Montserrat-SemiBold, sans-serif;
    text-align: center;
}

.btn-secondary {
    all: unset;
    cursor: pointer;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    border: 1px solid var(--colors-red);
    border-radius: 900px;
    font-family: Montserrat-SemiBold, sans-serif;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--colors-red);
    color: #fff;
}

.btn-primary:hover {
    background: #FFF;
    color: var(--colors-red);
}

button {
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease !important;
}

button:hover {
    /*transform: scale(1) !important;*/
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

button:active {
    transform: scale(0.99) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}

.likeAButton {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease !important;
}

.likeAButton:active {
    transform: scale(0.9) !important;
}

.ml-auto {
    margin-left: auto;
}

.mr-auto {
    margin-right: auto;
}

.mt-auto {
    margin-top: auto;
}

.mb-auto {
    margin-bottom: auto;
}

.minMaxWidth {
    width: 100%;
    max-width: min(1188px, 100dvw);
}

.fs-small, .fs-small > * {
    font-size: 12px;
}

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--colors-red);
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.h-separator {
    width: 100%;
    height: 1px;
    margin: .5rem 0;
}

.v-separator {
    width: 1px;
    height: 100%;
    margin: .5rem 0;
}

.h-1 {
    margin: 4px 0;
    height: 1px;
}

.aspect-1 {
    aspect-ratio: 1 / 1;
    display: block;
    width: fit-content;
    text-align: center;
}

.rounded-full {
    border-radius: 50%;
}

.rounded-bliss {
    border-radius: 99999px;
}

.rounded-p {
    border-radius: 16px;
}

.formInputContainer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .25rem;
}
.formInputContainer_date {
    flex-direction: row;
    align-items: center;
    gap: .75rem;
}

.formInputContainer > label {
    font-size: 14px;
}

.formInputContainer > input, .formInputContainer > select, .formInputContainer > textarea {
    /*all: unset;*/
    cursor: pointer;
    box-sizing: border-box;
    border: solid 1px #707070;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    padding: 8px;
    color: black;
    width: 100%;
    height: 44px;
}

.formInputContainer > textarea {
    height: unset;
}

.formInputContainer > select {
    font-size: 12px;
}

.formInputContainer > select {
    width: fit-content;
}

.formInputContainer_password > img {
    position: absolute;
    width: 20px;
    height: 16px;
    top: 31px;
    right: 8px;
    cursor: pointer;
}

.formInputContainer_password > .formInputContainer_password_withHints_hints {
    display: flex;
    flex-direction: column;
}

.formInputContainer_password > .formInputContainer_password_withHints_hints > small::before {
    content: 'x ';
}

.formInputContainer_password > .formInputContainer_password_withHints_hints > .isRuleValid {
    color: #1c920d;
}

.formInputContainer_password > .formInputContainer_password_withHints_hints > small.isRuleValid::before{
    content: "   ";
    white-space: pre;
}

input[type="radio"] {
    accent-color: var(--colors-red);
}

input[type="checkbox"] {
    accent-color: var(--colors-red);
}

.layerContainer.active {
    display: flex;
}
.layerContainer {
    display: none;
}

.layerContainer.active.transition .bodyContainer {
    right: 0;
}

.layerContainer.active.transition .backdropContainer {
    opacity: 1;
}

.layerContainer .bodyContainer {
    position: fixed;
    z-index: 999999999;
    top: 0;
    right: -100%;
    background: #FFF;
    width: min(100dvw, 580px);
    height: 100dvh;
    transition: right 0.3s ease-in-out;
}

.layerContainer .backdropContainer {
    position: fixed;
    z-index: 999999998;
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.layerContainer .bodyContainer .layerContainer_closeLayer {
    position: absolute;
    top: 20px;
    right: 9px;
}

.popupContainer.selected {
    display: flex;
}
.popupContainer {
    position: fixed;
    z-index: 999999999;
    inset: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popupContainer .popupContainer_closePopup {
    position: absolute;
    top: 4px;
    right: 4px;
}

.popupContainer > div {
    max-width: min(80dvw, 980px);
    max-height: 84dvh;
    overflow-y: auto;
    position: relative;

    @media screen and (max-width: 768px) {
        max-width: 90dvw;
        max-height: 90dvh;
    }
}

.hintContainer {
    position: relative;
}

.hintContainer .hintContainer_executor {
    text-decoration: underline;
    position: relative;
    padding-bottom: 10px;
}

.hintContainer .hintContainer_content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px;
    top: calc(100% + 6px);
    z-index: 999;
    width: 100%;
    left: 0;
    border: 1px solid var(--colors-red);
}

.hintContainer .hintContainer_executor:after {
    content: "";
    display: none;
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #e00;
    border-top: 1px solid #e00;
    transform: translateX(-50%) rotate(45deg);
    z-index: 1000;
}

.hintContainer:has(.hintContainer_executor:hover) .hintContainer_executor:after {
    display: block;
}

.hintContainer:has(.hintContainer_executor:hover) .hintContainer_content {
    display: block;
}

.gTitle {
    font-size: 26px !important;

    @media screen and (max-width: 768px) {
        font-size: 18px !important;
    }
}

.fs-20 {
    font-size: 20px;
}

.fs-18 {
    font-size: 18px;
}

.fs-16 {
    font-size: 16px;
}

.fs-8 {
    font-size: 8px;
}

.noUnderline {
    text-decoration: none;
}

.lineThrough {
    text-decoration: line-through;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.m-2 {
    margin: .5rem;
}

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

.md-flex-col { 
    @media screen and (max-width: 960px) {
        flex-direction: column !important;
    }
}

.md-flex-row {
    @media screen and (max-width: 960px) {
        flex-direction: row !important;
    }
}

.alert-error{
    font-size: larger;
    color:#e00;
}

.is-invalid {
  border: 2px solid #C40018 !important;
  outline: none !important;
}

.addressFormError{
  background: #C40018;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 600;
}
