/*** General ***/
:root {
    /* Variables */
    --orange-main : #FF795B;
    --orange-light : #FFEBE6;
    --orange-dark : #D62700;
    --orange-hover-light-bg : #FCEEEB;
    --orange-hover-dark-bg : #F56544;
    --orange-hover-light-alpha : rgba(255, 121, 91, 0.20);
    --grey-dark : #272727;
    --grey-medium : #545352;
    --grey-light : #F7F7F7;
    --white : #FFFFFF;
    --shadow : 0px 1px 4px 2px rgba(128, 128, 128, 0.15);
}

body {
    font-family: 'Axiforma', sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-dark);
}

h1 {
    font-size: 35px;
    font-weight: 700;
}

h2 {
    font-size: 30px;
    font-weight: 400;
    margin-bottom: 0;
}

h3 {
    font-size: 24px;
    font-weight: 500;
}

h5 {
    font-size: 16px;
    font-weight: 500;
}

h4, .h4 {
    font-size: 18px;
    font-weight: 500;
}

.body1regular {
    font-size: 14px;
    font-weight: 400;
}

.body2regular {
    font-size: 12px;
    font-weight: 400;
}

.body2bold {
    font-size: 12px;
    font-weight: 700;
}

.caption {
    font-size: 11px;
    font-weight: 400;
}

