html {
  scroll-padding-top: 6rem;
  font-size: 16px;
}

@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: Poppins, system-ui, sans-serif;
  position: relative;
  background-color: var(--offWhite);
  font-weight: 300;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
}

button, 
a,
.nav-link,
.btn,
button.btn-link {
  font-weight: 500;
}

.sticky {
  top: 6.75rem;
}

.ariane {
  font-size: .75rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.ariane a,
.ariane a:link,
.ariane a:visited {
  font-weight: 400;
  text-decoration: underline;
}

.gray-light {
  color: var(--grayLight);
}

.text-bg-primary {
  background-color: var(--orange) !important;
}

.text-bg-primary-dark {
  background-color: var(--orangeDark) !important;
}

.text-bg-secondary {
  background-color: var(--textVeryLight) !important;
}

.swiper-button-next, 
.swiper-button-prev {
  color: var(--textLight);
}

.swiper-button-next::after, 
.swiper-button-prev::after {
  content: ''; /* Supprime le contenu par défaut */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  width: 100%;
  height: 100%;
}

.swiper-button-prev::after {
  background-image: url('/img/icons/arrow-left-solid.svg');
}

.swiper-button-next::after {
  background-image: url('/img/icons/arrow-right-solid.svg');
}

.swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, .5);
}

.swiper-thumbs .swiper-slide:hover {
  cursor: pointer;
}

dialog.rounded {
  border-radius: 1.875rem !important;
}

.alert {
  font-weight: 400;
}

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

.bubble,
.bubble-top,
.bubble-bottom {
  background-color: var(--white);
  border-radius: 1.875rem;
  padding: 1rem;
}

.bubble-lg {
  padding: 2.75rem 1rem;
}

.bubble-lg-top {
  padding: 2.75rem 1rem 0;
}

.bubble-lg-bottom {
  padding: 0 1rem 2.75rem;
}

.bubble-top {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bubble-bottom {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

@media (min-width: 992px) {
  .bubble,
  .bubble-bottom {
    padding: 2rem;
  }

  .bubble-lg-top {
    padding: 4rem 4rem 0;
  }
  
  .bubble-lg-bottom {
    padding: 0 4rem 4rem;
  }

  .bubble-top {
    border-top-left-radius: 1.875rem;
    border-top-right-radius: 1.875rem;
    padding: 2rem 2rem 0;
  }
  
  .bubble-bottom {
    border-bottom-left-radius: 1.875rem;
    border-bottom-right-radius: 1.875rem;
  }  
}

/* @media (min-width: 1400px) {
  .bubble-lg-top {
    padding: 4rem 4rem 0;
  }
  
  .bubble-lg-bottom {
    padding: 0 4rem 4rem;
  } 
} */

.btn-bubble-bottom {
  background: linear-gradient(296deg, var(--orange) 24.19%, var(--orangeDark) 97.32%);
  /* background-size: 200% 200%; */
  color: var(--white);
  text-transform: none;
  display: block;
  padding: 1.25rem;
  border-radius: 1.875rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-top: 2.75rem;
  transition: all ease .5s;
  border: none;
}

.btn-bubble-bottom:hover,
.btn-bubble-bottom:active,
.btn-bubble-bottom:first-child:active {
  /* background-position: 100% 0; */
  color: var(--white);
  border: none;
}

.btn-rounded,
.btn-round,
.btn-like-rounded {
  font-size: 14px;
  line-height: 14px;
  height: 36px;
  border-radius: 18px;
  color: var(--orange);
  padding: 0 18px;
  box-shadow: 0px 2px 10px 0px #00000040;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-round {
  width: 36px;
  padding: 0;
}

.btn-rounded:hover,
.btn-rounded:active,
.btn-rounded:first-child:active,
.btn-round:hover,
.btn-round:active,
.btn-round:first-child:active {
  border-color: transparent;
}

.btn.black,
.black {
  color: var(--black);
}

.btn.black:hover,
.btn.black:active {
  color: var(--orange);
}

.btn-link {
  text-decoration: none;
}

.btn-link:hover,
.btn-link:active {
  color: var(--orangeDark);
}

.btn-primary:disabled {
  color: var(--text);
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--black);
  }
  
.btn-outline-secondary:hover,
.btn-outline-secondary:active {
  background-color: var(--offWhite);
  border-color: var(--border);
  color: var(--black);
}

.btn-outline-secondary:disabled {
  border-color: var(--border);
  color: var(--textVeryLight);
}

.share-btn,
.show-interest-btn {
  padding-top: .5rem;
  padding-bottom: .5rem;
}

.tag {
  font-size: 11px;
  line-height: 11px;
  height: 26px;
  border-radius: 13px;
  color: var(--white);
  background-color: var(--black);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
}

/* --- Forms --- */

label {
  font-weight: 500;
}

.form-floating {
  margin-bottom: 1rem;
}

.form-control,
.form-select {
  font-weight: 300;
  border-radius: .5625rem;
  box-shadow: 0px 2px 4px 0px #00000029;
}

.form-control:not([type=file]),
.form-select,
.form-control::file-selector-button {
  padding: .75rem 1rem;
}

/* --- Header --- */

header {
  background-color: var(--black);
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--white);
}

