/* ======================================================================
   Chorale Connect – Refonte UI liturgique catholique (front only)
   ====================================================================== */

:root {
  --cc-bg: #f7f2ea;
  --cc-bg-soft: #fbf8f2;
  --cc-ink: #201815;
  --cc-ink-soft: #5f5449;
  --cc-line: rgba(112, 84, 42, 0.18);
  --cc-gold: #c8a654;
  --cc-gold-soft: #f0e1b2;
  --cc-burgundy: #62211d;
  --cc-burgundy-deep: #32110f;
  --cc-emerald: #284b3a;
  --cc-violet: #4d345f;
  --cc-shadow: 0 18px 60px rgba(58, 35, 18, 0.10);
  --cc-shadow-soft: 0 10px 30px rgba(58, 35, 18, 0.08);
  --cc-radius: 24px;
  --cc-radius-sm: 16px;
}

html {
  background:
    radial-gradient(circle at top left, rgba(200,166,84,0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(77,52,95,0.08), transparent 22%),
    linear-gradient(180deg, #f8f4ee 0%, #f4efe7 100%);
}

body.cc-body {
  min-height: 100vh;
  color: var(--cc-ink);
  background: transparent;
}

body.cc-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200,166,84,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,166,84,0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  z-index: 0;
}

.topbar,
.container,
.footer {
  position: relative;
  /* z-index: 1; */
}

.topbar {
  background: rgba(252, 248, 241, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200, 166, 84, 0.45);
  box-shadow: 0 8px 30px rgba(92, 64, 31, 0.08);
}

.topbar__inner {
  width: min(1280px, 94vw);
  padding: 14px 0;
  gap: 18px;
}

.brand {
  gap: 14px;
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 28%),
    linear-gradient(145deg, #d3b56a 0%, #a37b29 100%);
  box-shadow: 0 14px 32px rgba(163, 123, 41, 0.30);
}

.brand__name {
  font-size: 1.18rem;
  color: var(--cc-burgundy);
  letter-spacing: 0.04em;
}

.brand__tagline {
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--cc-ink-soft);
}

.topnav {
  gap: 8px;
}

.topnav__link,
.topnav .btn {
  border-radius: 999px;
}

/* .topnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--cc-ink-soft);
  font-weight: 600;
  background: transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
} */

/* .topnav__link:hover,
.topnav__link--active {
  color: var(--cc-burgundy);
  background: rgba(255,255,255,0.65);
  box-shadow: inset 0 0 0 1px rgba(200,166,84,0.16);
  transform: translateY(-1px);
} */

/* .topnav__link--psalm {
  background: linear-gradient(135deg, rgba(200,166,84,0.22), rgba(98,33,29,0.08));
  border: 1px solid rgba(200,166,84,0.50);
  color: var(--cc-burgundy) !important;
  box-shadow: 0 8px 20px rgba(200,166,84,0.15);
} */

/*.topnav__link--psalm:hover,
 .topnav__link--psalm.topnav__link--active {
  background: linear-gradient(135deg, rgba(200,166,84,0.32), rgba(98,33,29,0.12));
} */

.topnav__link--admin {
  border: 1px solid rgba(98,33,29,0.40);
  color: var(--cc-burgundy);
}

.burger {
  border: 1px solid rgba(200,166,84,0.20);
  background: rgba(255,255,255,0.7);
}

.burger span {
  background: var(--cc-burgundy);
}

.container {
  width: min(1280px, 94vw);
  padding: 34px 0 64px;
}

.card,
.sidebar,
.chant-card,
.programme-card,
.friend-card,
.friend-request-card,
.conv-item,
.user-search-result,
.share-modal,
.psalm-text-card {
  border: 1px solid rgba(113, 84, 42, 0.13) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: var(--cc-shadow-soft) !important;
  border-radius: var(--cc-radius-sm) !important;
}

.card,
.sidebar,
.psalm-text-card {
  backdrop-filter: blur(8px);
}

.card__title,
.pagehead h1,
.hero h1,
.psalm-hero__title,
.psalm-library__title,
.psalm-section-title,
.footer__title,
.footer__brand-name {
  font-family: Georgia, 'Times New Roman', serif;
}

