.content-section #block-cp-contenudelapageprincipale > h2 {
  display: none;
}

.c-search-results {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.c-search-results__facets-card {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: clamp(20px, 2.2vw, 28px) clamp(16px, 1.8vw, 22px);
  border: 1px dashed var(--line);
  background: var(--surface);
  text-align: center;
}

@media (max-width: 1120px) {
  .c-search-results {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 14px;
  }

  .c-search-results__facets-card {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    justify-items: start;
    top: 104px;
    column-gap: 24px;
    row-gap: 8px;
    padding: 14px 12px;
    text-align: left;
  }

  .c-search-results__facets-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 4px;
    width: 48px;
    height: 48px;
  }

  .c-search-results__facets-icon::before {
    width: 22px;
    height: 22px;
  }

  .c-search-results__facets-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  }

  .c-search-results__facets-text {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.35;
  }
}

.c-search-results__facets-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #edf1f2;
  position: relative;
}

.c-search-results__facets-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16' stroke='%23597f79' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='6' r='2' fill='%23597f79'/%3E%3Ccircle cx='15' cy='12' r='2' fill='%23597f79'/%3E%3Ccircle cx='11' cy='18' r='2' fill='%23597f79'/%3E%3C/svg%3E");
}

.c-search-results__facets-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.c-search-results__facets-text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.45;
}

.c-search-results__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #d9e0e3;
}

.c-search-results__count {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
}

.c-search-results__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: auto;
  min-width: 0;
}

.c-search-results__per-page .views-exposed-form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.c-search-results__per-page .views-exposed-form > * {
  flex: 0 0 auto;
}

.c-search-results__per-page .js-form-item-search-api-fulltext,
.c-search-results__per-page .form-item-search-api-fulltext,
.c-search-results__per-page label[for*="search-api-fulltext"] {
  display: none;
}

.c-search-results__per-page .form-item-items-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.c-search-results__per-page .form-item-items-per-page label {
  margin: 0;
  white-space: nowrap;
}

.c-search-results__per-page .form-select {
  width: 82px;
  min-width: 82px;
  height: 44px;
  padding: 0 30px 0 10px;
  border: 1px solid #cdd6da;
  border-radius: 10px;
  background-color: #fff;
  color: #273438;
  font-size: 1.02rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23273438' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.c-search-results__per-page .form-actions {
  margin: 0;
  display: flex;
  align-items: center;
}

.c-search-results__per-page .form-submit {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #5f837a;
  border-radius: 10px;
  background: #5f837a;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.c-search-results__toggle {
  display: none; /* @todo: inline-grid; */
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #c5d0d4;
  border-radius: 10px;
  margin-left: auto;
}

.c-search-results__toggle button {
  min-width: 56px;
  height: 44px;
  border: 0;
  background: #fff;
  color: #2e4249;
  font-size: 0.98rem;
}

.c-search-results__toggle button.is-active {
  background: #365f62;
  color: #fff;
}

.c-search-results-view .item-list > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.c-search-results-view .item-list > ul > li {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}

.c-search-results-view .item-list .views-field {
  margin: 0 0 10px;
}

.c-search-results-view .item-list .views-field:last-child {
  margin-bottom: 0;
}

.c-search-results-view .item-list .views-field-label .field-content a {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.2;
}

.c-search-results-view .item-list .views-field-field-location,
.c-search-results-view .item-list .views-field-description,
.c-search-results-view .item-list .views-field-field-website-address {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.c-search-results-view .item-list .views-field-field-location p {
  margin: 0;
}

@media (max-width: 1380px) {
  .c-search-results-view .item-list > ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .c-search-results {
    grid-template-columns: 1fr;
  }

  .c-search-results__facets-card {
    position: static;
  }

  .c-search-results-view .item-list > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .c-search-results__toolbar {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .c-search-results__controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .c-search-results-view .item-list > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .c-search-results__per-page .form-select {
    min-width: 160px;
  }

  .c-search-results-view .item-list > ul {
    grid-template-columns: 1fr;
  }
}
