/*
Theme Name: Profils Santé Vitrine
Theme URI: https://profils-sante.fr/
Author: OpenAI Codex
Description: Thème WordPress sur mesure pour le site vitrine Profils Santé, compatible avec les contenus existants.
Version: 1.0.14
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: profils-sante-vitrine
*/

:root {
  --ps-blue: #336699;
  --ps-blue-soft: #e0ecfb;
  --ps-green: #00958f;
  --ps-green-soft: #e2f3ef;
  --ps-text-strong: #202931;
  --ps-text: #313c45;
  --ps-text-muted: #6a757f;
  --ps-surface: rgba(254, 255, 255, 0.96);
  --ps-surface-muted: rgba(244, 249, 253, 0.94);
  --ps-border: #d6e1e9;
  --ps-border-strong: #b2cae0;
  --ps-shadow: 0 22px 65px rgba(51, 102, 153, 0.08);
  --ps-shadow-soft: 0 10px 24px rgba(32, 41, 49, 0.08);
  --ps-gradient-page: linear-gradient(135deg, #f5f9ff 0%, #ebf4fc 48%, #edf7f3 100%);
  --ps-gradient-shell: linear-gradient(135deg, #f3f8fe 0%, #e8f2fb 48%, #eaf6f2 100%);
  --ps-gradient-hero:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.16) 26%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(135deg, #e0ecfb 0%, #e4f2f0 56%, #e2f3ef 100%);
  --ps-gradient-action: linear-gradient(90deg, #336699 0%, #00958f 100%);
  --ps-radius-xl: 32px;
  --ps-radius-lg: 24px;
  --ps-radius-md: 18px;
  --ps-radius-sm: 14px;
  --ps-container: 1200px;
  --ps-header-height: 92px;
  --ps-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ps-font);
  color: var(--ps-text);
  background: var(--ps-gradient-page);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.7;
}

body::before {
  top: -130px;
  right: -70px;
  width: 380px;
  height: 380px;
  background: rgba(51, 102, 153, 0.12);
}

body::after {
  left: -90px;
  bottom: 12%;
  width: 320px;
  height: 320px;
  background: rgba(0, 149, 143, 0.12);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ps-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ps-green);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="submit"] {
  cursor: pointer;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 1rem;
  z-index: 10000;
  background: #fff;
  color: var(--ps-blue);
  border-radius: 999px;
  box-shadow: var(--ps-shadow-soft);
}

.ps-site-shell {
  min-height: 100vh;
}

.ps-container {
  width: min(calc(100% - 2.5rem), var(--ps-container));
  margin: 0 auto;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0 0;
}

.admin-bar .ps-header {
  top: 32px;
}

.ps-header__bar {
  width: min(calc(100% - 2.5rem), var(--ps-container));
  margin: 0 auto;
  min-height: var(--ps-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(214, 225, 233, 0.9);
  border-radius: calc(var(--ps-radius-xl) + 6px);
  box-shadow: var(--ps-shadow);
  backdrop-filter: blur(18px);
}

.ps-brand {
  flex: 0 0 auto;
}

.ps-brand__link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.ps-brand__logo,
.custom-logo-link img.custom-logo {
  display: block;
  width: clamp(210px, 21vw, 320px);
  height: auto;
  max-height: 84px;
  object-fit: contain;
}

.ps-navigation {
  margin-left: auto;
}

.ps-navigation .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
}

.ps-navigation .menu > li {
  position: relative;
}

.ps-navigation .menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  color: var(--ps-blue);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ps-navigation .menu > li > a:hover,
.ps-navigation .menu > li > a:focus-visible {
  color: var(--ps-green);
  background: rgba(0, 149, 143, 0.08);
  transform: translateY(-1px);
}

.ps-navigation .menu > li.current-menu-item > a,
.ps-navigation .menu > li.current_page_item > a,
.ps-navigation .menu > li.current-menu-parent > a,
.ps-navigation .menu > li.current_page_parent > a,
.ps-navigation .menu > li.current-menu-ancestor > a,
.ps-navigation .menu > li.current_page_ancestor > a {
  color: var(--ps-green);
  background: rgba(0, 149, 143, 0.1);
  transform: translateY(-1px);
}

.ps-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ps-border);
  border-radius: 20px;
  box-shadow: var(--ps-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.ps-navigation li:hover > .sub-menu,
.ps-navigation li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ps-navigation .sub-menu a {
  display: block;
  padding: 0.75rem 0.9rem;
  color: var(--ps-text);
  border-radius: 14px;
}

.ps-navigation .sub-menu a:hover,
.ps-navigation .sub-menu a:focus-visible {
  background: rgba(0, 149, 143, 0.09);
  color: var(--ps-green);
}

.ps-menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0 1rem;
  color: var(--ps-text-strong);
  border: 1px solid var(--ps-border);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.ps-menu-toggle__icon {
  position: relative;
  width: 18px;
  height: 12px;
}

.ps-menu-toggle__icon::before,
.ps-menu-toggle__icon::after,
.ps-menu-toggle__icon {
  background: transparent;
}

.ps-menu-toggle__icon::before,
.ps-menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.ps-menu-toggle__icon::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.ps-menu-toggle__icon::after {
  top: 10px;
}

body.nav-open .ps-menu-toggle__icon::before {
  top: 5px;
  box-shadow: none;
  transform: rotate(45deg);
}

body.nav-open .ps-menu-toggle__icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.ps-main-content {
  padding-bottom: 4rem;
}

.ps-hero {
  position: relative;
}

.ps-hero--home {
  padding: 2.1rem 0 1rem;
}

.ps-hero--page {
  margin-bottom: 1.5rem;
}

.ps-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
}

