:root {
  --padding-lateral: 48px;
}

#home {
  width: 100%;
  min-height: 100vh;
  padding-top: calc(var(--navbar-height) + 120px);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/******************************************* Filter ********************************************/
/* NB : ce bloc ne dépend pas du breakpoint desktop/mobile, il reste identique */
#home #home-filter {
  position: fixed;
  top: calc(var(--navbar-height) + 20px);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9;
  width: calc(100% - ((var(--padding-lateral) + 41px + 32px) * 2));
  max-width: 860px;
  transition:
    width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    min-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#home #home-filter.scrolled {
  width: min(
    calc(100% - ((var(--padding-lateral) + 41px + 32px) * 2) - 32px),
    828px
  );
}

/* Bouton déclencheur : visible uniquement en mobile (voir media query plus bas) */
#home-filter-btn {
  width: 100%;
  background-color: #ffffffe0;
  box-shadow:
    0px 0px 20px 0px rgba(0, 0, 0, 0.05),
    0px 4px 8px 0px rgba(0, 0, 0, 0.03);
  border: 1px solid #ffffff;
  border-radius: 50px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#home-filter-btn .filter-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.filter-title .value {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.1px;
}

.filter-title .filter-subtitle {
  color: #00000080;
  font-weight: 300;
  font-size: 12px;
}

/* ================= MODE DESKTOP PAR DÉFAUT (barre horizontale type Airbnb) ================= */
#filter-menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative; /* référence pour le placement absolu des dropdowns */
  background: hsla(0, 0%, 100%, 0.8);
  border-radius: 60px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 4px;
  width: 100%;
  height: 61px;
  overflow: visible;
  margin: 0;
  top: 0;
  z-index: 999;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0px 0px 20px 0px rgba(0, 0, 0, 0.05),
    0px 4px 8px 0px rgba(0, 0, 0, 0.03);
}

/* Animation de fermeture desktop (voir keyframe menuSlideUp plus bas) */
#filter-menu.hide {
  display: flex;
  flex-direction: column;
  animation: menuSlideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.filter-close {
  position: fixed;
  top: 16px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.15),
    0 4px 5px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  z-index: 1001;
  color: #1a1c1f;
}

.filter-section {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: auto;
  flex: 1;
  position: static; /* laisse le parent #filter-menu gérer le positionnement */
  box-shadow: none;
}

.filter-section .filter-title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 12px 8px 28px;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
  gap: 3px;
  border-radius: 30px;
}

.filter-section .filter-title:hover,
.filter-section.active .filter-title {
  background-color: hsla(0, 0%, 0%, 0.1);
  outline: 1px solid #ffffff;
}

#filter-menu .separator {
  display: block;
  border: none;
  width: 1px;
  height: 25px;
  background: #00000033;
  transition: opacity 0.2s ease;
}

#ou:hover + .separator {
  opacity: 0;
}

.separator:has(+ #quand:hover),
#quand:hover + .separator {
  opacity: 0;
}

.separator:has(+ #quoi:hover) {
  opacity: 0;
}

/* Dropdowns flottants */
.filter-section .filter-container {
  display: none; /* fermé par défaut */
  position: absolute;
  top: calc(100% + 6px);
  background: #ffffff;
  border-radius: 22px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 20px;
}

.filter-section .filter-container h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #000000;
}

/* Positionnement spécifique de chaque dropdown */
#ou .filter-container {
  left: 0;
  width: 450px;
}

#quand .filter-container {
  left: 50%;
  margin-left: -225px;
  width: 450px;
  height: 600px;
}

#quoi .filter-container {
  right: 0;
  width: 450px;
}

/* --- ÉTAT ACTIF (Ouvert), identique desktop / mobile --- */

.filter-section.active .filter-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: filterSlideDown 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  transform-origin: top center;
  padding: 20px;
}

@keyframes filterSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur principal */
.filter-content {
  max-height: 450px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#quoi .filter-content {
  gap: 20px;
}