header .container-xxl {
  padding: 1.5rem 0 2rem;
}

#header-logo {
  height: 2.75rem;
}

header nav a {
  display: inline-block;
  transition:transform 250ms ease;
}

header nav a:hover {
  transform: translateY(-2px) scale(1.025);
}

#account-toolbar .dropdown-toggle::after {
  display: none;
}

#account-toolbar #account-toolbar-show-login-btn,
#account-toolbar .dropdown-toggle {
  padding: 0;
  color: var(--white);
  line-height: 1rem;
}

#account-toolbar #account-toolbar-show-login-btn,
#account-toolbar #my-account-btns {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
}

#account-toolbar #my-account-btns a:link,
#account-toolbar #my-account-btns a:visited {
  color: var(--white);
  text-decoration: none;
}

#account-toolbar #my-account-btns a:hover,
#account-toolbar #my-account-btns a:active {
  color: var(--white);
  text-decoration: underline;
}

#account-toolbar #my-account-btns .dropdown-menu a:link,
#account-toolbar #my-account-btns .dropdown-menu a:visited,
#account-toolbar #my-account-btns .dropdown-menu a:hover,
#account-toolbar #my-account-btns .dropdown-menu a:active {
  color: var(--orange);
  /* text-decoration: none; */
}

#account-toolbar #account-toolbar-show-login-btn svg,
#account-toolbar .dropdown-toggle svg {
  font-weight: 400;
  font-size: 1.5rem;
}

#account-toolbar #account-toolbar-show-login-btn:hover,
#account-toolbar .dropdown-toggle:hover,
#account-toolbar #account-toolbar-show-login-btn:active,
#account-toolbar .dropdown-toggle:active,
#account-toolbar .dropdown-toggle.btn.show {
  color: var(--offWhite);
  border-color: transparent;
}

#account-toolbar .dropdown-menu {
  border-color: white;
  border-radius: 1.875rem;
  overflow: hidden;
}

#account-toolbar .dropdown-item {
  padding: 0 1rem;
  color: var(--orange);
  font-weight: 400;
  font-size: .875rem;
}

#account-toolbar .dropdown-item:hover,
#account-toolbar .dropdown-item:active {
  background-color: transparent;
}

header .right {
  height: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .vr-ssc {
  border-left: solid 1px var(--white);
  align-self: stretch;
}

header .circle-icon {
  height: 1.75rem;
  width: 1.75rem;
  display: grid;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: solid 3px var(--white);
}

header .ext-links a:link,
header .ext-links a:visited,
header .ext-links a:hover,
header .ext-links a:active {
  color: var(--white);
}

header nav {
  position: absolute;
  top: 100%;
  right: .5rem;
  transform: translateY(-50%);
}

header nav a {
  background-color: var(--offWhite);
  border-radius: 2000px;
  padding: .5rem 1.5rem;
  text-decoration: none;
  color: black;
  display: block;
}

/* --- Footer --- */

footer .content {
  background: linear-gradient(296deg, var(--orange) 24.19%, var(--orangeDark) 97.32%);
  padding: 2rem 1rem 1rem;
  color: var(--white);
  font-weight: 300;
  border-top-left-radius: 2.875rem;
  border-top-right-radius: 2.875rem;
  position: relative;
  margin-top: 3rem;
}

@media (min-width: 1436px) {
  footer .content {
    width: 1436px;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 24rem;
}

#footer-logo-1 {
  width: 18rem;
}

@media screen and (min-width: 768px) {
  #footer-logo-2 {
    width: 18rem;
  }
  
  #footer-logo-3 {
    width: 14rem;
  }
  
  #footer-logo-4 {
    width: 14rem;
  }
  
  #footer-logo-5 {
    max-width: 48rem;
  }
}

