body {
  overflow-y: scroll;
  background-color: #fbf9fc;
}

a,
a:hover,
a:focus {
  color: rgb(15, 20, 25);
  text-decoration: none;
}

ul {
  list-style-type: none;
}

h1, h2 {
  font-size: 1.25rem;
  font-weight: bold;
}

h3 {
  font-size: 1rem;
}

.item-list li {
  margin: 0.5rem 0;
  padding: 0;
}

.form-item {
  position: relative;
}

.form-item label {
  position: absolute;
  top: 0;
  left: 1rem;
  pointer-events: none;
  transform: translateY(.75rem);
  transition: all 0.2s ease-in-out;
}

.form-item input:valid + label,
.form-item input:focus + label {
    display: none;
    transform: translateY(0);
}

.form-item .description,
.form-type-select label {
  display: none;
}

.form-control {
  padding: .75rem 1rem;
}

.form--inline {
  display: flex;
  flex-direction: row;
}

.form--inline .form-item {
  float: none;
  width: 100%;
  margin: 0;
}

.item-list__dropdown {
  background-color: rgb(241, 241, 241);
  display: block;
  height: 50px;
  padding: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border: none;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: '';
}

img {
  border-radius: 1rem;
}

.card {
  border: none;
  background-color: #ffffff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.card-header,
.card-footer{
  background-color: transparent;
  border: none;
}

.layout-container {
  padding: 1rem;
}

/* ---------- MOBILE FIRST (par défaut) ---------- */
.wrapper {
  display: block;
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.main-content {
  width: 100%;
  margin-left: 0;
}

/* Header correctement sticky */
.main-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 1rem;
  z-index: 100;
}

/* ----- BOTTOM NAV (mobile) ----- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f2ecee;
  padding: .5rem 1rem;
  z-index: 150;
}

.bottom-nav .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-nav .nav > li > a {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}

/* --------- GÉNÉRAL (menu account uniquement) --------- */
.menu--account .nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.menu--account .nav > li > a {
  position: relative;
  display: flex;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0px;
  font-size: 0;
  color: #333;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  text-decoration: none;
  border-radius: 16px;
}

.menu--account .nav > li > a:hover {
  background-color: #F2F2F2;
}

/* --------- ICONES PAR POSITION --------- */
.menu--account .nav > li:nth-child(1) {
  display: none;
}

.menu--account .nav > li:nth-child(2) > a {
  background-image: url(../images/home.svg);
}

.menu--account .nav > li:nth-child(3) > a {
  background-image: url(../images/search.svg);
}

.menu--account .nav > li:nth-child(4) > a {
  background-image: url(../images/like.svg);
}

.menu--account .nav > li:nth-child(5) > a {
  background-image: url(../images/bookmark.svg);
}

.menu--account .nav > li:nth-child(6) > a {
  background-image: url(../images/profile.svg);
}

/* ---------- DESKTOP (≥ 768px) ---------- */
@media (min-width: 768px) {
  .wrapper {
    display: flex;
  }

  .sidebar {
    display: flex;
    position: fixed;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    width: 80px;
    height: 100%;
    padding: 1rem 0;
    overflow-y: auto;
    z-index: 90;
  }

  .main-content {
    margin-left: 80px;
  }
  
  .menu--account {
    margin-left: 1rem;
  }
  
  .menu--account .nav > li:nth-child(1) {
    display: block;
  }
  
  .menu--account .nav > li:nth-child(1) > a {
    background-color: #007aff;
    background-image: url(../logo.svg);
  }

  /* Le menu bottom disparaît sur desktop */
  .bottom-nav {
    display: none;
  }
}

.toolbar-tray-open .sidebar {
  top: 79px;
}

.region-content-header {
  padding-bottom: 1rem;
}

.region-footer, 
.region-content {
  padding: 0;
}

main.d-flex .region-content {
  width: 100%;
  max-width: 330px;
}

main.d-flex .navbar-brand {
  justify-content: center !important;
}

main.d-flex .navbar-brand a {
  font-size: 2.6rem;
}

main.d-flex .form-submit {
  width: 100%;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
}

.field--name-field-item-image img {
  width: 100%;
}

.field--name-field-item {
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.shared-item {
  border: 1px solid #e0d8dc;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.shared-item-image img {
  width: 200px;
  height: auto;
  border-radius: .75rem;
  object-fit: cover;
}

.shared-item-content {
  min-width: 0;
}

.shared-item h3 a {
  color: #333;
  font-weight: 500;
}

.shared-item h3 a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .shared-item {
    flex-direction: column;
  }
  .shared-item-image img {
    width: 100%;
    border-radius: .75rem .75rem 0 0;
  }
}


.flag a {
  display: block;
}

.facets-widget-dropdown {
  margin-top: 1rem;
}

.block-search .form-item,
.block-views-exposed-filter-blocksearch-page-1 .form-item {
  float: none;
  margin: 0;
}

.block-search .form-control,
.views-exposed-form .form-control {
  border-radius: 999px;
}

.region-content-header .form-actions {
  display: none;
}

.bg-light-pink {
  background: #f8f1f6;
}

.block-card {
  background: #f8f1f6;
  border-radius: 1rem;
  padding: 1rem;
}

.avatar {
  height: 4rem;
  width: 4rem;
  margin-right: 1rem;
  position: relative;
  display: inline-block;
}

.avatar img {
  border-radius: 70px;
}

.avatar-xxl {
  height: 5.125rem;
  width: 5.125rem;
}

@media (min-width: 768px) {
  .avatar-xxl {
    width: 8rem;
    height: 8rem;
  }
}

.field--name-uid {
  font-weight: bold;
}