.filter-content hr {
  border: none;
  height: 1px;
  background-color: #dddddd;
  border-radius: 10px;
}

.categories,
.types {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 8px;
}

.filter-item {
  border: 1px solid #dddddd;
  background: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  color: #000000;
}

.categories .filter-item {
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 400;
}

.types .filter-item {
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 300;
}

.filter-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.filter-item.active {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: #000000;
}

.choice-day {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  transition: 0.2s;
  gap: 4px;
  color: #000000;
}

.preset-btn:hover {
  background-color: rgba(221, 221, 221, 0.5);
}

.preset-btn.active {
  background-color: rgb(0, 0, 0, 0.05);
  border-color: #000000;
}

.preset-btn .label {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.1px;
}
.preset-btn .date-text {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.5;
}

.calendar {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.calendar-grid {
  width: 100%;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 2px 0px;
}

.weekdays span {
  font-size: 12px;
  color: rgb(0, 0, 0, 0.5);
  font-weight: 500;
  margin-bottom: 12px;
}

.day-cell {
  aspect-ratio: 10/9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
  background: transparent;
  border: none;
  position: relative;
  /* Centrer le texte du jour au-dessus du fond */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: #222222;
}

/* Le fond virtuel (cercle ou bande de sélection) */
.day-cell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 1. ÉTAT PAR DÉFAUT / HOVER (Cercle parfait) */
.day-cell:hover:not(:disabled)::before {
  height: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid #000000;
  border-radius: 50%;
}

/* 2. ÉTAT DANS LA PLAGE (Bande rectangulaire continue) */
.day-cell.preview-in-range,
.day-cell.in-range {
  background-color: #f1f1f1;
  border-radius: 0; /* Remplit tout le rectangle 10/8 */
}

/* 3. ÉTAT SÉLECTIONNÉ (Cercle plein noir) */
.day-cell.selected {
  color: #ffffff;
}

.day-cell.selected::before {
  height: 100%;
  aspect-ratio: 1 / 1;
  background-color: #222222;
  border-radius: 50%;
}

.day-cell:disabled {
  color: rgb(176, 176, 176, 0.75);
  cursor: not-allowed;
  text-decoration: line-through;
}

.empty-cell {
  pointer-events: none;
}

.calendar-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#current-month-display {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0px;
  word-spacing: 1px;
  text-transform: capitalize;
}

#prev-month {
  transform: rotate(180deg);
}

.month-nav-btn {
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
}

.month-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.month-nav-btn svg {
  height: 12px;
  width: auto;
}

.month-nav-btn:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.distance {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.distance .distance-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0px;
  color: #6a6a6a;
}

.distance .distance-label #distanceValue {
  font-weight: 500;
  color: #000000;
}

#distanceSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  outline: none;
  /* Utilisation d'une variable CSS pour le pourcentage */
  background: linear-gradient(
    to right,
    #222222 0%,
    #222222 var(--progress, 100%),
    #e5e5e5 var(--progress, 100%),
    #e5e5e5 100%
  );
}

/* Le rond (WebKit) */
#distanceSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  aspect-ratio: 1 / 1;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

/* Le rond (Firefox) */
#distanceSlider::-moz-range-thumb {
  width: 28px;
  aspect-ratio: 1 / 1;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
/* 4. Effet au survol et clic (Optionnel) */
#distanceSlider::-webkit-slider-thumb:hover {
  transform: scale(1.1); /* S'agrandit légèrement */
}

#distanceSlider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.ville {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ville-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 8px;
  border-radius: 15px;
}

.ville-item:hover {
  background-color: rgb(241, 241, 241, 0.5);
}