.pagehead {
  padding: 26px 28px;
  border-radius: var(--cc-radius);
  background:
    radial-gradient(circle at top left, rgba(200,166,84,0.16), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(249,243,233,0.95));
  border: 1px solid rgba(200,166,84,0.18);
  box-shadow: var(--cc-shadow-soft);
  margin-bottom: 18px;
}

.pagehead h1 {
  color: var(--cc-burgundy);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.pagehead .sub {
  color: var(--cc-ink-soft);
  font-size: 1rem;
}

.hero {
  padding: 64px 40px;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34,18,15,0.96), rgba(89,32,28,0.92) 38%, rgba(157,122,41,0.92) 100%),
    #2a1512;
  box-shadow: 0 26px 70px rgba(80, 43, 19, 0.24);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 14%),
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10), transparent 12%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 15v170M15 100h170' stroke='rgba(255,255,255,0.08)' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='72' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2'/%3E%3C/svg%3E") center/460px no-repeat;
  opacity: .95;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f8f0d5;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: .76rem;
}

.hero__cross {
  position: absolute;
  right: 38px;
  top: 36px;
  font-size: 7rem;
  opacity: .09;
}

.hero h1 {
  color: #fff9ef;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  margin-top: 22px;
  margin-bottom: 18px;
}

.hero p {
  max-width: 760px;
  font-size: 1.08rem;
  color: rgba(255,248,235,0.88);
}

.hero__actions {
  margin-top: 26px;
  gap: 14px;
}

.btn {
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #d3b56a 0%, #a37b29 100%);
  border-color: rgba(163,123,41,0.9);
  box-shadow: 0 10px 24px rgba(163,123,41,0.18);
}

.btn:hover {
  filter: none;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255,255,255,0.72);
  color: var(--cc-burgundy);
  border-color: rgba(200,166,84,0.45);
  box-shadow: none;
}

.btn--red {
  background: linear-gradient(135deg, #8d2e28, #61211d);
  border-color: #61211d;
}

.btn--violet {
  background: linear-gradient(135deg, #644c76, #43304f);
  border-color: #43304f;
}

.btn--green {
  background: linear-gradient(135deg, #2f644e, #24483a);
  border-color: #24483a;
}

.divider-cross {
  color: var(--cc-burgundy);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .82rem;
  opacity: .78;
  margin: 26px 0;
}

.grid {
  gap: 18px;
}

.card {
  padding: 24px;
}

.card__title {
  color: var(--cc-burgundy);
  border-bottom-color: rgba(200,166,84,0.18);
}

.small,
.muted {
  color: var(--cc-ink-soft) !important;
}

.liturgie-day {
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(251,246,238,0.98)),
    #fff;
  border: 1px solid rgba(200,166,84,0.18);
  box-shadow: var(--cc-shadow-soft);
}

.programme-card {
  padding: 18px 18px;
  margin-top: 12px;
}

.programme-card__date {
  color: var(--cc-burgundy);
}

.programme-card__heure {
  color: var(--cc-gold);
  font-weight: 700;
}

.chant-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.chant-card__title {
  color: var(--cc-burgundy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
}

.audio-player audio,
.chant-card audio {
  width: 100%;
  margin-top: 8px;
}

.pill {
  border-radius: 999px;
}

.footer {
  margin-top: 22px;
  background:
    linear-gradient(135deg, #221310 0%, #3b1e1a 42%, #7b5b28 100%);
  color: rgba(255,245,231,0.92);
  border-top: 1px solid rgba(200,166,84,0.32);
  overflow: hidden;
}

.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,240,203,0.7), transparent);
}

.footer__inner {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 48px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 24px;
}

.footer__brand-name {
  color: #fff7e0;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__brand-text,
.footer__quote,
.footer__note {
  color: rgba(255,243,224,0.78);
  line-height: 1.75;
  font-size: .94rem;
}

.footer__quote {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid rgba(255,238,193,0.35);
  font-style: italic;
}

.footer__title {
  color: #fff4d0;
  font-size: 1rem;
  margin-bottom: 12px;
}

.footer__links,
.footer__channels,
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link,
.footer__channel,
.footer__legal-link {
  color: rgba(255,245,231,0.86);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .94rem;
  transition: transform .16s ease, color .16s ease;
}

.footer__link:hover,
.footer__channel:hover,
.footer__legal-link:hover {
  color: #fff3c4;
  transform: translateX(3px);
}

.footer__channel-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff1be;
  font-size: .84rem;
}

.footer__bottom {
  width: min(1280px, 94vw);
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255,245,231,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,245,231,0.7);
  font-size: .88rem;
}