.ps-hero__copy,
.ps-hero__panel,
.ps-surface,
.ps-home-card,
.ps-glass-card {
  position: relative;
  overflow: hidden;
}

.ps-hero__copy,
.ps-glass-card,
.ps-surface,
.ps-home-card {
  border: 1px solid rgba(214, 225, 233, 0.9);
  box-shadow: var(--ps-shadow);
}

.ps-hero__copy {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--ps-gradient-hero);
  border-radius: 38px;
}

.ps-hero--page .ps-hero__copy,
.ps-offer-detail__hero {
  text-align: center;
}

.ps-hero--home .ps-hero__copy {
  text-align: center;
}

.ps-hero__panel .ps-glass-card,
.ps-surface,
.ps-home-card {
  background: var(--ps-surface);
  border-radius: var(--ps-radius-xl);
}

.ps-glass-card {
  height: 100%;
  padding: 1.9rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    var(--ps-surface);
  border-radius: 34px;
}

.ps-kicker,
.ps-footer__eyebrow,
.ps-panel__eyebrow {
  margin: 0 0 0.85rem;
  color: var(--ps-green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ps-hero h1,
.ps-empty-state h1,
.ps-offer-detail__hero h1 {
  margin: 0;
  color: var(--ps-text-strong);
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.ps-hero--page h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.ps-hero--page h1,
.ps-offer-detail__hero h1 {
  color: var(--ps-blue);
}

.ps-hero--home .ps-hero__grid {
  grid-template-columns: minmax(0, 1fr);
}

.ps-hero--home h1 {
  color: var(--ps-blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.ps-hero__summary {
  width: 100%;
}

.ps-hero__summary .ps-hero__lead {
  margin-top: 0;
}

.ps-hero--home .ps-hero__summary {
  margin-top: -0.25rem;
}

.ps-hero__summary--page {
  margin: 1rem 0 0;
}

.ps-page-spacer--offers {
  height: clamp(2.25rem, 4vw, 4rem);
}

.ps-hero__lead {
  max-width: none;
  margin: 1.2rem 0 0;
  color: var(--ps-text);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  text-align: left;
}

.ps-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.ps-hero--home .ps-hero__actions {
  justify-content: center;
  margin-top: 0;
}

.ps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ps-button:hover,
.ps-button:focus-visible {
  transform: translateY(-2px);
}

.ps-button--primary {
  color: #fff;
  background: var(--ps-gradient-action);
  box-shadow: 0 18px 34px rgba(51, 102, 153, 0.18);
}

.ps-button--primary:hover,
.ps-button--primary:focus-visible {
  color: #fff;
}

.ps-button--ghost {
  color: var(--ps-blue);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--ps-border-strong);
}

.ps-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
}

.ps-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ps-panel__links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.ps-panel__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  color: var(--ps-text-strong);
  background: rgba(244, 249, 253, 0.9);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  font-weight: 600;
}

.ps-panel__links a:hover,
.ps-panel__links a:focus-visible {
  color: var(--ps-green);
  border-color: rgba(0, 149, 143, 0.25);
  transform: translateY(-1px);
}

.ps-page-frame {
  padding: 1rem 0 2rem;
}

.ps-page-frame--home {
  padding-top: 0.5rem;
}

.ps-home-layout {
  display: grid;
  gap: 1.35rem;
}

.ps-home-intro {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.ps-home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 1020px);
  margin: 0 auto;
}

.ps-home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0)),
    var(--ps-surface);
  text-align: center;
}

