.pf-hero {
  padding: calc(var(--nav-height) + 35px) 80px 60px;
  max-width: 1460px;
  margin: 0 auto;
}

.pf-filters-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.pf-filters-wrap.is-stuck {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.pf-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1460px;
  margin: 0 auto;
  padding: 16px 80px;
}

.pf-filters-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.pf-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.pf-tag:hover {
  border-color: var(--color-dark);
  color: var(--color-dark);
}

.pf-tag.active {
  background: #5C6DFF;
  border-color: #5C6DFF;
  color: #fff;
}

.pf-filters-sep {
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.pf-sort {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.pf-sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-dark);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.pf-sort-btn:hover { border-color: var(--color-dark); }

.pf-sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 6px;
  min-width: 140px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.pf-sort-dropdown.open { display: flex; }

.pf-sort-opt {
  padding: 9px 14px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-dark);
  cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.15s;
}
.pf-sort-opt:hover  { background: var(--color-grey); }
.pf-sort-opt.active { background: var(--color-grey); font-weight: 600; }

.pf-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 48px 100px;
  min-height: 60vh;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.pf-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.pf-state[hidden] { display: none; }

.pf-spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(0,0,0,0.08);
  border-top-color: var(--color-dark);
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
}

@keyframes pf-spin {
  to { transform: rotate(360deg); }
}

.pf-grid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pf-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pf-col--large {
  flex: 2;
}

.pf-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
  cursor: pointer;
  opacity: 0;
  animation: pf-card-in 0.5s ease forwards;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
  width: 100%;
}
.pf-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

@keyframes pf-card-in {
  to { opacity: 1; transform: translateY(0); }
}

.pf-col:first-child .pf-card:nth-child(1) { animation-delay: 0.05s; }
.pf-col:first-child .pf-card:nth-child(2) { animation-delay: 0.15s; }
.pf-col:first-child .pf-card:nth-child(3) { animation-delay: 0.25s; }
.pf-col:last-child  .pf-card:nth-child(1) { animation-delay: 0.10s; }
.pf-col:last-child  .pf-card:nth-child(2) { animation-delay: 0.20s; }
.pf-col:last-child  .pf-card:nth-child(3) { animation-delay: 0.30s; }

.pf-card-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-grey);
  aspect-ratio: 4 / 3;
}

.pf-card--portrait .pf-card-img-wrap { aspect-ratio: 3 / 4; }
.pf-card--large   .pf-card-img-wrap { aspect-ratio: 16 / 9; }

.pf-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pf-card:hover .pf-card-img { transform: scale(1.04); }

.pf-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e4dc 0%, #d5d0c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 2rem;
}

.pf-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 50, 0.88);
  opacity: 0;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 2;
}
.pf-card:hover .pf-card-overlay { opacity: 1; }

.pf-card-overlay-inner {
  transform: translateY(10px);
  transition: transform 0.28s ease;
  width: 100%;
  text-align: center;
}
.pf-card:hover .pf-card-overlay-inner { transform: translateY(0); }

.pf-card-overlay-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.pf-card-overlay-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pf-card-overlay-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pf-card-overlay-cat {
  padding: 5px 14px;
  background: rgba(92,109,255,0.35);
  border: 1px solid rgba(92,109,255,0.6);
  border-radius: 20px;
  font-size: 0.72rem;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
}

.mascotte{
  display: flex;
  gap: 35px;
  align-items: center;
}

.pf-card-info {
  padding: 12px 16px 14px;
  background: #F2EFE9;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.pf-card-page-link {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--color-dark);
  z-index: 3;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.pf-card:hover .pf-card-page-link { opacity: 1; }
.pf-card-page-link:hover {
  background: #5C6DFF;
  color: #fff;
  transform: scale(1.08);
}

.pf-card-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.pf-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pf-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}

.pf-card-cat {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.pf-card-cat + .pf-card-cat::before { content: ' · '; }

.pf-card-like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  line-height: 1;
}
.pf-card-like-btn:hover {
  border-color: #e05a6a;
  color: #e05a6a;
  background: #fff;
  transform: scale(1.05);
}
.pf-card-like-btn.is-liked {
  border-color: #e05a6a;
  background: #fde8eb;
  color: #e05a6a;
}
.pf-card-like-btn svg {
  width: 13px;
  height: 13px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.pf-card-like-btn.is-liked svg {
  fill: #e05a6a;
  stroke: #e05a6a;
  transform: scale(1.25);
}
@keyframes like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1.25); }
}
.pf-card-like-btn.just-liked svg {
  animation: like-pop 0.4s ease forwards;
}

.pf-card-like-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20,30,60,0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
.pf-card:hover .pf-card-like-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pf-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.pf-load-more-wrap[hidden] { display: none; }