#copyright {
  margin: 0 auto;
  width: 252px;
  font-size: .75rem;
  line-height: .875rem;
}

@media (min-width: 576px) {
  #copyright {
    width: 100%;
  }
}

footer .arrow {
  position: absolute;
  height: 13rem;
  width: auto;
  top: -8.875rem;
  z-index: -1;
}

footer .arrow-1 {
  left: 6.875rem;
}

footer .arrow-2 {
  left: calc(6.875rem - 4rem);
}

footer .arrow-3 {
  left: calc(6.875rem - 8rem);
}

footer .arrow-4 {
  left: calc(6.875rem - 12rem);
}

main {
  min-height: calc(100vh - 18rem);
}

/* --- About page --- */

#banner {
  background: url('/img/banner_orange.png');
  background-position: center center;
  background-size: cover;
  border-bottom-left-radius: 2.875rem;
  border-bottom-right-radius: 2.875rem;
  padding-top: 5rem;
  transform: translateY(-5rem);
}

@media (min-width: 1436px) {
  #banner {
    width: 1436px;
    margin-left: auto;
    margin-right: auto;
  }
}

#banner > div {
  padding: 4rem 5vw;
}

#banner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  max-width: 1024px;
  margin: 0 auto;
  /* padding: 0 3vw; */
}

.page-content {
  max-width: 1024px;
  margin: 0 auto;
}

#about h2 {
  color: var(--orangeDark);
}

#about li {
  list-style-type: '→';
  padding-left: .5rem;
}

/* --- Home page --- */

#search-banner {
  background: url('/img/banner_orange.png');
  background-position: center center;
  background-size: cover;
  border-bottom-left-radius: 2.875rem;
  border-bottom-right-radius: 2.875rem;
  padding-top: 5rem;
  transform: translateY(-5rem);
  margin-bottom: -3.5rem;
}

@media (min-width: 1436px) {
  #search-banner {
    width: 1436px;
    margin-left: auto;
    margin-right: auto;
  }
}

#search-banner > div {
  min-height: 30rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  gap: 2rem;
}

#search-banner h1 {
  max-width: 32rem;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0;
}

#search-bar {
  width: 100%;
  max-width: 32rem;
  position: relative;
}

#search-bar input {
  padding: 1rem 1.75rem;
  border-width: 1px;
  border-color: var(--border);
  box-shadow: none;
}

#search-bar label {
  color: var(--white);
  text-align: center;
  display: block;
  font-size: 1.125rem;
  margin-bottom: .75rem;
}

#search-bar button {
  background-color: var(--black);
  color: var(--white);
  display: block;
  margin-top: .5rem;
  width: 100%;
  padding: 1rem;
  border-radius: .625rem;
}

#search-bar button svg {
  color: var(--orange);
  font-size: 1.375rem;
}

@media (min-width: 768px) {
  #search-bar {
    max-width: 49rem;
  }

  #search-bar button {
    position: absolute;
    top: 50%;
    right: 1.375rem;
    transform: translateY(-50%);
    font-size: 1.375rem;
    width: auto;
    margin: 0;
    background-color: transparent;
    padding: 0;
  }
  
  #search-bar input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  #search-bar label {
    background-color: var(--white);
    padding: 1rem 1.75rem;
    color: var(--black);
    border-top-left-radius: .625rem;
    border-bottom-left-radius: .625rem;
    margin: 0;
    border: solid 1px var(--border);
    border-right: none;
  }
}