.footer__bottom-mark {
  color: #f5df97;
}



/* =======================================================================================================================================================
                                                                PAGE PSAUME DU JOUR
   =================================================================================================================================================== */

.psalm-shell {
  display: grid;
  gap: 22px;
}

.psalm-hero {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 18%),
    linear-gradient(135deg, #24110f 0%, #4a231f 36%, #9f7b34 100%);
  border-radius: 34px;
  border: 1px solid rgba(220, 193, 122, 0.35);
  box-shadow: 0 28px 80px rgba(74, 35, 31, 0.22);
}

.psalm-hero::before {
  opacity: .9;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.03), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cpath d='M120 16v208M16 120h208' stroke='rgba(255,255,255,0.06)' stroke-width='2'/%3E%3Ccircle cx='120' cy='120' r='86' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E") center/420px no-repeat;
}

.psalm-hero__inner {
  padding: 48px 42px;
}

.psalm-hero__badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color: #f8e7b8;
}

.psalm-hero__date,
.psalm-hero__number {
  color: rgba(255,245,231,0.84);
}

.psalm-hero__title {
  color: #fff9f0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.psalm-hero__antienne {
  max-width: 850px;
  background: rgba(255,255,255,0.10);
  border-left-color: #f5df97;
  color: #fff7e8;
  border-radius: 0 18px 18px 0;
}

.psalm-hero__actions {
  margin-top: 24px;
  gap: 12px;
}

.btn--psalm-dl {
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(24,12,10,0.14);
}

.btn--psalm-mp3 {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20) !important;
}

.btn--psalm-partition {
  background: linear-gradient(135deg, #efd385, #c8a654);
  color: #2c1a0d;
  border-color: rgba(239,211,133,0.9) !important;
}

.btn--psalm-paroles {
  background: rgba(25, 15, 12, 0.18);
  color: #fff7ea;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

.psalm-stage {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 22px;
}

.psalm-player-container {
  margin-bottom: 22px;
}

.psalm-stage__panel,
.psalm-player,
.psalm-library,
.psalm-info,
.psalm-lyrics-panel {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(113,84,42,0.13);
  border-radius: 24px;
  box-shadow: var(--cc-shadow-soft);
}

.psalm-stage__panel {
  overflow: hidden;
}

.psalm-stage__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #301816, #7a5b28);
}

.psalm-stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.psalm-stage__overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #fffaf1;
  background: linear-gradient(135deg, rgba(28,14,12,0.84), rgba(72,34,29,0.64));
  backdrop-filter: blur(14px);
}

.psalm-stage__overlay-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #f4df9f;
}

.psalm-stage__overlay-title {
  margin-top: 6px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.36rem;
}

.psalm-stage__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.psalm-stage__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: .84rem;
}

.psalm-player {
  padding: 26px;
}

.psalm-section-title {
  font-size: 1.2rem;
  color: var(--cc-burgundy);
  margin-bottom: 8px;
}

.psalm-section-subtitle {
  color: var(--cc-ink-soft);
  margin-bottom: 20px;
}

.psalm-player__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.psalm-player__button,
.psalm-player__speed,
.psalm-player__download {
  border: none;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.psalm-player__button {
  background: linear-gradient(135deg, #d3b56a, #a37b29);
  color: #fff;
}

.psalm-player__button--ghost {
  background: #f7f2e9;
  color: var(--cc-burgundy);
  box-shadow: inset 0 0 0 1px rgba(200,166,84,0.24);
}

.psalm-player__button--primary {
  min-width: 152px;
}

.psalm-player__speed,
.psalm-player__download {
  background: rgba(98,33,29,0.06);
  color: var(--cc-burgundy);
  box-shadow: inset 0 0 0 1px rgba(98,33,29,0.10);
}

.psalm-player__progress-wrap {
  margin-top: 22px;
}

.psalm-player__progress {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8a654 var(--progress, 0%), #ece3d3 var(--progress, 0%));
  outline: none;
}

.psalm-player__progress::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #a37b29;
  box-shadow: 0 3px 8px rgba(70,40,16,0.18);
}

.psalm-player__times {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--cc-ink-soft);
  font-size: .86rem;
}