.ps-home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--ps-blue);
  background: rgba(51, 102, 153, 0.09);
  border-radius: 18px;
  margin-inline: auto;
}

.ps-home-card h2,
.ps-footer h2,
.ps-offers-filters h2,
.ps-empty-state h2,
.ps-offer-aside h2 {
  margin: 0;
  color: var(--ps-text-strong);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.ps-home-card p,
.ps-empty-state p {
  margin: 0;
  color: var(--ps-text-muted);
}

.ps-home-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  justify-content: center;
}

.ps-breadcrumbs {
  margin-bottom: 1rem;
}

.ps-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.ps-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ps-text-muted);
  font-size: 0.92rem;
}

.ps-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(106, 117, 127, 0.55);
}

.ps-surface {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.ps-entry__title {
  margin-top: 0;
  color: var(--ps-text-strong);
}

.ps-entry__content {
  color: var(--ps-text);
}

.ps-entry__content > :first-child {
  margin-top: 0;
}

.ps-entry__content > :last-child {
  margin-bottom: 0;
}

.ps-entry__content h1,
.ps-entry__content h2,
.ps-entry__content h3,
.ps-entry__content h4 {
  color: var(--ps-text-strong);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ps-entry__content h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin: 0 0 1.3rem;
}

.ps-entry__content h3 {
  font-size: 1.45rem;
  margin: 2rem 0 0.9rem;
}

.ps-entry__content p,
.ps-entry__content ul,
.ps-entry__content ol {
  margin: 0 0 1.1rem;
}

.ps-entry__content ul,
.ps-entry__content ol {
  padding-left: 1.2rem;
}

.ps-entry__content blockquote,
.framed_box,
.ps-notice,
.ps-offer-card,
.ps-offer-detail__hero,
.ps-offer-aside,
.ps-empty-state {
  border-radius: var(--ps-radius-lg);
}

.ps-entry__content blockquote {
  margin: 1.2rem 0;
  padding: 1.2rem 1.35rem;
  color: var(--ps-text-strong);
  background: linear-gradient(135deg, rgba(51, 102, 153, 0.08), rgba(0, 149, 143, 0.08));
  border: 1px solid rgba(178, 202, 224, 0.55);
}

.ps-entry__content .button,
a.button,
.button.large.primary.full.no_woo_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin: 0.6rem 0;
  padding: 0.95rem 1.35rem;
  color: #fff;
  background: var(--ps-gradient-action);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(51, 102, 153, 0.16);
}

.ps-entry__content .button:hover,
.button.large.primary.full.no_woo_button:hover {
  color: #fff;
}

.icon_text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.framed_box {
  margin: 1rem 0 1.25rem;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    var(--ps-surface-muted);
  border: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow-soft);
}