#search-banner .quick-search .btn {
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.125rem;
  border-radius: 1.0625rem;
  padding: 0 .75rem;
}

#search-banner .quick-1 .btn {
  background-color: var(--yellow);
}

#search-banner .quick-2 .btn {
  background-color: var(--yellowLight);
}

#search-banner .quick-1 .btn:hover,
#search-banner .quick-1 .btn:active,
#search-banner .quick-2 .btn:hover,
#search-banner .quick-2 .btn:active {
  background-color: var(--black);
  color: var(--white);
}

@media (min-width: 768px) {
  #search-banner h1 {
    font-size: 2rem;
    max-width: 39rem;
  }

  #search-banner .quick-search .btn {
    height: 2.25rem;
    border-radius: 1.125rem;
    padding: 0 2.25rem;
  }  
}

#search-banner .btn-outline{
  transition: all 250ms ease;
  background-color: rgba(255, 255, 255, .25);
}

#search-banner .btn-outline:hover {
  transform: translateY(-2px) scale(1.025);
}

#grid-results {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: 
    "show-filters-btn message"
    "cards            cards";
  gap: 1.5rem;
}

.show-filters-btn {
  grid-area: show-filters-btn;
  position: sticky;
  top: 6.75rem;
  background-color: var(--white);
  z-index: 3;
}

.message {
  grid-area: message;
  justify-self: end;
  background-color: var(--white);
}

.cards-wrapper {
  grid-area: cards;
}

.filters-wrapper {
  grid-area: filters;
  position: absolute;
}

@media (min-width: 992px) {
  #grid-results {
    grid-template-columns: 18rem 1fr;
    grid-template-areas: 
    "   .    message"
    "filters cards";
  }

  .message {
    justify-self: start;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    background-color: transparent;
  } 

  .filters-wrapper {
    position: static;
  }
  
  #matter-filters {
    position: sticky;
    top: 6.75rem;
    /* max-height: calc(100lvh - 7.75rem);
    overflow-y: auto; */
    /* overflow: hidden; */
    box-shadow: none !important;
  }
}

.filters-wrapper .offcanvas-body {
  padding: 0;
}

#matter-filter-form {
  width: 100%;
}

#matter-filter-form .btns {
  position: sticky;
  bottom: 0;
  /* box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); */
  z-index: 4;
  text-align: center;
  padding: 1.375rem 2.375rem 2.375rem;
  margin-top: 2rem;
  background-color: white;
  border-radius: .75rem;
}

.filter-bubble {
  background-color: var(--white);
  padding: 2.375rem 0 0;
  border-radius: .75rem;
}

.filter-bubble .wrapper {
  padding: 0 2.375rem;
}

@media (min-width: 992px) {
  .filter-bubble {
    padding: 1.375rem 0 0;
  }

  .filter-bubble .wrapper {
    padding: 0 1.375rem;
  }

  #matter-filter-form .btns {
    padding: 1.375rem 1.375rem 1.375rem;
  }
}  

.filter-bubble  h4 {
  font-weight: 500;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.filter-bubble ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.filter-bubble ul ul {
  padding-left: .75rem;
}

.filter-bubble li,
.filter-bubble li span,
.filter-bubble li .btn,
.filter-bubble .form-check-label {
  font-size: .75rem;
}
.filter-bubble li .name,
.filter-bubble li .btn {
  padding: 0 .25rem;
}

.filter-bubble li li {
  padding-bottom: .25rem;
}

.filter-bubble .btn {
  font-weight: 300;
  text-align: start;
}

.filter-bubble .btn-check:checked + .btn,
.filter-bubble .cat-parent:has(.btn-check:checked) .cat-btn {
  border-color: transparent;
  background-color: var(--border);
}

/* Style the caret/arrow */

.openable .label {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .25rem;
}

.openable .label .opener {
  cursor: pointer;
  flex-grow: 1;
  text-align: end;
}

.openable .label svg {
  transition: all .5s ease;
}

.opened .label svg {
  transform: rotate(180deg);
}

/* Hide the nested list */
.nested {
  display: none;
}

/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.opened .nested {
  display: block;
} 

/* --- Matter Card Grid --- */

#matter-card-grid .card-grid {
  display: grid;
  row-gap: 1.5rem;
  column-gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 688px) {
  #matter-card-grid .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  #matter-card-grid .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#matter-card-grid .card-grid > div {
  justify-self: center;
}

