.ps-container {
  max-width: 980px;
  margin: 48px auto 60px;
  padding: 0 16px;
  font-family: Arial, sans-serif;
}

.ps-search-wrap {
  background: #ffffff;
  border: 1px solid #e7dfd6;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(28, 20, 14, 0.05);
  margin-bottom: 28px;
}

.ps-search-header {
  margin-bottom: 20px;
}

.ps-search-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5ead4;
  color: #9b6a00;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ps-search-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  color: #24180f;
}

.ps-search-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #6b625b;
  max-width: 720px;
}

.ps-search {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ps-search-input-wrap {
  position: relative;
  flex: 1;
}

.ps-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9e948b;
  font-size: 16px;
  pointer-events: none;
}

.ps-search input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 42px;
  border-radius: 16px;
  border: 1px solid #ddd4c9;
  background: #fbfaf8;
  color: #24180f;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ps-search input:focus {
  outline: none;
  border-color: #c28a10;
  box-shadow: 0 0 0 4px rgba(194, 138, 16, 0.12);
  background: #ffffff;
}

.ps-search input::placeholder {
  color: #9e948b;
}

.ps-search button {
  height: 56px;
  padding: 0 22px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #b07a08, #d89b1c);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.ps-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(176, 122, 8, 0.25);
}

.ps-search button:active {
  transform: translateY(0);
}

.ps-search-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ps-suggestion-label {
  font-size: 13px;
  color: #6b625b;
  font-weight: 700;
}

.ps-suggestion {
  border: 1px solid #c99b3a;
  background: #e6d3b3; /* fond PLUS sombre que le fond global */
  color: #3d2a00;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ps-suggestion:hover {
  background: #f4e2b8;
  border-color: #b8860b;
  color: #5a3d00;
}

.ps-suggestion:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 138, 16, 0.16);
}

.ps-suggestion:active {
  transform: translateY(0);
}

.ps-results {
  margin-top: 8px;
}

.ps-results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.ps-results-heading {
  min-width: 0;
}

.ps-results-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9b6a00;
  margin-bottom: 6px;
}

.ps-results-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: #24180f;
}

.ps-results-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6d645c;
}

.ps-results-count {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3efe9;
  color: #544c45;
  font-size: 13px;
  font-weight: 700;
}

.ps-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ps-card {
  background: #ffffff;
  border: 1px solid #e7dfd6;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(28, 20, 14, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(28, 20, 14, 0.12);
  border-color: #dccbb5;
}

.ps-card-top {
  margin-bottom: 14px;
}

.ps-card-title-wrap {
  min-width: 0;
}

.ps-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ps-title {
  display: inline-block;
  color: #24180f;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.ps-title:hover {
  color: #9b6a00;
}

.ps-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.ps-badge-best {
  background: #f5ead4;
  color: #9b6a00;
}

.ps-badge.facile {
  background: #e8f5ea;
  color: #2d7a39;
}

.ps-badge.moyen {
  background: #fff4d9;
  color: #9a6b00;
}

.ps-badge.difficile {
  background: #fde9e7;
  color: #b34134;
}

.ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ps-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f2ed;
  color: #5d544d;
  font-size: 12px;
  font-weight: 700;
}

.ps-card-meta {
  margin-bottom: 14px;
}

.ps-ratio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #f7f3ee;
  color: #352820;
  font-size: 14px;
  font-weight: 700;
}

.ps-scores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ps-score-item {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #faf7f3;
  border: 1px solid #eee5db;
}

.ps-score-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #766b63;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ps-score-stars {
  color: #c58a11;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.ps-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4e463f;
}

.ps-tip,
.ps-warn {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.ps-tip {
  background: #f6f0e6;
  color: #5c4b2b;
  border: 1px solid #eadcc5;
}

.ps-warn {
  background: #fdf0ee;
  color: #8f3a2d;
  border: 1px solid #f1d2cd;
}

.ps-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eee6dc;
}

.ps-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9b6a00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ps-link:hover {
  color: #7d5400;
}

.ps-link::after {
  content: "→";
  font-size: 15px;
  line-height: 1;
}

.ps-message {
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.ps-message-info {
  background: #f7f3ee;
  border-color: #e7dfd6;
  color: #544c45;
}

.ps-message-warning {
  background: #fff8ea;
  border-color: #f0dfb8;
  color: #8a6110;
}

.ps-message-error {
  background: #fdf0ee;
  border-color: #f1d2cd;
  color: #8f3a2d;
}

.ps-message-loading {
  background: #f7f3ee;
  border-color: #e7dfd6;
  color: #544c45;
}

@media (max-width: 767px) {
  .ps-container {
    margin-top: 32px;
  }

  .ps-search-wrap {
    padding: 20px;
    border-radius: 18px;
  }

  .ps-search-title {
    font-size: 24px;
  }

  .ps-search {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-search button {
    width: 100%;
  }

  .ps-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ps-card {
    padding: 18px;
    border-radius: 18px;
  }

  .ps-title {
    font-size: 22px;
  }

  .ps-score-item {
    min-width: 100%;
  }
}

.ps-filter-wrap {
  margin-bottom: 18px;
}

.ps-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #6b625b;
  margin-bottom: 10px;
}

.ps-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-filter-chip,
.ps-filter-reset {
  border: 1px solid #d4b483;
  background: #ede0c8;
  color: #3d2a00;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ps-filter-chip:hover,
.ps-filter-reset:hover {
  background: #c99b3a;
  color: #fff;
  border-color: #c99b3a;
}

.ps-filter-chip.active {
  background: #b07a08;
  color: #fff;
  border-color: #b07a08;
}

.ps-filter-reset {
  background: #d8c3a5; /* plus foncé que le fond */
  border: 1px solid #c2a57a;
  color: #3d2a00;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}