.framed_box_content > :last-child,
.ps-entry__content .framed_box_space:last-child {
  margin-bottom: 0;
}

.toggle {
  margin: 0.85rem 0;
  padding: 1rem 1.1rem;
  background: rgba(244, 249, 253, 0.9);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
}

.toggle_title {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: var(--ps-toggle-title-size, inherit);
  color: var(--ps-text-strong);
  font-weight: 700;
}

.toggle_title:focus-visible {
  outline: 2px solid rgba(51, 102, 153, 0.35);
  outline-offset: 4px;
}

.toggle_label {
  flex: 1 1 auto;
}

.toggle_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ps-toggle-icon-size, 2rem);
  height: var(--ps-toggle-icon-size, 2rem);
  color: var(--ps-toggle-icon-color, var(--ps-blue));
  background: rgba(51, 102, 153, 0.09);
  border-radius: 999px;
  flex: 0 0 var(--ps-toggle-icon-size, 2rem);
}

.toggle_icon::before {
  content: "+";
  display: block;
  font-size: calc(var(--ps-toggle-icon-size, 2rem) * 0.62);
  line-height: 1;
  font-weight: 700;
}

.toggle.is-open .toggle_icon::before {
  content: "−";
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--ps-blue);
  background: rgba(51, 102, 153, 0.09);
  border-radius: 999px;
  flex: 0 0 2rem;
}

.theme-icon svg {
  display: block;
  width: var(--ps-icon-size, 1.05rem);
  height: var(--ps-icon-size, 1.05rem);
}

.toggle_content {
  display: none;
  padding-top: 0.95rem;
  color: var(--ps-text);
}

.toggle.is-open .toggle_content {
  display: block;
}

.iconbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  margin: 1rem 0;
  align-items: start;
}

.iconbox_desc {
  color: var(--ps-text);
}

.icon_link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0.9rem 0.25rem 0;
  color: var(--ps-blue);
  font-weight: 600;
}

.icon_link:hover,
.icon_link:focus-visible {
  color: var(--ps-green);
}

.icon_link .theme-icon {
  width: 1.7rem;
  height: 1.7rem;
  flex-basis: 1.7rem;
}

.icon_link__label {
  display: inline-block;
}

.ps-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
  color: inherit;
  font-weight: inherit;
  vertical-align: middle;
}

.ps-inline-icon .theme-icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-basis: 1.6rem;
}

.ps-inline-icon__label {
  display: inline-block;
}

.ps-shortcode-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.ps-shortcode-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
}

.ps-shortcode-list__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--ps-blue);
}

.ps-shortcode-list__marker .theme-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-basis: 1.5rem;
}

.ps-shortcode-list__text > :last-child {
  margin-bottom: 0;
}

.one_half,
.one_fourth,
.three_fourth {
  float: left;
}

.one_half {
  width: calc(50% - 0.8rem);
  margin-right: 1.6rem;
}

.one_fourth {
  width: calc(25% - 0.8rem);
  margin-right: 1.6rem;
}

.three_fourth {
  width: calc(75% - 0.4rem);
}

.last {
  margin-right: 0;
}

.clearboth,
.clear {
  clear: both;
}

.picture_frame {
  display: inline-flex;
  width: 118px;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(51, 102, 153, 0.16), rgba(0, 149, 143, 0.14));
  box-shadow: var(--ps-shadow-soft);
}

.picture_frame--left {
  float: left;
  margin: 0 1rem 1rem 0;
}

.picture_frame--right {
  float: right;
  margin: 0 0 1rem 1rem;
}

.picture_frame--center {
  margin: 0 auto 1rem;
}

.picture_frame img,
.picture_frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.divider_padding {
  height: 1px;
  margin: 1.25rem 0;
  background: linear-gradient(90deg, transparent 0%, var(--ps-border) 18%, var(--ps-border) 82%, transparent 100%);
}

.ps-offers-board {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.ps-offers-filters {
  position: sticky;
  top: calc(var(--ps-header-height) + 2rem);
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0)), var(--ps-surface);
  overflow: visible;
}

