@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  height: 100%;
  overflow-x: hidden;
}

/* Header Styles */
.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #ffffff;
  padding: 0.4rem 2rem;
  padding-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #19140D;
}

.header-top-content {
  height: auto;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: content-box;
  padding-bottom: .4rem;
}

.header-left {
  display: flex;
  align-items: center;
  width: auto;
}

.shipping-adresse {
  display: flex;
  align-items: center;
  margin: auto;
  gap: 0.5rem;
}

.header-right {
  height: 100%;
  min-width: 35%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-search {
  width: 40%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 10px;
}

.logo-svg {
  width: 32px;
  height: 32px;
}

.searchInputWrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.searchInput {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 0.1rem 1.2rem;
  padding-right: 0.1rem;
  border-radius: 2rem;
  border: none;
  transition: transform 0.1s ease-in-out;
  background-color: #eaeaea;
  border: 2px solid #c2c2c2;
}

.searchInput:focus-within {
  transition: transform 0.1s ease-in-out;
  border: 2px solid #ff9900;
  outline: none;
}

::placeholder {
  color: #a1a1a1;
}

/* hide the placeholder text on focus */
:focus::placeholder {
  text-indent: -999px;
}

.searchInputIcon {
  width: 1.1rem;
  transition: all 0.1s ease-in-out;
}

.searchInputIconWrapper {
  width: 5rem;
  height: 100%;
  right: 0rem;
  top: 0rem;
  background-color: transparent;
  border-radius: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.searchInputIconWrapper:hover {
  background-color: #c2c2c2;
  transition: all 0.1s ease-in-out;
}

.searchInputField {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.searchInputField:focus {
  outline: none;
  border: none;
  box-shadow: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.searchInputField::after {
  content: "";
  display: block;
  position: absolute;
  background-color: tomato;
  right: 0rem;
  top: 0rem;
  width: 2px;
  height: 5px;
}

.lang {
  display: flex;
  height: 100%;
}

/* Main Content Styles */

/* Footer Styles */

.searchInput::-webkit-input-placeholder {
  font-size: 0.7rem;
  color: #515151;
  font-weight: bold;
}

.searchInput:-moz-placeholder {
  /* Firefox 18- */
  font-size: 0.7rem;
  color: #515151;
  font-weight: bold;
}

.searchInput::-moz-placeholder {
  /* Firefox 19+ */
  font-size: 0.7rem;
  color: #515151;
  font-weight: bold;
}

.searchInput:-ms-input-placeholder {
  font-size: 0.7rem;
  color: #515151;
  font-weight: bold;
}

button {
  outline: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

ul {
  list-style: none;
}

.flagIcon {
  margin: 0 10px;
  pointer-events: none;
  width: 20px;
}

/* === Dropdown styles === */
.dropdown {
  height: 100%;
  display: inline-block;
  position: relative;
}

/* === Dropdown button styles === */
.dropdown-toggle {
  height: 100%;
  -webkit-transition: background-color 0.3s, color 0.3s;
  transition: background-color 0.3s, color 0.3s;
  will-change: background-color, color;
  cursor: pointer;
  margin: 0rem 1rem;
  padding: 0rem 0.5rem;
  border-radius: 0.75rem;
  background-color: #eaeaea;
  color: var(--btn-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  /* Gère l'alignement de l'icon */
}

/* === Hover state === */
.dropdown-toggle:hover {
  background-color: #d3d3d3;
  color: var(--btn-hover-color);
}

/* === Focus-visible state === */
.dropdown-toggle:focus-visible {
  outline: 3px solid var(--btn-focus-ring);
  outline-offset: 2px;
}

/* === Active state === */
.dropdown-toggle:active {
  background-color: var(--btn-active-bg);
  color: var(--btn-active-color);
}

/* === Disabled state === */
.dropdown-toggle:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--btn-disabled-bg);
  color: var(--btn-disabled-color);
}

/* === Dropdown menu styles === */
.dropdown-menu {
  -webkit-transform: translateY(-10px);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease,
    visibility 0.3s;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  transform: translate(-50%, -10px);
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  will-change: opacity, transform, visibility;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background-color: #eaeaea;
  line-height: 1.6;
  white-space: nowrap;
}

/* === Dropdown open state === */
.dropdown.open .dropdown-menu {
  -webkit-transform: translateY(0);
  transform: translate(-50%, 0px);
  visibility: visible;
  opacity: 1;
}

.profile-dropdown.open .dropdown-menu {
  -webkit-transform: translateY(0);
  transform: translate(-100%, 0px);
  visibility: visible;
  opacity: 1;
}

.profile-menu {
  left: 100% !important;
  transform: translate(-100%, -10px);
}

.profile-menu li {
  background-color: #d3d3d3;
  justify-content: space-between;
  gap: 0.5rem;
}

.profile-menu p {
  display: flex;
  align-items: center;
  font-size: .8rem;
}

/* === Menu links styles === */

.dropdown-menu a:hover {
  background-color: var(--dropdown-link-hover-bg);
}

/* === Animation for dropdown links === */
.dropdown.open .dropdown-menu li {
  -webkit-transform: translateY(10px);
  -webkit-animation: fadeIn 0.3s ease forwards;
  transform: translateY(10px);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.profile-dropdown.open .dropdown-menu li {
  -webkit-transform: translateY(10px);
  -webkit-animation: fadeIn 0.3s ease forwards;
  transform: translateY(10px);
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.dropdown-menu li {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0.75rem;
  margin: 0.3rem;
}

.profile-menu>li>a {
  width: 100%;
  justify-content: space-between;
}

.dropdown-menu li * {
  margin: 0 10px;
}

.dropdown-menu li:hover {
  background-color: #d3d3d3;
}

.utilities {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

.profile {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  background-color: #eaeaea;
  border-radius: 1000px;
  padding: 0.2rem;
  white-space: nowrap;
  font-weight: 500;
  color: #19140D;
}

.profile-Icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  aspect-ratio: 1 / 1;
  width: fit-content;
  border-radius: 100%;
  background-color: #f1ce98;
}

.profileSvg {
  height: 60%;
}

.profile-dropdown {
  position: relative;
  height: 100%;
}

.price-request,
.shpping-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.shoppingCartSvg {
  height: 60%;
}

.priceRequestSvg {
  height: 50%;
}

.burgerSvg {
  width: 50%;
  height: 50%;
}

.pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .2rem;
  height: auto;
  height: 1.2rem;
  width: 1.2rem;
  position: absolute;
  border-radius: 100%;
  background: #ff3a3a;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(227, 100, 100, 0.4);
  animation: pulse 2s infinite;
  color: white;
  font-weight: 700;
  top: 0;
  right: -8%;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navigation>ul {
  margin: 0;
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.navigation>ul>li {
  position: relative;
  display: inline-block;
  /* Display list items horizontally */
  margin: 5px 10px;
  /* Add spacing between menu items */
  padding: .75rem 1.2rem;
  cursor: pointer;
}

.navigation>ul>li:hover {
  background-color: #ffdaa1;
  border-radius: 1rem;
  transition: all 0.2s ease-in-out;
}

.navigation>ul>li a {
  color: #19140D;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  /* Adjust font size as needed */
}

.selected {
  background-color: #ff9900;
  font-weight: 700;
  border-radius: 1rem;
}

.sep-line {
  width: 96%;
  height: 2px;
  background-color: #C2C2C2;
}

.hamburger-menu {
  height: 100%;
  display: none;
  cursor: pointer;
}

.logout:hover {
  background-color: #FFCECE !important;
}

.hide {
  display: none;
}

.invisible {
  visibility: hidden;
}

.no-scroll {
  overflow: hidden;
  height: 100%;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(250, 170, 170, 0.4);
  }

  70% {
    -webkit-box-shadow: 0 0 0 10px rgba(227, 100, 100, 0.4);
  }

  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(227, 100, 100, 0.4);
  }
}

@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(227, 100, 100, 0.4);
    box-shadow: 0 0 0 0 rgba(227, 100, 100, 0.4);
  }

  70% {
    -moz-box-shadow: 0 0 0 10px rgba(227, 100, 100, 0.4);
    box-shadow: 0 0 0 15px rgba(204, 44, 44, 0);
  }

  100% {
    -moz-box-shadow: 0 0 0 0 rgba(250, 250, 250, 0);
    box-shadow: 0 0 0 0 rgba(204, 44, 44, 0);
  }
}


@keyframes fadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  to {
    -webkit-transform: translateY(0);
    opacity: 1;
  }
}