.bigNumber {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

a {
    color: var(--orange-main);
}

a.buttonLink {
    text-decoration: none;
}

.interpop {
    text-decoration: none;
    opacity: 70%;
}

.link {
    color: var(--orange-dark);
}

.label {
    font-weight: 600;
}

.major_component ul li{
    color: var(--grey-medium)!important;
}
.textgrey-medium {
    color: var(--grey-medium);
}

.textorange-dark {
    color: var(--orange-dark);
}

.textorange {
    color: var(--orange-main);
}

.greyLightBackground {
    background-color: var(--grey-light);
}

.orangeLightBackground {
    background-color: var(--orange-light);
}

.radiusMedium {
    border-radius: 12px;
}

.buttonIcon {
    background-color: transparent;
    border: none;
    height: 45px;
    width: 45px;
    color: var(--orange-dark);
    border-radius: 12px;
    transition: .3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttonIconPrimary {
    background-color: var(--orange-main);
    color: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow .3s ease, fill .3s ease,
    background-color .3s ease, fill .3s ease;
}

.buttonIconSecondary {
    background-color: var(--white);
    color: var(--orange-dark);
    border: 2px solid var(--orange-main);
}

.buttonIcon:hover {
    background-color: var(--orange-hover-light-bg);
}

.buttonIconPrimary:hover {
    background-color: var(--orange-hover-dark-bg);
}

.buttonIconPrimary:active {
    box-shadow: none;
}

.show-on-map-button {
    border: 1px solid var(--white);
}

.button {
    background-color: var(--white);
    height: 45px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    padding: 0 16px;
    color: var(--orange-dark);
    transition: color .3s ease, fill .3s ease;
    display: flex;
    align-items: center;
    line-height: 1;
}

.buttonPrimary {
    background-color: var(--orange-main);
    box-shadow: var(--shadow);
    color: var(--white);
    transition: box-shadow .3s ease, fill .3s ease,
    background-color .3s ease, fill .3s ease;
}

.buttonSecondary {
    padding-top: 4px;
    box-shadow: var(--shadow);
    color: var(--grey-dark);
    transition: box-shadow .3s ease, fill .3s ease,
    background-color .3s ease, fill .3s ease;
}

.button:hover {
    color: var(--orange-main);
}

.buttonPrimary:hover {
    color: var(--white);
    background-color: var(--orange-hover-dark-bg);
}

.buttonSecondary:hover {
    color: var(--orange-dark);
}

.buttonSecondary:active {
    box-shadow: none;
}

.button:hover svg {
    fill: var(--orange-main);
}

.form-check-input:checked {
    background-color: var(--orange-main);
    border-color: var(--orange-main);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem rgba(255,121,91,0.25);
}

ol ol ul, ul, ol {
    list-style-type: disc;
}

ul li {
    margin: 4px 0;
}

ul li::marker,
ol li::marker {
    color: var(--orange-main);
}

.mw-200 {
    max-width: 200px;
}

/*** Header ***/
header {
    top: 0;
    z-index: 1;
}

header img.logo {
    width: 115px;
}

.searchBar .searchBarInput {
    height: 45px;
    min-width: 545px;
    border-radius: 60px;
    box-shadow: var(--shadow);
    border: 0px;
    padding: 5px 16px;
    display: flex;
    align-items: center;
    line-height: 50px;
    z-index: 10;
    position: relative;
    background-color: transparent;
    cursor: pointer;
}

.searchBar input::-webkit-search-cancel-button {
    margin-right: 30px;
    width: 18px;
    height: 18px;
}

.searchBar form {
    background-color: white;
    border-radius: 60px;
    width: 100%;
    transition: all .5s ease-in-out;
}

.searchBar form.formCollapse {
    width: 45px;
    border-radius: 12px;
}

.searchBar form.formCollapse .searchBarInput {
    border-radius: 12px;
    min-width: 45px;
}

.searchBar form.formCollapse .searchBarInput::placeholder {
    color: transparent;
}

.searchBar form.formCollapse .searchBarIcon {
    right: 14px;
}

.searchBar .searchBarIcon {
    position: absolute;
    top: 15px;
    right: 18px;
    transition: all 0.3s ease-in-out;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background-image: url("./images/icons/xmark-large.svg");
    cursor: pointer;
}

.searchBar .changeMap {
    position: absolute;
    z-index: -1;
    background-color: var(--orange-light);
    height: 40px;
    border-radius: 0 0 12px 12px;
    min-width: 513px;
    color: var(--grey-dark);
    opacity: 1;
    visibility: visible;
    max-height: 40px;
}

.searchBar .changeMap .dropdown {
    position: initial;
}

.searchBar .changeMap button {
    background-color: transparent;
    border: none;
    color: var(--orange-dark);
    text-decoration: underline;
    white-space: nowrap;
    height: 35px;
    min-width: 85px;
}

.searchBar .changeMap .dropdown-menu {
    border: none;
    border-radius: 12px;
    width: 513px;
    position: absolute;
    right: 0;
    top: 44px !important;
    transform: none !important;
    font-size: 14px;
    padding: 10px;
    height: 0;
    display: block;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    transition: top 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.searchBar .changeMap .dropdown-menu.show {
    visibility: visible;
    height: auto;
    overflow: scroll;
    opacity: 1;
}

.searchBar .changeMap .dropdown-menu h6 {
    color: var(--grey-medium);
}

.searchBar .changeMap .dropdown-menu .dropdown-item {
    color: var(--grey-dark);
    height: 30px;
    padding: 3px 8px 0 8px;
    transition: .3s ease-in-out;
}

.searchBar .changeMap .dropdown-menu .dropdown-item:hover {
    background-color: var(--grey-light);
}

.searchBar .changeMap .dropdown-menu .dropdown-item .nbrIngredient {
    color: var(--grey-medium);
}

.searchBar .searchBarInput::placeholder {
    margin-top: 4px;
}

.form-control,
.form-control:focus {
    color: var(--grey-dark);
}


/* SearchBar focus */
#content::after, a#logo, button.openMenu, #scentree_map, .changeMap {
    transition: all 0.2s ease-in-out;
}

.blur {
    filter: blur(6px);
    pointer-events: none;
}

.searchBar .changeMap.hide {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
}

#content {
    position: relative;
    z-index: 0;
}

#content::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(253, 158, 137, 0.6) 4.55%, rgba(255, 121, 91, 0.7) 96.78%);
    z-index: 400;
    opacity: 0;
    display: none;
}
  
#content.searchBarActiv::after {
    opacity: 1;
    display: block;
}