.ps-filter-form {
  display: grid;
  gap: 1rem;
}

.ps-filter-form > label,
.ps-filter-group {
  display: grid;
  gap: 0.55rem;
}

.ps-filter-group legend {
  color: var(--ps-text-strong);
  font-weight: 700;
}

.ps-filter-form select,
.ps-filter-form input[type="text"],
.ps-filter-form input[type="file"],
.ps-filter-form textarea {
  width: 100%;
  padding: 0.88rem 1rem;
  color: var(--ps-text);
  background: rgba(244, 249, 253, 0.95);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-filter-form select:focus,
.ps-filter-form input[type="text"]:focus,
.ps-filter-form input[type="file"]:focus,
.ps-filter-form textarea:focus {
  border-color: rgba(51, 102, 153, 0.4);
  box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.08);
}

.ps-filter-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.ps-filter-dropdown {
  position: relative;
  z-index: 0;
}

.ps-filter-dropdown[open] {
  z-index: 4;
}

.ps-filter-dropdown__trigger {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.88rem 1rem;
  color: var(--ps-text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 253, 0.98)),
    var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ps-filter-dropdown__trigger::-webkit-details-marker {
  display: none;
}

.ps-filter-dropdown__trigger:hover {
  border-color: rgba(51, 102, 153, 0.24);
  transform: translateY(-1px);
}

.ps-filter-dropdown[open] > .ps-filter-dropdown__trigger {
  border-color: rgba(51, 102, 153, 0.42);
  box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.08);
}

.ps-filter-dropdown__value {
  min-width: 0;
  flex: 1;
  color: var(--ps-text-strong);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-filter-dropdown__value.is-placeholder {
  color: var(--ps-text-muted);
  font-weight: 500;
}

.ps-filter-dropdown__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
}

.ps-filter-dropdown__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.45rem;
  color: var(--ps-blue);
  background: rgba(51, 102, 153, 0.08);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.ps-filter-dropdown__count[hidden] {
  display: none;
}

.ps-filter-dropdown__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--ps-blue);
}

.ps-filter-dropdown__chevron svg {
  width: 100%;
  height: 100%;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.ps-filter-dropdown[open] .ps-filter-dropdown__chevron svg {
  transform: rotate(270deg);
}

.ps-filter-dropdown__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem;
  max-height: min(920px, 78vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--ps-border);
  border-radius: 18px;
  box-shadow: var(--ps-shadow);
}

.ps-filter-option {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.82rem 0.92rem;
  color: var(--ps-text);
  background: linear-gradient(180deg, rgba(244, 249, 253, 0.96), rgba(244, 249, 253, 0.88));
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-filter-option:hover {
  border-color: rgba(51, 102, 153, 0.26);
  transform: translateY(-1px);
}

.ps-filter-option:has(input:checked) {
  background: rgba(51, 102, 153, 0.08);
  border-color: rgba(51, 102, 153, 0.35);
  box-shadow: 0 0 0 1px rgba(51, 102, 153, 0.06) inset;
}

.ps-filter-option input {
  margin-top: 0.1rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--ps-blue);
}

.ps-filter-option span {
  color: inherit;
  font-weight: 600;
  line-height: 1.35;
}

.ps-filter-dropdown__empty {
  margin: 0;
  padding: 0.85rem 0.95rem;
  color: var(--ps-text-muted);
  background: rgba(244, 249, 253, 0.72);
  border: 1px dashed var(--ps-border);
  border-radius: 14px;
}

.ps-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ps-offers-list {
  display: grid;
  gap: 1rem;
}

.ps-offer-card {
  display: grid;
  gap: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    var(--ps-surface);
}

.ps-offer-card__date,
.ps-offer-detail__date {
  margin: 0;
  color: var(--ps-green);
  font-size: 0.92rem;
  font-weight: 700;
}

.ps-offer-card__title {
  margin: 0;
  color: var(--ps-blue);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.25;
}

.ps-offer-card__title a {
  color: inherit;
}

