html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

a,
button,
[role="button"],
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input,
select,
textarea,
button {
  font: inherit;
}

@supports (padding: env(safe-area-inset-top)) {
  #mobile-banner {
    padding-top: env(safe-area-inset-top) !important;
    padding-left: max(8px, env(safe-area-inset-left)) !important;
    padding-right: max(8px, env(safe-area-inset-right)) !important;
  }

  .modern-footer {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .main-content,
  .container,
  .conteneur1,
  .footer-container {
    width: 100%;
    max-width: 100%;
  }

  .notif-dropdown,
  .profile-dropdown,
  #mobile-notif-dropdown,
  #mobile-profile-dropdown {
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }

  .carousel-search,
  .carousel-filter,
  .btn,
  .button,
  button {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}