/* Barre de résultats */
#barrederesultat {
    max-height: 80vh;
    overflow: scroll;
    border-radius: 25px;
    background: rgba(255, 121, 91, 0.85);
    font-size: 14px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow);
    inset: 4px auto auto 0px !important;
}

#barrederesultat .lignerecherche a {
    color: var(--white);
    text-wrap: wrap;
    max-width: 90%;
}

#barrederesultat .lignerecherche {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
    padding: 20px 25px 20px 20px;
}

#barrederesultat .lignerecherche.disabled .nom_de_l_ingredient, 
#barrederesultat .lignerecherche.disabled .synonymes,
#barrederesultat .lignerecherche.disabled .numero_cas {
    color: var(--orange-dark) !important;
}

#barrederesultat .lignerecherche:hover {
    background-color: var(--orange-hover-dark-bg);
}

#barrederesultat .nom_de_l_ingredient {
    font-size: 16px;
    font-weight: 400;
    padding-right: 20px;
    color: var(--white);
    text-wrap: wrap;
}

#barrederesultat .nom_de_l_ingredient .text-highlighted {
    font-size: 16px;
    font-weight: 700;
}

#barrederesultat .synonymes {
    font-weight: 200;
    padding: 5px 0 !important;
    font-size: 12px;
}

#barrederesultat .numero_cas {
    font-weight: 500;
    color: var(--white);
    font-size: 12px;
}


/*** Menu ***/
.openMenu {
    margin-left: 71px;
}

.openMenu img {
    width: 18px;
}

nav {
    z-index: 2;
    top: 0;
    right: -360px;
    bottom: 0;
    width: 360px;
    max-width: 100vw;
    background: linear-gradient(120deg, rgba(253, 158, 137, 0.70) 5.14%, rgba(255, 121, 91, 0.70) 92.78%);
    backdrop-filter: blur(5px);
    filter: drop-shadow(-8px 0px 24px rgba(128, 128, 128, 0.28));
    padding: 24px 0 0 0;
    transition: .3s ease-in-out;
    visibility: hidden;
}

nav.slide-in {
    right: 0px;
    visibility: visible;
}

nav.slide-out {
    right: -360px;
    visibility: visible;
}

nav a {
    color: var(--white);
}

nav .navList {
    padding: 0;
    list-style: none;
    width: 100%;
}

nav .navList li:not(.socialNetwork) {
    background-color: var(--orange-main);
    margin-bottom: 2px;
    transition: .3s ease-in-out;
}

nav .navList li:not(.socialNetwork) a {
    padding: 16px 0 14px 24px;
    display: block;
}

nav .navList li:not(.socialNetwork):hover {
    background-color: var(--orange-hover-dark-bg);
    cursor: pointer;
}

nav .navList li.socialNetwork {
    padding: 28px 0 20px 24px;
}

nav .navList li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

nav small {
    color: var(--white);
}

.iconeRS:hover , .imglogo:hover , .imglang:hover{
    transform: scale(1.1);
    cursor:pointer;
}

.imglang {
    max-height: 0.9em;
    max-width: 1.8em; 
    border-radius: 0.2em;
}

/*** Content ***/
.contentOtherPages {
    padding: 0 40px 40px 40px;
}

/*** Table ***/
table {
    font-size: 14px;
    color: var(--grey-medium) !important;
    width: 100%;
}

table thead .subTheadTitle {
    padding: 4px 0 1px 0;
}

table thead .subThead {
    background-color: var(--orange-hover-light-alpha);
    padding: 4px 0 2px 0;
    display: flex;
    justify-content: space-evenly;
    font-weight: 500;
}

table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-dark) !important;
    background-color: var(--orange-light) !important;
}

#partners table thead th {
    background-color: var(--grey-light);
}

#partners table{
    border-bottom: 1px solid var(--orange-main);
}

#partners.withoutIngredient {
    display: flex;
    padding: 20px;
    border-radius: 0 0 4px 4px;
    background-color: var(--grey-light);
}

table tr {
    height: 30px !important;
    vertical-align: middle;
}

table thead tr {
    height: 40px;
}

.table-bordered {
    border-color: var(--orange-main);
}