.ps-offer-card__title a:hover,
.ps-offer-card__title a:focus-visible {
  color: var(--ps-green);
}

.ps-offer-card__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.95rem;
  justify-content: flex-end;
  width: 100%;
  padding: 0;
  margin: 0;
}

.ps-offer-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ps-text);
  white-space: nowrap;
}

.ps-offer-meta {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.ps-offer-meta li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ps-text);
}

.ps-offer-detail__hero {
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  background: var(--ps-gradient-hero);
}

.ps-offer-detail__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.ps-offer-detail__tags li {
  margin: 0;
}

.ps-offer-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  color: var(--ps-blue);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(178, 202, 224, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(32, 41, 49, 0.06);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ps-offer-detail__tags a.ps-offer-detail__tag:hover,
.ps-offer-detail__tags a.ps-offer-detail__tag:focus-visible {
  color: var(--ps-green);
  border-color: rgba(0, 149, 143, 0.28);
  transform: translateY(-1px);
}

.ps-offer-detail__tag.is-static {
  cursor: default;
}

.ps-offer-detail__tags .ps-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.ps-offer-detail__title-wrap {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.35rem;
  width: 100%;
}

.ps-offer-detail__title-card {
  padding: clamp(1rem, 2vw, 1.4rem) clamp(1.15rem, 2vw, 1.5rem);
  text-align: center;
}

.ps-offer-detail__title-card h1 {
  margin: 0;
  color: var(--ps-blue);
  font-size: clamp(1rem, 0.95rem + 0.18vw, 1.15rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ps-offer-detail__date--below {
  margin: 0;
  text-align: right;
  padding-right: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ps-green);
}

.ps-pagination {
  margin-top: 1.5rem;
}

.ps-pagination .page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.ps-pagination .page-numbers li {
  margin: 0;
}

.ps-pagination .page-numbers a,
.ps-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.ps-pagination .page-numbers .current {
  color: #fff;
  background: var(--ps-gradient-action);
  border-color: transparent;
}

.ps-offer-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.ps-offer-detail__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  width: 100%;
}

.ps-offer-detail__actions > :first-child {
  grid-column: 2;
  justify-self: center;
}

.ps-offer-detail__actions > :nth-child(2) {
  grid-column: 3;
  justify-self: end;
}

.ps-offer-detail__actions .ps-button {
  min-width: 220px;
  justify-content: center;
}

.ps-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ps-form label {
  display: grid;
  gap: 0.45rem;
}

.ps-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.ps-notice {
  margin: 0 0 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.ps-notice--success {
  color: #2b6844;
  background: rgba(56, 128, 85, 0.1);
  border-color: rgba(56, 128, 85, 0.2);
}

.ps-notice--error {
  color: #a04b47;
  background: rgba(187, 82, 77, 0.1);
  border-color: rgba(187, 82, 77, 0.18);
}

.ps-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ps-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ps-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 31, 42, 0.38);
  backdrop-filter: blur(10px);
}

.ps-modal__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(86vh, 840px);
  overflow: auto;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(214, 225, 233, 0.9);
  border-radius: 30px;
  box-shadow: 0 38px 80px rgba(19, 31, 42, 0.2);
}

.ps-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ps-blue);
  background: rgba(51, 102, 153, 0.08);
  border: 1px solid var(--ps-border);
  border-radius: 999px;
}

body.modal-open {
  overflow: hidden;
}

.ps-empty-state {
  display: grid;
  gap: 0.9rem;
  text-align: center;
  justify-items: center;
  padding: clamp(2rem, 4vw, 3rem);
}

.ps-footer {
  padding: 1rem 0 2.5rem;
}

