:root {
  --primary-blue: rgb(0, 121, 193);
  --lighter-blue: #dce8f6;
  --light-blue: #84b1de;
  --dark-blue: #006dac;
  --blue-darker: #00478d;
  --primary-red: #ee1c25;
  --dark-red: #dd1b25;
  --bg-dark-gray: #8e8e8e;
  --bg-light-gray: #f8f9fa;
  --bg-gray: #aeaeae;
  --bg-white: #ffffff;
  --green-success: #4caf50;
  --green-stock: green;
  --orange-appro: orange;
  --gradient-primary: linear-gradient(
        135deg, 
        rgb(0, 121, 193, 1),
        rgba(238, 28, 37, 0.8)
  );
}

*{
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%; /* Base : 16px sur la plupart des navigateurs */
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}

body, p, li, input, textarea {
  font-size: 15px;/*clamp(0.875rem, 1vw + 0.6rem, 1rem); /* Entre 14px et 16px */
  line-height: 1.6;
}

/********* COLORS ********/

.txt-primary-red {
  color: var(--primary-red);
}

.txt-green-stock {
  color: var(--green-stock);
}

.txt-orange-appro {
  color: var(--orange-appro);
}

/********* TITLES ********/

h1 {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 35px;/*clamp(2.2rem, 4vw + 1rem, 3rem);   /* 35px à 48px */
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary-blue);
  padding: 10px;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 27px;/*clamp(1.7rem, 3vw + 1rem, 2.4rem); /* 27px à 38px */
  font-weight: 700;
  line-height: 1.2;
  color: #EE1C25;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 22px;/*clamp(1.4rem, 2vw + 1rem, 2rem);   /* 22px à 32px */
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-blue);
}
h4 {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-size: 18px;/*clamp(1.15rem, 1.5vw + 1rem, 1.5rem); /* 18px à 24px */
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-blue);
}
h5 {
  font-size: 16px;/*clamp(1rem, 1vw + 0.8rem, 1.2rem); /* 16px à 19px */
  font-weight: 600;
  line-height: 1.35;
}

/*********** BUTTONS ***********/

.btn-acr-blue {
    background-color: var(--primary-blue);
    color: white;
    transition: all 0.2s;
}

.btn-acr-blue:hover {
    color: white;
    background-color: var(--dark-blue);
}

.btn-acr-blue:active {
    color: white !important;
    border-color: var(--dark-blue) !important;
    background-color: var(--dark-blue) !important;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

.btn-acr-red {
    background-color: var(--primary-red);
    color: white;
    transition: all 0.2s;
}

.btn-acr-red:hover {
    color: white;
    background-color: var(--dark-red);
}

.btn-acr-red:active {
    color: white !important;
    border-color: var(--dark-red) !important;
    background-color: var(--dark-red) !important;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

.btn-acr-gray {
    background-color: var(--bg-gray) !important;
    color: black;
    transition: all 0.2s;
}

.btn-acr-gray:hover {
    background-color: var(--bg-dark-gray);
    border-color: var(--bg-dark-gray);
}

.btn-acr-gray:active {
    border-color: var(--bg-dark-gray) !important;
    background-color: var(--bg-dark-gray) !important;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

/********** STOCK MENTION ************/

.in-stock {
    color: green;
}

.appro {
    color: orange;
}

/********** CONTAINERS FLUID ************/

.container-fluid.big {
  width: 100%;
  max-width: 1900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 600px) {
  .container-fluid.big {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1200px) {
  .container-fluid.big {
    padding-left: 70px;
    padding-right: 70px;
  }
}

.container-fluid.small {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 600px) {
  .container-fluid.small {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (min-width: 1200px) {
  .container-fluid.small {
    padding-left: 70px;
    padding-right: 70px;
  }
}

/********** BANNERS CAROUSEL ***********/

    #bannersCarousel {
        position: relative;
    }

    .carousel-buttons {
        position: absolute;
        left: 50%;
        bottom: 5px;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        justify-content: center;
        padding: 0;
        width: auto;
    }

    .carousel-buttons button {
        border: 1px solid #0079c1;
        border-radius: 50%;  
        width: 12px;  
        height: 12px;  
        margin: 0 5px;
        background-color: transparent;
    }

    .carousel-buttons .active {
        background-color: #0079c1;
    }

    @media (max-width: 992px) {
        .carousel-buttons button {
            width: 8px;  
            height: 8px;
        }
    }

    @media (max-width: 575.98px) {
        .carousel-buttons button {
            display: none;
        }
    }



/********** TEXT FIELD ***********/

/********** DATE PICKER ***********/

.datepicker {
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.datepicker table tr td,
.datepicker table tr th {
  padding: 1rem;
  min-width: 3rem;
  height: 3rem;
}

@media (max-width: 576px) {
  .datepicker {
    font-size: 1rem;
  }
  .datepicker table tr td,
  .datepicker table tr th {
    padding: 0.5rem;
    min-width: 2rem;
    height: 2rem;
  }
}

/********** DEFAULT QTY INPUT SELECTOR OFF ***********/

/* Chrome, Opera... */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/********** CHECKBOX ***********/

input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid black !important;
    background-color: #fff !important;
    appearance: none !important;
}
input[type="checkbox"]:hover {
    cursor: pointer;
}
input[type="checkbox"]:hover:not(:checked) {
    background-color: var(--light-blue) !important;
    border-color: var(--primary-blue) !important;
}
input[type="checkbox"]:checked {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}
input[type="checkbox"]:focus {
    outline: 2px solid var(--blue-darker);
}
input[type="checkbox"] + label {
    font-size: 0.85rem !important;
    line-height: 1 !important;
}
input[type="checkbox"]:hover + label {
    color: var(--primary-blue);
    cursor: pointer;
}

/********** TOOLTIP ***********/

.custom-tooltip {
    position: fixed; 
    z-index: 9999;
    background-color: var(--primary-blue);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    border-top: 3px solid #ee1c25;
    pointer-events: none;
    opacity: 1;
    display: none;
}

/********** SCROLLBAR ***********/

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-gray) white;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track{
    background: white;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: white;
    border-radius: 20px;
    border: 3px solid white;
}

/********** LOADER (SPINNER) ***********/

.loader {
    width: 36px;
    height: 36px;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid;
    border-color: var(--primary-red) transparent;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/********** NOTIFICATION (JS ALERT) ***********/

.notification {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-radius: 4px;
  margin-top: 10px;
  min-width: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 16px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification-success {
  background: var(--green-success);
}

.notification-error {
  background: var(--primary-red);
}

.notification .fa {
  font-size: 20px;
}

/********* INPUT SEARCH DEFAULT CROSS OFF ********/
/*input[type="search"]::-webkit-search-cancel-button {
  display: none;
}*/