.psalm-player__native {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fbf7ef;
  border: 1px solid rgba(200,166,84,0.16);
}

.psalm-player__native audio {
  width: 100%;
}

.psalm-empty {
  padding: 18px;
  border-radius: 18px;
  background: #fbf7ef;
  color: var(--cc-ink-soft);
  border: 1px dashed rgba(200,166,84,0.36);
}

.psalm-library {
  padding: 24px;
}

.psalm-library__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.psalm-library__title {
  font-size: 1.22rem;
  color: var(--cc-burgundy);
}

.psalm-library__hint {
  color: var(--cc-ink-soft);
  font-size: .92rem;
}

.psalm-library__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.psalm-library__item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(113,84,42,0.10);
  box-shadow: 0 10px 24px rgba(58, 35, 18, 0.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.psalm-library__item:hover,
.psalm-library__item--active {
  transform: translateY(-2px);
    border-color: var(--gold, #c9a03d);
    background: rgba(201, 160, 61, 0.05);
      box-shadow: 0 16px 34px rgba(58, 35, 18, 0.10);
 }

.psalm-library__day {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--cc-gold);
}

.psalm-library__item-title {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--cc-burgundy);
  font-size: 1.06rem;
  line-height: 1.35;
}

.psalm-library__meta {
  color: var(--cc-ink-soft);
  font-size: .88rem;
}

.psalm-library__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psalm-library__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f8f4ec;
  color: var(--cc-ink-soft);
  font-size: .82rem;
}

.psalm-info {
  padding: 24px;
}

.psalm-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.psalm-info__card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8f3ea, #fff);
  border: 1px solid rgba(200,166,84,0.14);
}

.psalm-info__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cc-gold);
  margin-bottom: 8px;
}

.psalm-info__value {
  color: var(--cc-burgundy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.02rem;
}

.psalm-lyrics-panel {
  padding: 24px;
}

.psalm-lyrics-panel[hidden] {
  display: none !important;
}

.psalm-text-card {
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.psalm-text-card::before {
  top: 10px;
  left: 6px;
  color: rgba(200,166,84,0.26);
}

.psalm-text {
  padding: 8px 0 0 22px;
  margin-left: 0;
  border-left: 3px solid rgba(200,166,84,0.6);
  font-size: 1.08rem;
  line-height: 2;
}

.psalm-source {
  text-align: left;
}

@media (max-width: 1100px) {
  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psalm-stage {
    grid-template-columns: 1fr;
  }
}

/* @media (max-width: 820px) {
  .topnav.topnav--open {
    right: 3vw;
    top: 72px;
    width: min(360px, 94vw);
    padding: 14px;
    border-radius: 24px;
    background: rgba(255,249,241,0.96);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(200,166,84,0.24);
    z-index: 999;
  }

  .topnav__link,
  .topnav .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: 42px 24px;
  }

  .hero__cross {
    font-size: 4.6rem;
    right: 20px;
    top: 18px;
  }

  .pagehead,
  .card,
  .psalm-library,
  .psalm-player,
  .psalm-info,
  .psalm-lyrics-panel {
    padding: 20px;
  }

  .psalm-hero__inner {
    padding: 34px 22px;
  }

  .psalm-library__grid,
  .psalm-info__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner,
  .footer__bottom {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer__bottom {
    justify-content: initial;
  }
} */

/* @media (max-width: 560px) {
  .container {
    padding-top: 24px;
  }

  .hero p,
  .psalm-section-subtitle,
  .footer__brand-text,
  .footer__quote {
    font-size: .95rem;
  }

  .psalm-player__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psalm-player__button--primary,
  .psalm-player__download {
    grid-column: 1 / -1;
  }

  .btn--psalm-dl {
    width: 100%;
    justify-content: center;
  }

  .psalm-stage__overlay-title {
    font-size: 1.08rem;
  }
} */




/* =====================================================
   PAGE PSAUME DU JOUR - OPTIMISATION UX
   ===================================================== */

/* Layout principal */
.psalm-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.psalm-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .psalm-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Image avec loupe */
.psalm-stage__media {
    position: relative;
    overflow-y: auto;
    max-height: 500px;
    border-radius: 16px;
    background: #f5f3eb;
    scrollbar-width: thin;
}

.psalm-stage__media img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.psalm-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 8px;
    border-radius: 50%;
    color: white;
    z-index: 2;
    transition: transform 0.2s;
    cursor: pointer;
}

.psalm-zoom-icon:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.7);
}