/* --- Matter Card --- */

.matter-card {
  background-color: var(--white);
  border-radius: .75rem;
  width: 100%;
  max-width: 400px;
}

.matter-card .header {
  padding: .75rem;
}

.matter-card .tags {
  border-radius: 13px;
}

.matter-card .favorite-btn,
.matter-single .favorite-btn {
  height: 26px;
  padding: 0;
  color: var(--orange);
  font-size: 24px;
}

.matter-card .favorite-btn,
.matter-single .favorite-btn {
  padding: 0;
  display: flex;
  align-items: center;
}

.matter-card .favorite-btn:hover,
.matter-card .favorite-btn:active,
.matter-single .favorite-btn:hover,
.matter-single .favorite-btn:active {
  color: var(--orange);
  border-color: transparent;
}

.favorite-check + label .checked,
.favorite-check:checked + label .unchecked {
  display: none;
  visibility: hidden;
}

.favorite-check:checked + label .checked {
  display: inline;
  visibility: visible;
  color: var(--orange);
}

.matter-card .favorite-check:checked + label,
.matter-single .favorite-check:checked + label {
  border-color: transparent;
}

@media (min-width: 992px) {
  .matter-single .tag,
  .matter-single .tags {
    font-size: 14px;
    height: 32px;
    border-radius: 16px;
  }

  .matter-single .favorite-btn {
    height: 32px;
    font-size: 28px;
  }
}

.matter-card .img {
  margin: 0 .75rem;
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
}

.matter-card .img .expired {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 2;
}

.matter-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .75rem;
}

.matter-card .description {
  padding: 1.5rem 1.5rem .75rem;
}

.matter-card h3 {
  font-size: 1rem;
  font-weight: 700;
}

.matter-card .text {
  font-size: .75rem;
}

.matter-card .detail {
  background-color: #fafafa;
  padding: .75rem 1.125rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.matter-card .detail .property {
  font-weight: 500;
  font-size: 12px;
  margin-bottom: 4px;
}

.matter-card .detail .value {
  font-size: .75rem;
}

.matter-card .more {
  padding: 1rem 1.5rem;
  text-align: center;
  display: grid;
  align-items: end;
}

.matter-card .more a {
  font-size: .875rem;
  font-weight: 400;
  color: var(--black);
}

.matter-card a:link,
.matter-card a:visited {
  color: var(--black);
  text-decoration: none;
}

.matter-card a:hover,
.matter-card a:active {
  color: var(--orange);
}

.matter-card .show-interest-btn {
  font-size: .875rem;
  padding: .75rem 1.25rem;
  width: calc(100% - 1.5rem);
  margin: 0 .75rem;
}

/* --- Login page --- */

#login-page {
  height: calc(100vh - 15rem);
  min-height: 10rem;
}

/* --- Account --- */

#my-account {
  padding-bottom: 5rem;
}

#my-account h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.75rem;
}

#my-account h3 {
  font-size: 1.25rem;
}

@media (min-width: 992px) {
  #my-account h2 {
    font-size: 2rem;
  }

  #my-account h3 {
    font-size: 1.5rem;
  }  
}

#my-account .nav-link {
  color: var(--black);
}

#my-account .main-nav .nav-link {
  border: none;
  padding: 0;
}

#my-account .nav-link:hover,
#my-account .nav-link:active,
#my-account .nav-link.active {
  color: var(--orange);
  font-weight: 500;
}

@media (min-width: 992px) {
  #my-account .company-card {
    max-width: 18rem;
  }
}

/* --- Company Card --- */

.company-card {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1rem;
  justify-items: center;
  grid-template-areas: 
    "logo"
    "name"
    "edit";
}

