.ptt-page .ptt-hero svg.fill-primary\/30 {
    fill: hsl(var(--primary) / 0.3);
}

.ptt-section + .ptt-section {
    border-top: 0;
}

.ptt-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0;
}

.ptt-tab {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.ptt-tab:hover,
.ptt-tab.active {
    color: hsl(var(--primary));
}

.ptt-tab.active {
    border-bottom-color: hsl(var(--primary));
}

.ptt-panel {
    display: none;
    padding-top: 1.5rem;
}

.ptt-panel.active {
    display: block;
}

.ptt-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ptt-modal.hidden {
    display: none;
}

.ptt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ptt-modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow-y: auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ptt-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
}

.ptt-modal-close:hover {
    color: hsl(var(--foreground));
}

.ptt-memorial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--card));
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.28);
}

.ptt-memorial-card__photo {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid hsl(var(--primary) / 0.35);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.35);
  background: hsl(var(--muted));
  flex-shrink: 0;
}

.ptt-memorial-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptt-memorial-card__body {
  min-width: 0;
  width: 100%;
}

.ptt-memorial-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
  box-shadow: 0 8px 24px -18px rgb(0 0 0 / 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ptt-memorial-list-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 12px 28px -16px rgb(0 0 0 / 0.3);
}

.ptt-memorial-list-card__main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.ptt-memorial-list-card__photo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid hsl(var(--primary) / 0.3);
  background: hsl(var(--muted) / 0.5);
}

.ptt-memorial-list-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ptt-memorial-list-card__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptt-memorial-list-card__body {
  min-width: 0;
  flex: 1;
}

.ptt-memorial-list-card__actions,
.ptt-memorial-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.ptt-memorial-card__actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.ptt-memorial-action {
  appearance: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ptt-memorial-action--edit {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.ptt-memorial-action--edit:hover {
  border-color: hsl(var(--primary) / 0.45);
  color: hsl(var(--primary));
}

.ptt-memorial-action--delete {
  border: 1px solid hsl(0 72% 51% / 0.35);
  background: transparent;
  color: hsl(0 72% 41%);
}

.ptt-memorial-action--delete:hover {
  background: hsl(0 72% 51% / 0.08);
}

/* Conserver les sauts de ligne (description, témoignages, légendes) */
.ptt-page .whitespace-pre-wrap,
.ptt-page .whitespace-pre-wrap .zk-cipher {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