.ville-item .img-ville-container {
  height: 56px;
  width: 56px;
  flex-shrink: 0; /* Empêche Flexbox de compresser ce conteneur */
  border-radius: 15px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ville-choice.active .img-ville-container {
  background-color: #222222;
}

.ville-item .img-ville-container img,
.ville-item .img-ville-container svg {
  height: 20px;
  width: 20px;
  object-fit: contain;
  object-position: center;
}

.ville-choice .img-ville-container svg path {
  fill: #222222;
}

.ville-choice.active .img-ville-container svg path {
  fill: #ffffff;
}

.ville-choice[data-name="Autour de moi"] .img-ville-container {
  padding-top: 5px;
}

/* Par défaut (quand pas active) */
.ville-choice .img-ville-container .icon-active {
  display: none;
}
.ville-choice .img-ville-container .icon-inactive {
  display: block;
}
.ville-choice[data-name="Autour de moi"]
  .img-ville-container
  .icon-inactive
  svg
  path {
  stroke: #222222;
  fill: none;
}

/* Quand la classe active est présente */
.ville-choice.active .img-ville-container .icon-active {
  display: block;
}
.ville-choice.active .img-ville-container .icon-inactive {
  display: none;
}

.ville-choice .ville-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0px;
  word-spacing: 1px;
}

.ville-choice .ville-text .cp-value {
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 300;
}

.ville-choice {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ville-choice.active {
  background-color: #f1f1f1;
}

#filter-menu .buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: auto;
  gap: 15px;
}

/* Le "réinitialiser" texte n'a de sens qu'en mobile (voir media query) */
#filter-menu .buttons #filter-reset {
  display: none;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
}

#filter-menu .buttons #filter-submit {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 4px;
  transition: all 0.3s ease;
}

#filter-menu .buttons #filter-submit .filter-submit-text {
  display: none;
}

#filter-menu .buttons #filter-submit.modified {
  background-color: #007bff;
}

#filter-menu .buttons #filter-submit svg {
  width: 16px;
  height: auto;
}

#filter-menu .buttons #filter-submit svg path {
  fill: #000000;
}

#filter-menu .buttons #filter-submit.modified svg path {
  fill: #ffffff;
}

#home .empty-widget,
#home .loading-widget {
  margin-top: 30vh;
}

/******************************************* Grille et conteneur principal ********************************************/
#events-container {
  width: 100%;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 100px;
  align-items: center;
  justify-content: center;
}

.date-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.date-group-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.date-group-title h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #000000;
}

.date-group-title h2::first-letter {
  text-transform: uppercase;
}

.date-group-title .date-group-subtitle {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: #00000080;
}

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.event-card {
  position: relative;
  flex: 1 1 285px;
  max-width: 324px;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0px 4px 45px 0px rgba(0, 0, 0, 0.102),
    0px 4px 15px 0px rgba(0, 0, 0, 0.078);
  transition: transform 0.3s ease;
}

.event-card:not(.is-loading):hover {
  transform: translateY(-5px);
}