/*** Home ***/
/* Map */
.leaflet-control-container > div:first-of-type {
    left: auto !important;
    top: auto !important;
    right: 24px;
    bottom: 32px;
}

.leaflet-control-container > div:first-of-type .leaflet-bar {
    border: none;
}

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in {
    margin-bottom: 8px;
}

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in,
.leaflet-control-container > div:first-of-type .leaflet-control-zoom-out {
    box-shadow: var(--shadow);
    background-color: var(--white);
    color: var(--orange-dark);
    height: 45px;
    width: 45px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
}

.leaflet-control-container > div:first-of-type .leaflet-control-zoom-in:hover,
.leaflet-control-container > div:first-of-type .leaflet-control-zoom-out:hover {
    background-color: var(--orange-hover-light-bg);
}


/*** Accordion ***/
.accordion-item {
    border: none;
}

.accordion-button, .accordion-button:not(.collapsed) {
    background-color: var(--grey-light);
    color: var(--grey-dark);
}

.accordion-body {
    border-top: 1px solid var(--orange-main);
}

.accordion-button:not(.collapsed)::after,
.accordion-button::after {
    background-image: url('../static/images/icons/caret-down.svg');
}

.accordion-button:focus {
    box-shadow: none;
}

/* leaflet */
.leaflet-popup-content-wrapper {
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    width: auto !important;
    min-width: 250px;
}

.leaflet-popup-tip-container {
    display: none;
}

.leaflet-popup-content-wrapper {
    overflow: hidden;
}

.leaflet-container a.leaflet-popup-close-button {
    color: var(--grey-dark);
    top: 16px;
    right: 8px;
    width: 45px;
    height: 45px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 24px Roboto, sans-serif;
}

.divNomDescripteurs  {
    padding: 16px 55px 8px 24px;
    color: var(--grey-dark);
    white-space: nowrap;
}

.divTexteDescripteurs {
    padding: 16px 24px 16px 24px;
} 

/* Modale */
.modal-header,
.modal-footer {
    border-top: none;
    border-bottom: none;
}

.modal-content {
    border: none;
}

.new-feature .modal-content {
    background: radial-gradient(48.42% 72.9% at 0.71% 18.72%, #FF795B 0%, rgba(246, 244, 246, 0.55) 90%), #FFF;
}

.modal-header .btn-close {
    padding: 0px;
    margin: 0px;
    position: absolute;
    right: 16px;
    top: 16px;
}

.modal-backdrop {
    background: linear-gradient(145deg, rgba(253, 158, 137, 0.6) 4.55%, rgba(255, 121, 91, 0.7) 96.78%); /* Orange translucide */
    backdrop-filter: blur(6px); /* Flou */
    filter: blur(6px);
}

.modal-content .new-feature-img img {
    width: 200px;
}

.modal.new-feature,
.modal.product-of-week,
.modal.new-supplier {
    --bs-modal-width: 800px;
}

.modal-dialog {
    margin-top: 100px;
}


.modal.product-of-week img.potw-img {
    height: 125px;
}

.modal.new-supplier .modal-header img {
    max-height: 125px;
    margin-right: 24px;
}

#title-carrousel-produit {
    padding-top: 20px;
}

.slide-container {
  margin: auto;
  width: 96%;
  text-align: center;
}

.carousel-item {
  padding-top: 20px;
  padding-bottom: 20px;
}

.clash-card {
  background: white;
  width: 70%;
  display: inline-block;
  margin: auto;
  position: relative;
  text-align: center;
  z-index: 9999;
  border-radius: 12px;
}

.clash-card__image {
  position: relative;
  margin-top: 35px;
  margin-bottom: 20px;
  height: 200px;
}

.clash-card__image img {
  max-height: 150px;
  max-width: 150px;
}

.clash-card__level {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.clash-card__unit-description {
  padding: 10px;
}

.clash-card__show_product{
  padding-bottom: 20px;
  display: inline-block;
}

.carousel-control-next, .carousel-control-prev {
    top: 41%;
    opacity: 1;
} 