@charset "UTF-8";
.wp-block-skouerr-theme-query-filters form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 222px;
}
.wp-block-skouerr-theme-query-filters input,
.wp-block-skouerr-theme-query-filters select {
  padding: var(--wp--preset--spacing--xs);
  background: var(--wp--preset--color--light);
}
.wp-block-skouerr-theme-query-filters .filter-group {
  width: 100%;
  padding: var(--wp--preset--spacing--s) 0;
}
.wp-block-skouerr-theme-query-filters .filter-group + .filter-group {
  border-top: 1px solid #e5e5e5;
}
.wp-block-skouerr-theme-query-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wp--preset--spacing--xs) 0;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s ease-in-out;
}
.wp-block-skouerr-theme-query-filters summary:after {
  content: "";
  width: 10px;
  height: 10px;
  background: url('data:image/svg+xml,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.75 4.75L4.75 0.75L0.75 4.75" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
  transform: scaleY(-1);
  background-size: contain;
}
@media (min-width: 600px) {
  .wp-block-skouerr-theme-query-filters summary:hover {
    color: var(--wp--preset--color--text);
  }
}
.wp-block-skouerr-theme-query-filters details[open] summary:after {
  transform: none;
}
.wp-block-skouerr-theme-query-filters .filter-options {
  margin-top: 0;
}
.wp-block-skouerr-theme-query-filters .filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #737373;
  padding: 6px 0;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}
.wp-block-skouerr-theme-query-filters .filter-checkbox:has(input) span {
  color: var(--wp--preset--color--text);
}
.wp-block-skouerr-theme-query-filters .filter-checkbox:has(input:checked) span {
  color: var(--wp--preset--color--dark);
}
.wp-block-skouerr-theme-query-filters input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  margin: 0;
}
.wp-block-skouerr-theme-query-filters input[type=checkbox]:checked {
  background-color: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.wp-block-skouerr-theme-query-filters input[type=checkbox]:focus {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 2px;
}

/*mobile*/
/* Popup : le parent du form (wp-block-skouerr-theme-query-filters) est mis dedans */
.filters-modal {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 20px 16px 24px;
  max-height: calc(100vh - 32px);
  width: min(420px, 100% - 32px);
  overflow: auto;
  position: relative;
}

.filters-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Comportement mobile : le group devient le bouton, les filtres sont uniquement dans la popup */
@media (max-width: 768px) {
  .wp-block-group.filters-wrapper.filters-is-mobile {
    cursor: pointer;
  }
  .wp-block-group.filters-wrapper.filters-is-mobile > .wp-block-skouerr-theme-query-filters {
    /* le bloc est déplacé dans la popup en JS, donc ici il n’y a plus rien */
    display: none;
  }
}
/*mobile*/
@media (max-width: 600px) {
  .wp-block-skouerr-theme-query-filters {
    display: none;
  }
  .block-query {
    flex-direction: column;
  }
  .block-query.mobile-2-cols .wp-block-post-template {
    grid-template-columns: 1fr 1fr !important;
  }
  .block-query > .wp-block-group:first-child {
    padding: var(--wp--preset--spacing--s) !important;
    width: 100%;
  }
  .block-query > .wp-block-group:first-child .wp-block-heading {
    font-size: 16px !important;
    font-weight: normal !important;
  }
  .block-query > .wp-block-group:first-child > * {
    max-width: none;
  }
  .block-query > .wp-block-group:first-child:after {
    content: "";
    position: absolute;
    top: 50%;
    height: 20px;
    width: 20px;
    right: var(--wp--preset--spacing--s);
    background: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.25 7.5H18.75M8.25 12H15.75M10.5 16.5H13.5" stroke="%23404040" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center;
    background-size: contain;
    transform: translateY(-50%);
  }
  .block-query .wp-block-group.filters-trigger {
    cursor: pointer;
    position: relative;
  }
}
/* Overlay plein écran */
.filters-overlay {
  /*display: none;*/
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease-in-out;
}
.filters-overlay .filters-modal {
  transform: translateY(50px);
  transition: 0.25s ease-in-out;
}
.filters-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: 0.25s ease-in-out;
}
.filters-overlay.is-visible .filters-modal {
  transform: translateY(0);
}

/* Contenu de la popup : même style visuel que le group parent */
.filters-modal {
  background: var(--wp--preset--color--background-light, #f7f7f7);
  border-radius: 8px;
  padding: var(--wp--preset--spacing--l);
  max-height: calc(100vh - var(--wp--preset--spacing--3-xl));
  width: 100%;
  overflow: auto;
}
.filters-modal .block-filters-form {
  width: 100%;
}

.filters-modal__close {
  position: absolute;
  top: 34px;
  right: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.filters-modal__title {
  margin-bottom: var(--wp--preset--spacing--s);
  font-weight: bold;
}