.event-card.is-loading {
  background: linear-gradient(90deg, #eaeaea 25%, #f2f2f2 50%, #eaeaea 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  box-shadow: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-img {
  opacity: 0;
}

.event-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 9/10;
  object-fit: cover;
  object-position: center top;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  height: 100%;
  justify-content: flex-end;
  color: var(--text-color);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--dominant-color, #000000) 0%, transparent) 60%,
    color-mix(in srgb, var(--dominant-color, #000000) 85%, transparent) 75%,
    /*color-mix(in srgb, var(--dominant-color, #000000) 70%, transparent) 25%,*/
    var(--dominant-color, #000000) 80%
  );
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2px;
  padding: 4px 6px;
  border-radius: 4px;
  text-transform: capitalize;
  background: color-mix(
    in srgb,
    var(--dominant-color, #000000),
    transparent 50%
  );
}

.card-title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0px;
  padding: 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.card-infos {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px;
  padding-left: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text-color, #000000), transparent 92%);
  gap: 8px;
}

.card-date-location {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  word-spacing: 1px;
}

.card-date {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.card-date::first-letter {
  text-transform: uppercase;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--text-color, #000000), transparent 25%);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0px;
}

.card-dot {
  height: 2px;
  width: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--text-color, #000000), transparent 25%);
  display: inline-block;
}

.card-price {
  padding: 7px 13px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--text-color, #000000), transparent 80%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  letter-spacing: 0.1px;
  font-size: 11px;
}
.error-msg {
  color: #e74c3c;
  padding: 20px;
  font-size: 0.9rem;
  text-align: center;
}

/* Animation de fermeture desktop (centrage translateX préservé) */
@keyframes menuSlideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* =========================================================
   MODE MOBILE / TABLETTE (< 900px)
   Restaure : bouton déclencheur plein écran, menu overlay,
   sections en accordéon, croix de fermeture.
   ========================================================= */
@media (max-width: 899px) {
  #quoi {
    order: 1;
  }
  #ou {
    order: 2;
  }
  #quand {
    order: 3;
  }
  #filter-menu .buttons {
    order: 4;
  }

  #home-filter-btn {
    display: flex;
  }

  #home-filter-btn #settings {
    width: 21px;
    height: auto;
  }

  .filter-close {
    display: flex;
  }

  #filter-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255, 0.8);
    border: none;
    border-radius: 0;
    padding: 70px 12px 40px 12px;
    box-shadow: none;
    transform: none;
    overflow-y: auto;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
  }

  #home #home-filter:has(#filter-menu.show) {
    z-index: 1001;
  }

  #filter-menu.show {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    animation: filterSlideDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform-origin: top center;
  }

  #filter-menu.hide {
    display: none;
    animation: none;
  }

  #filter-menu .separator {
    display: none;
  }

  .filter-section {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
      0 0 20px rgba(0, 0, 0, 0.15),
      0 4px 5px rgba(0, 0, 0, 0.05);
    flex: initial;
  }

  .filter-section.active {
    border-radius: 22px;
  }

  .filter-section .filter-title {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 56px;
    background-color: transparent;
    gap: 0;
  }

  .filter-title .filter-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    opacity: 0.5;
  }

  .filter-section .filter-title:hover,
  .filter-section.active .filter-title {
    background-color: transparent;
    outline: none;
  }

  .filter-section.active .filter-title {
    display: none;
  }

  .filter-section .filter-container {
    position: static;
    top: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    z-index: auto;
  }

  #quand .filter-container,
  #ou .filter-container,
  #quoi .filter-container {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    transform: none !important;
  }

  .categories .filter-item {
    padding: 12px 20px;
  }

  .ville-item .img-ville-container {
    border-radius: 12px;
  }

  .calendar-grid {
    max-width: 400px;
  }

  #filter-menu .buttons {
    width: 100%;
    gap: 0;
    padding-right: 6px;
    margin-top: 12px;
  }

  #filter-menu .buttons #filter-reset {
    display: block;
    font-weight: 600;
    font-size: 15px;
    word-spacing: 1px;
    letter-spacing: -0.1px;
    padding: 12px;
  }

  #filter-menu .buttons #filter-submit {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 24px;
    background-color: #0a3dd6 !important;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.1px;
    margin: 0;
  }

  #filter-menu .buttons #filter-submit svg {
    width: 14px;
    height: auto;
  }

  #filter-menu .buttons #filter-submit svg path {
    fill: #ffffff;
  }

  #filter-menu .buttons #filter-submit .filter-submit-text {
    display: block;
  }
}

/* =========================================================
   Grille des cartes événements : passage en colonne unique
   centrée en dessous de 679px
   ========================================================= */
@media (max-width: 676px) {
  .date-group:first-of-type .date-group-title {
    display: none;
  }

  .event-card {
    border-radius: 20px;
  }

  #events-container {
    padding: 0 16px;
  }
}

/* =========================================================
   Petits écrans : ajuste la position verticale de la
   barre de filtre selon le scroll
   ========================================================= */
@media (max-width: 599px) {
  #home .empty-widget,
  #home .loading-widget {
    margin-top: 40vh;
  }

  #home #home-filter {
    width: calc(100% - 16px * 2);
  }

  #home #home-filter.scrolled {
    width: calc(100% - 32px * 2);
  }
}