.company-card .logo,
.matter-single .logo {
  grid-area: logo;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-card .logo:has(.logo-substitute) {
  background-color: var(--border);
}

.company-card .logo-substitute {
  color: var(--white);
  width: 12rem;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.company-card .name {
  grid-area: name;
  align-self: end;
  font-weight: 500;
  margin-bottom: 0;
}

.company-card .edit-btn {
  grid-area: edit;
  text-align: start;
  align-self: start;
  text-decoration: none;
}

.company-card .info {
  grid-area: info;
  display: none;
}

.company-card .logo .actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  opacity: 0;
  display: flex;
  gap: .5rem
}

.company-card .logo .edit-img,
.company-card .logo .delete-img {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .5s ease;
}

.company-card .logo .edit-img {
  background-color: var(--orange);
  color: var(--white);
}

.company-card .logo .delete-img {
  background-color: var(--orange);
  color: var(--black);
}

.company-card .logo:hover .actions,
.company-card .logo .actions.visible {
  opacity: .75;
}

@media (min-width: 992px) {
  .company-card {
    grid-template-columns: 1fr;
    row-gap: 2rem;
    justify-items: center;
    grid-template-areas: 
      "name"
      "logo"
      "info"
      "edit";
  }

  .company-card .logo {
    margin-bottom: 0;
  }
  
  .company-card .info {
    display: block;
  }
}

.offcanvas:has(.company-form) {
  width: 100%;
  max-width: 36rem;
}

.offcanvas-body:has(.company-form) {
  padding: 0 2rem;
}

/* --- Matter Thumbnail --- */

.matter-thumbnail {
  display: grid;
  grid-template-columns: 2fr 3fr;
  column-gap: 1.5rem;
  align-items: center;
}

.matter-thumbnail .badge {
  font-size: .6875rem;
}

.matter-thumbnail .image {
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
}

.matter-thumbnail .image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.matter-thumbnail .image .edit-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background-color: var(--orange);
  color: var(--white);
  height: 36px;
  width: 36px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .5s ease;
}

.matter-thumbnail .image:hover .edit-img,
.matter-thumbnail .image .edit-img.visible {
  opacity: .75;
}

.matter-thumbnail a:has(h3) {
  color: unset;
  text-decoration: none;
}

.matter-thumbnail a:has(h3):hover,
.matter-thumbnail a:has(h3):active {
  color: var(--orange);
}

.matter-thumbnail h3,
#my-account .matter-thumbnail h3 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: .75rem;
}

#matter-thumbnails {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 1.5rem;
}

#matter-thumbnails .matter-thumbnail {
  border-bottom: solid var(--border) 1px;
  padding: 0 .5rem 1.5rem;
}

@media (min-width: 768px) {
  #matter-thumbnails {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Manage Uploads --- */

.offcanvas:has(.manage-uploads) {
  width: 100%;
  max-width: 956px;
}

.manage-matter-uploads h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.75rem;
}

.manage-matter-uploads h3 {
  font-size: 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: solid 1px var(--border);
}

@media (min-width: 992px) {
  .manage-matter-uploads h2 {
    font-size: 2rem;
  }

  .manage-matter-uploads h3 {
    font-size: 1.5rem;
  }  
}

.manage-uploads {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, 12rem);
  grid-auto-rows: 9rem;
  align-items: stretch;
}

.manage-uploads > * {
  border-radius: .75rem;
  overflow: hidden;
}

.manage-uploads .add-file-btn {
  background-color: var(--grayLight);
  font-size: 2rem;
}

.manage-uploads .add-file-btn:hover,
.manage-uploads .add-file-btn:active {
  color: var(--primaryDark);
}

.upload-card {
  position: relative;
}

.upload-card .delete-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: all ease .2s;
}

.upload-card .delete-btn:hover,
.upload-card .delete-btn:active {
  opacity: 1;
}

#matter-upload-dialog {
  width: calc(100% - 2rem);
  max-width: 36rem;
}

.sticky-bottom-btn {
  position: sticky;
  bottom: 0;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  z-index: 4;
}

/* --- Matter Single --- */

.matter-single h1 {
  font-size: 1.1625rem;
  font-weight: 600;
  margin-top: 4rem;
  margin-bottom: 1.25rem;
}

.matter-single hr {
  margin: 2rem 0;
}

.matter-single h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.matter-same-category-grid {
  margin-top: 6rem;
}

.matter-same-category-grid > h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2.25rem;
}