.pf-load-more {
  padding: 14px 40px;
  border: 1.5px solid var(--color-dark);
  border-radius: 50px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}

.pf-load-more:hover {
  background: var(--color-dark);
  color: var(--color-bg);
}

.pf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.pf-modal[hidden] { display: none; }

.pf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,45,34,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pf-modal.is-open .pf-modal-overlay { opacity: 1; }

.pf-modal-panel {
  position: relative;
  width: min(860px, 92vw);
  height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
  z-index: 1;
}

.pf-modal.is-open .pf-modal-panel { transform: translateX(0); }

.pf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.pf-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.1);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pf-modal-close:hover { background: var(--color-grey); }
.pf-modal-close svg { width: 16px; height: 16px; }

.pf-modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-modal-cat-tag {
  padding: 4px 12px;
  background: var(--color-grey);
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-dark);
}

.pf-modal-date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.pf-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.pf-modal-loading {
  display: flex;
  justify-content: center;
  padding: 80px;
}

.pf-modal-content {
  padding-bottom: 40px;
}

.pf-modal-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-dark);
  line-height: 1.1;
  padding: 40px 40px 24px;
  letter-spacing: -0.02em;
}

.pf-modal-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 0 40px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 8px;
}

.pf-block {
  width: 100%;
}

.pf-block--image img {
  width: 100%;
  height: auto;
  display: block;
}

.pf-block--text {
  padding: 32px 40px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-dark);
}

.pf-block--text p { margin-bottom: 1em; }
.pf-block--text p:last-child { margin-bottom: 0; }

.pf-block--spacer {
  display: block;
}

.pf-block--video {
  padding: 0 0 8px;
}

.pf-block--video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.pf-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
  background: var(--color-bg);
}

.pf-like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.pf-like-btn:hover {
  border-color: #e05a6a;
  color: #e05a6a;
  box-shadow: 0 4px 16px rgba(224,90,106,0.15);
  transform: translateY(-1px);
}
.pf-like-btn.is-liked {
  background: #fde8eb;
  border-color: #e05a6a;
  color: #e05a6a;
  box-shadow: 0 4px 16px rgba(224,90,106,0.2);
}
.pf-like-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pf-like-btn.is-liked .pf-like-icon {
  fill: #e05a6a;
  stroke: #e05a6a;
}
.pf-like-btn.just-liked .pf-like-icon {
  animation: like-pop 0.4s ease forwards;
}

.pf-modal-nav {
  display: flex;
  gap: 8px;
}

.pf-modal-nav-btn {
  padding: 9px 18px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 50px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.2s;
}
.pf-modal-nav-btn:hover:not(:disabled) {
  background: var(--color-dark);
  color: var(--color-bg);
  border-color: var(--color-dark);
}
.pf-modal-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (max-width: 1200px) {
  .pf-grid { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
}

@media (max-width: 1024px) {
  .pf-grid { gap: 10px; }
  .pf-hero  { padding: calc(var(--nav-height) + 60px) 32px 50px; }
  .pf-filters { padding: 14px 32px; }
  .pf-main  { padding: 40px 32px 80px; }
  .pf-modal-panel { width: 100vw; }
}

@media (max-width: 768px) {
  .pf-hero { padding: calc(var(--nav-height) + 40px) 20px 32px; }

  .pf-filters {
    max-width: 100%;
    padding: 10px 16px;
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .mascotte img{
    display: none;
  }

  .pf-filters-tags {
    flex-wrap: wrap;
    gap: 6px;
  }

  .pf-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .pf-main { padding: 24px 16px 60px; }

  .pf-grid { flex-direction: column; gap: 10px; }
  .pf-col, .pf-col--large { flex: none; width: 100%; }



  .pf-modal-panel { width: 100vw; border-radius: 0; }
  .pf-modal-title { font-size: 1.5rem; padding: 28px 24px 18px; }
  .pf-modal-description { padding: 0 24px 24px; }
  .pf-modal-header { padding: 16px 20px; }
  .pf-modal-footer { padding: 14px 20px; }
  .pf-block--text { padding: 24px; }

  .pf-modal-nav-btn { display: none; }
}

.pf-hero ~ * .btn-contact,
body .btn-contact {
  background: #5C6DFF;
  color: #fff;
  border-color: #5C6DFF;
}
body .btn-contact:hover {
  background: #4a5be0;
  border-color: #4a5be0;
}

.pf-sort,
.pf-sort-btn,
.pf-sort-dropdown,
.pf-sort-opt { display: none; }

body.pf-modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

.pf-modal-page-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.pf-modal-page-link:hover {
  background: #5C6DFF;
  color: #fff;
  border-color: #5C6DFF;
}