.ps-footer__inner {
  width: min(calc(100% - 2.5rem), var(--ps-container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ps-footer__card {
  padding: 1.7rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(214, 225, 233, 0.9);
  border-radius: 30px;
  box-shadow: var(--ps-shadow-soft);
  backdrop-filter: blur(14px);
}

.ps-footer__eyebrow {
  text-align: center;
}

.ps-footer__card--logo {
  display: grid;
  place-items: center;
  padding: 0.8rem 0.9rem;
}

.ps-footer__card--logo .custom-logo-link,
.ps-footer__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-footer__card--logo .custom-logo-link img.custom-logo,
.ps-footer__logo {
  width: min(100%, clamp(260px, 24vw, 400px));
  max-height: 150px;
  object-fit: contain;
}

.ps-contact-list,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.ps-contact-list li,
.footer-menu li {
  display: flex;
  align-items: start;
  gap: 0.8rem;
}

.ps-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.ps-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: rgba(244, 249, 253, 0.9);
  border: 1px solid var(--ps-border);
  border-radius: 999px;
  font-weight: 700;
}

.ps-footer__bottom {
  width: min(calc(100% - 2.5rem), var(--ps-container));
  margin: 1rem auto 0;
  text-align: center;
  color: var(--ps-text-muted);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .ps-hero__grid,
  .ps-offers-board,
  .ps-offer-detail__grid,
  .ps-footer__inner {
    grid-template-columns: 1fr;
  }

  .ps-hero--home .ps-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ps-home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ps-offers-filters,
  .ps-offer-aside {
    position: static;
  }

  .ps-offer-detail__title-wrap {
    width: 100%;
  }

  .one_half,
  .one_fourth,
  .three_fourth {
    width: 100%;
    margin-right: 0;
    float: none;
  }
}

@media (max-width: 920px) {
  .ps-filter-dropdown__panel {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 0.65rem;
    max-height: min(420px, 60vh);
  }

  .ps-header__bar {
    min-height: 78px;
  }

  .ps-menu-toggle {
    display: inline-flex;
  }

  .ps-navigation {
    position: fixed;
    top: calc(var(--ps-header-height) + 1rem);
    left: 1.25rem;
    right: 1.25rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--ps-border);
    border-radius: 26px;
    box-shadow: var(--ps-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  body.nav-open .ps-navigation {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ps-navigation .menu {
    flex-direction: column;
    align-items: stretch;
  }

  .ps-navigation .menu > li > a {
    width: 100%;
  }

  .ps-offer-detail__title-card h1 {
    font-size: clamp(0.98rem, 4vw, 1.08rem);
  }

  .ps-offer-detail__actions {
    grid-template-columns: 1fr;
  }

  .ps-offer-detail__actions > :first-child,
  .ps-offer-detail__actions > :nth-child(2) {
    grid-column: auto;
    justify-self: stretch;
  }

  .ps-offer-detail__actions .ps-button {
    width: 100%;
  }

  .ps-navigation .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 0.4rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(244, 249, 253, 0.9);
  }
}

@media (max-width: 782px) {
  .admin-bar .ps-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .ps-container,
  .ps-header__bar,
  .ps-footer__inner,
  .ps-footer__bottom {
    width: min(calc(100% - 1.4rem), var(--ps-container));
  }

  .ps-header {
    padding-top: 0.7rem;
  }

  .ps-header__bar {
    padding: 0.85rem 1rem;
  }

  .ps-brand__logo,
  .custom-logo-link img.custom-logo {
    width: min(60vw, 200px);
    max-height: 58px;
  }

  .ps-hero__copy,
  .ps-glass-card,
  .ps-surface,
  .ps-home-card,
  .ps-footer__card {
    border-radius: 24px;
  }

  .ps-footer__card--logo {
    padding: 0.85rem 0.8rem;
  }

  .ps-footer__logo {
    width: min(100%, 210px);
    max-height: 105px;
  }

  .ps-hero--home {
    padding-top: 1.2rem;
  }

  .ps-hero__copy {
    padding: 1.45rem;
  }

  .ps-home-card,
  .ps-surface {
    padding: 1.25rem;
  }

  .ps-home-cards {
    grid-template-columns: 1fr;
  }

  .ps-modal {
    padding: 0.75rem;
  }

  .ps-modal__dialog {
    padding: 1rem;
    border-radius: 24px;
  }
}