/* Overlay */
.psalm-stage__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    border-radius: 0 0 16px 16px;
}

.psalm-stage__media:hover .psalm-stage__overlay {
    opacity: 1;
    visibility: visible;
}

.psalm-stage__overlay-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

.psalm-stage__overlay-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.psalm-stage__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.psalm-stage__chip {
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* Indicateurs */
.psalm-scroll-indicator, .psalm-click-indicator {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.psalm-scroll-indicator {
    bottom: 10px;
    right: 10px;
}

.psalm-click-indicator {
    bottom: 10px;
    left: 10px;
}

.psalm-stage__media:hover .psalm-scroll-indicator,
.psalm-stage__media:hover .psalm-click-indicator {
    opacity: 1;
}

/* Barre d'actions */
.psalm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.psalm-actions__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: var(--bg2, #f0f0f0);
    color: var(--text, #333);
}

.psalm-actions__btn--primary {
    background: var(--gold, #c9a03d);
    color: #fff;
}

.psalm-actions__btn--primary:hover {
    background: var(--gold-dark, #b88a2a);
    transform: translateY(-2px);
}

.psalm-actions__btn--secondary {
    background: var(--bg2, #e0e0e0);
    color: var(--text, #333);
}

.psalm-actions__btn--secondary:hover {
    background: var(--bg3, #d0d0d0);
    transform: translateY(-2px);
}

.psalm-actions__btn--disabled {
    opacity: 0.5;
    cursor: default;
}

/* Fiche d'informations compacte */

/* .psalm-info-compact {
    background: var(--card, #fff);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--card-border, #e0e0e0);
}

.psalm-info-compact__item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--card-border, #eee);
}

.psalm-info-compact__item:last-child {
    border-bottom: none;
}

.psalm-info-compact__label {
    font-weight: 600;
    color: var(--gold, #c9a03d);
} */

/* .psalm-info-compact__item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--card-border, #eee);
    align-items: flex-start;
}

.psalm-info-compact__item:last-child {
    border-bottom: none;
}

.psalm-info-compact__label {
    font-weight: 600;
    color: var(--gold, #c9a03d);
    flex-shrink: 0;
}

.psalm-info-compact__value {
    word-break: break-word;
    line-height: 1.4;
} */

/* Version responsive */
/* @media (max-width: 480px) {
    .psalm-info-compact__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
} */

.psalm-info-compact__item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--card-border, #eee);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.psalm-info-compact__label {
    font-weight: 600;
    color: var(--gold, #c9a03d);
    flex-shrink: 0;
}

.psalm-info-compact__value {
    flex: 1;
    text-align: right;
    word-break: break-word;
}

/* Lecteur audio simplifié */
.psalm-player {
    background: var(--card, #fff);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid var(--card-border, #e0e0e0);
}

.psalm-player__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.psalm-player__title {
    font-weight: 600;
}

.psalm-player__settings-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.psalm-player__settings-toggle:hover {
    background: var(--bg2, #f0f0f0);
}

.psalm-player__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.psalm-player__play {
    background: var(--gold, #c9a03d);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.psalm-player__play:hover {
    transform: scale(1.02);
}

.psalm-player__progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.psalm-player__progress {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--bg2, #e0e0e0);
}

.psalm-player__progress::-webkit-slider-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold, #c9a03d);
    cursor: pointer;
}

.psalm-player__volume {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.psalm-player__volume-slider {
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.psalm-player__advanced {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--card-border, #eee);
}

.psalm-player__adv-btn {
    background: var(--bg2, #f0f0f0);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

.psalm-player__speed-value {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg2, #f0f0f0);
    border-radius: 20px;
}

/* Paroles en accordéon */
.psalm-lyrics {
    margin: 2rem 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.psalm-lyrics__header h3 {
    margin-bottom: 1rem;
    color: var(--gold, #c9a03d);
}

.psalm-lyrics__download {
    margin-top: 1rem;
    background: none;
    border: 1px solid var(--gold, #c9a03d);
    color: var(--gold, #c9a03d);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.psalm-lyrics__download:hover {
    background: var(--gold, #c9a03d);
    color: white;
}

/* Calendrier horizontal */
.psalm-calendar {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border, #e0e0e0);
}

.psalm-calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.psalm-calendar__link {
    color: var(--gold, #c9a03d);
    text-decoration: none;
    font-size: 0.9rem;
}

.psalm-calendar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.psalm-calendar__card {
    background: var(--card, #fff);
    border: 1px solid var(--card-border, #e0e0e0);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: var(--text, #333);
    transition: all 0.2s;
}

.psalm-calendar__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--gold, #c9a03d);
}

.psalm-calendar__card--active {
    border-color: var(--gold, #c9a03d);
    background: rgba(201, 160, 61, 0.05);
}

.psalm-calendar__day {
    font-weight: 600;
    color: var(--gold, #c9a03d);
    margin-bottom: 0.5rem;
}

.psalm-calendar__number {
    font-size: 0.8rem;
    color: var(--text-muted, #666);
    margin-bottom: 0.25rem;
}

.psalm-calendar__title {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.psalm-calendar__date {
    font-size: 0.7rem;
    color: var(--text-muted, #999);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    z-index: 10000;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.toast--show {
    transform: translateX(-50%) translateY(0);
}

.toast--success {
    background: #4caf50;
}

.toast--error {
    background: #f44336;
}

.toast--info {
    background: #2196f3;
}

/* Modal image */
.psalm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.psalm-modal.active {
    display: flex;
}

.psalm-modal__content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.psalm-modal__content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.psalm-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.psalm-modal__close:hover {
    transform: scale(1.1);
}

.psalm-modal__caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Empty state */
.psalm-empty {
    text-align: center;
    padding: 2rem;
    background: var(--bg2, #f9f9f9);
    border-radius: 16px;
    color: var(--text-muted, #666);
}

.psalm-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}


/* Bouton Repeat */
.psalm-player__repeat {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text, #333);
}

.psalm-player__repeat:hover {
    background: var(--bg2, #f0f0f0);
}

.psalm-player__repeat.active {
    color: var(--gold, #c9a03d);
    background: rgba(201, 160, 61, 0.1);
}

.psalm-player__repeat.active svg {
    stroke: var(--gold, #c9a03d);
}

/* =====================================================
   STYLES MOBILE - IMAGE PSAUME
   ===================================================== */

/* Version mobile : pas d'effet de survol, image en entier */
@media (max-width: 768px) {
    /* Supprimer l'overlay au survol sur mobile */
    .psalm-stage__overlay {
        display: none !important;
    }

    /* Supprimer les indicateurs sur mobile */
    .psalm-scroll-indicator,
    .psalm-click-indicator,
    .psalm-zoom-icon {
        display: none !important;
    }

    /* Conteneur de l'image : hauteur automatique, pas de défilement */
    .psalm-stage__media {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* L'image prend toute sa hauteur naturelle */
    .psalm-stage__media img {
        height: auto !important;
        max-height: none !important;
        width: 100%;
    }

    /* Ajuster la disposition en colonne sur mobile */
    .psalm-main {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Le lecteur audio passe en dessous de l'image */
    .psalm-main__image {
        order: 1;
    }

    .psalm-main__content {
        order: 2;
    }

    /* Barre d'actions en mode wrap sur mobile */
    .psalm-actions {
        justify-content: center;
    }

    /* Informations compactes */
    .psalm-info-compact {
        font-size: 0.9rem;
    }

    /* Calendrier en grid responsive */
    .psalm-calendar__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    /* Titres plus petits */
    .psalm-hero__title {
        font-size: 1.5rem;
    }

    .psalm-hero__number {
        font-size: 1rem;
    }
}

/* Version tablette (optionnel) */
@media (min-width: 769px) and (max-width: 1024px) {
    .psalm-main {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .psalm-calendar__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}