.matter-single .swiper {
  border-radius: .75rem;
}

.matter-single .img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.matter-single .swiper-slide,
.matter-single .img {
  border-radius: .75rem;
  overflow: hidden;
}

.matter-single .swiper-main {
  margin-bottom: 8px;
}

.matter-single .swiper-thumbs .swiper-wrapper {
  padding: .1875rem;
}

.matter-single .swiper-thumbs .swiper-slide {
  border: solid transparent .1875rem;
}

.matter-single .swiper-thumbs .swiper-slide-thumb-active {
  border-color: var(--grayLight);
}

.matter-single .swiper-thumbs .swiper-slide {
  width: 5rem;
  height: 5rem;
}

.matter-single .swiper-thumbs img {
  aspect-ratio: 1 / 1;
}

.matter-single .detail hr:last-child {
  display: none;
  visibility: hidden;
}

/* --- Show Interest Form --- */

#show-interest-offcanvas {
  width: 100%;
  max-width: 600px;
}

#show-interest-offcanvas .offcanvas-title {
  font-weight: 600;
}

#show-interest-offcanvas .offcanvas-body {
  padding: 1rem 2rem;
}

.show-interest-form-wrapper .image {
  border-radius: .75rem;
  overflow: hidden;
  position: relative;
}

.show-interest-form-wrapper .image img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.show-interest-form-wrapper .swiper {
  width: 160px;
}

.show-interest-form-wrapper h2 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: .5rem;
}

.show-interest-form-wrapper .announcer {
  font-size: .875rem;
  line-height: 1rem;
}

.show-interest-form-wrapper h3 {
  font-size: .875rem;
  line-height: 1rem;
  font-weight: 600;
  margin-bottom: .125rem;
}

.show-interest-form-wrapper .contact-settings-memo,
.show-interest-form-wrapper .contact-settings-memo button {
  font-size: .75rem;
}

#mes-echanges #interests-sub-nav {
  flex-wrap: nowrap;
}

#mes-echanges .accordion-item {
  color: unset;
}

#mes-echanges .accordion-item h4 {
  font-size: .875rem;
  margin-bottom: .125rem;
}

#mes-echanges .accordion-button {
  padding: 1rem .5rem;
  color: unset;
  border-left: 2px solid transparent;
}

#mes-echanges .accordion-button:focus {
  box-shadow: none;
  border-left: 2px solid var(--orange);
}

#mes-echanges .accordion-button:not(.collapsed) {
  /* color: var(--primary); */
  background-color: var(--primaryExtraLight);
}

#mes-echanges .accordion-body {
  padding: 1rem .5rem;
  font-size: .875rem;
}

#mes-echanges .accordion-body p {
  margin-bottom: .5rem;
}

#mes-echanges .accordion-body .btn {
  font-size: .875rem;
}

#mes-echanges .accordion-body .actions {
  min-width: 208px;
}

#mes-echanges .interest-header {
  font-size: .875rem;
  display: grid;
  align-items: start;
  row-gap: .25rem;
  column-gap: .5rem;
  grid-template-areas: 
    "status status"
    "contact button"
    "matter button"
    "date button";
  grid-template-columns: 1fr 30px;
}

#mes-echanges .contact {
  grid-area: contact;
}

#mes-echanges .matter {
  grid-area: matter;
}

#mes-echanges .date {
  grid-area: date;
}

#mes-echanges .status {
  grid-area: status;
  justify-self: start;
}

#mes-echanges .accordion-button::after {
  grid-area: button;
  align-self: center;
  height: 19px;
}

@media (min-width: 576px) {
  #mes-echanges .interest-header {
    column-gap: 1rem;
    grid-template-areas: 
      "status status status status"
      "contact matter date button";
    grid-template-columns: 2fr 3fr 154px 30px;
  }
}

#contact-us .page-content a {
  color: var(--orange);
  text-decoration: none;
  text-underline-offset: 4px;
}

#contact-us .page-content a:hover {
  color: var(--orangeDark);
  text-decoration: underline;
}

#contact-us .icon-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: baseline;
  column-gap: .75rem;
}

#contact-us .icon-item *:first-child {
  justify-self: center;
}