/* ═══════════════════════════════════════════
   TEHILIM — Template CSS partagé
   Utiliser avec tehilim.js
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;600;700&family=Noto+Serif+Hebrew:wght@400;600;700&family=Lato:wght@300;400;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --gold:          #B8882A;
  --gold-pale:     #F5EDD0;
  --gold-border:   rgba(184,136,42,0.2);
  --red:           #7A1A1A;
  --red-light:     #9B2020;
  --bg:            #FFFFFF;
  --bg-soft:       #F9F8F6;
  --bg-warm:       #FAF7F2;
  --border:        #E8E2D8;
  --border-light:  #F0EDE6;
  --reading-text:  #000000;
  --text:          #1A1A2E;
  --text-mid:      #4A4A5E;
  --text-dim:      #8A8A9E;

  /* couleurs sections */
  --c-hebrew-bg:      #FFF5F5;
  --c-hebrew-icon:    #7A1A1A;
  --c-hebrew-title:   #7A1A1A;
  --c-phonetic-bg:    #F5F5FF;
  --c-phonetic-icon:  #3A3A7A;
  --c-phonetic-title: #3A3A7A;
  --c-transl-bg:      #F0F4FF;
  --c-transl-icon:    #1A3A6B;
  --c-transl-title:   #1A3A6B;
  --c-summary-bg:     #FDFDF0;
  --c-summary-icon:   #5C5800;
  --c-summary-title:  #5C5800;
  --c-hist-bg:        #F0FFF4;
  --c-hist-icon:      #1E5631;
  --c-hist-title:     #1E5631;
  --c-beyond-bg:      #FAF0FF;
  --c-beyond-icon:    #4A1A6B;
  --c-beyond-title:   #4A1A6B;
  --c-seg-bg:         #FFF8F0;
  --c-seg-icon:       #7A3D00;
  --c-seg-title:      #7A3D00;
  --c-when-bg:        #FFF5F5;
  --c-when-icon:      #6B1A1A;
  --c-when-title:     #6B1A1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'EB Garamond', Georgia, serif;
  background:
    radial-gradient(circle at top, rgba(184,136,42,0.06), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #ffffff 18%, #fbf8f3 100%);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}

body.t-page-ready .t-nav,
body.t-page-ready .t-hero,
body.t-page-ready .t-toggle-bar,
body.t-page-ready .t-content,
body.t-page-ready .t-psalm-nav,
body.t-page-ready .t-footer {
  animation: t-page-enter 0.28s ease both;
}

body.t-page-fading {
  pointer-events: none;
}

body.t-page-fading .t-nav,
body.t-page-fading .t-hero,
body.t-page-fading .t-toggle-bar,
body.t-page-fading .t-content,
body.t-page-fading .t-psalm-nav,
body.t-page-fading .t-footer {
  animation: t-page-exit 0.24s ease both;
}

@keyframes t-page-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes t-page-exit {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.t-daily-intro {
  margin: 0 auto 28px;
  max-width: 900px;
  padding: 28px 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(184,136,42,0.18);
  background:
    radial-gradient(circle at top right, rgba(184,136,42,0.1), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%);
  box-shadow: 0 16px 42px rgba(26,26,46,0.06);
}

.t-daily-closing {
  margin: 28px auto 0;
  max-width: 900px;
  padding: 28px 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(184,136,42,0.18);
  background:
    radial-gradient(circle at bottom left, rgba(184,136,42,0.1), transparent 32%),
    linear-gradient(180deg, #fffdf8 0%, #faf5ea 100%);
  box-shadow: 0 16px 42px rgba(26,26,46,0.06);
}

.t-daily-kicker,
.t-daily-sub,
.t-daily-series {
  text-align: center;
}

.t-daily-kicker {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.t-daily-he {
  direction: rtl;
  text-align: center;
  font-family: 'Noto Serif Hebrew', serif;
  font-size: 1.35rem;
  line-height: 2;
  color: var(--text);
}

.t-daily-sub {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.t-daily-series {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.t-119-group + .t-119-group {
  margin-top: 18px;
}

.t-119-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(184,136,42,0.08);
  border: 1px solid rgba(184,136,42,0.14);
}

.t-119-letter {
  font-family: 'Noto Serif Hebrew', serif;
  font-size: 1.25rem;
  color: var(--red);
  line-height: 1;
}

.t-119-name,
.t-119-range {
  font-family: 'Cinzel', serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.t-119-name {
  font-size: 0.62rem;
  color: var(--text);
}

.t-119-range {
  font-size: 0.54rem;
  color: var(--text-dim);
  margin-left: auto;
}

.t-119-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.t-page-ready .t-nav,
  body.t-page-ready .t-hero,
  body.t-page-ready .t-toggle-bar,
  body.t-page-ready .t-content,
  body.t-page-ready .t-psalm-nav,
  body.t-page-ready .t-footer,
  body.t-page-fading .t-nav,
  body.t-page-fading .t-hero,
  body.t-page-fading .t-toggle-bar,
  body.t-page-fading .t-content,
  body.t-page-fading .t-psalm-nav,
  body.t-page-fading .t-footer {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════
   NAV PRINCIPALE
══════════════════════════════════════════ */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  justify-content: space-between;
  box-shadow: 0 8px 28px rgba(26,26,46,0.04);
}

.t-nav-back {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}
.t-nav-back:hover { color: var(--red); }

/* ══════════════════════════════════════════
   NAVIGATION CATALOGUE
══════════════════════════════════════════ */
.t-catalog-nav {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 350;
}

.t-catalog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 74px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  pointer-events: auto;
  color: rgba(122,26,26,0.88);
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(250,245,236,0.97) 100%);
  border: 1px solid rgba(184,136,42,0.2);
  box-shadow: 0 18px 40px rgba(26,26,46,0.09);
  transition: transform 0.22s, box-shadow 0.22s, color 0.22s, border-color 0.22s;
  backdrop-filter: blur(10px);
}

.t-catalog-arrow:hover {
  color: var(--red);
  border-color: rgba(122,26,26,0.22);
  box-shadow: 0 24px 48px rgba(26,26,46,0.14);
}

.t-catalog-arrow.prev {
  left: 0;
  border-radius: 0 22px 22px 0;
  padding-right: 6px;
}

.t-catalog-arrow.prev:hover {
  transform: translateY(-50%) translateX(4px);
}

.t-catalog-arrow.next {
  right: 0;
  border-radius: 22px 0 0 22px;
  padding-left: 6px;
}

.t-catalog-arrow.next:hover {
  transform: translateY(-50%) translateX(-4px);
}

.t-catalog-arrow.disabled {
  opacity: 0.22;
  pointer-events: none;
}

.t-catalog-arrow-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.t-catalog-arrow-glyph {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  line-height: 1;
}

.t-catalog-arrow-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .t-catalog-arrow {
    width: 58px;
    height: 96px;
  }
  .t-catalog-arrow-glyph {
    font-size: 1.6rem;
  }
  .t-catalog-arrow-label {
    font-size: 0.45rem;
    letter-spacing: 1.4px;
  }
}

@media (max-width: 640px) {
  .t-daily-intro {
    padding: 22px 16px 18px;
    margin-bottom: 22px;
    border-radius: 18px;
  }
  .t-daily-he {
    font-size: 1.06rem;
    line-height: 1.85;
  }
  .t-daily-sub {
    font-size: 0.88rem;
  }
  .t-119-heading {
    gap: 8px;
    padding: 9px 10px;
    margin-bottom: 10px;
  }
  .t-119-letter {
    font-size: 1.05rem;
  }
  .t-119-name {
    font-size: 0.54rem;
  }
  .t-119-range {
    font-size: 0.46rem;
  }
  .t-catalog-arrow {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
    width: auto;
    min-width: 54px;
    max-width: calc(50vw - 20px);
    height: 46px;
    border-radius: 14px;
    padding: 0 12px;
  }
  .t-catalog-arrow.prev { left: 10px; }
  .t-catalog-arrow.next { right: 10px; }
  .t-catalog-arrow.prev:hover,
  .t-catalog-arrow.next:hover {
    transform: translateY(-2px);
  }
  .t-catalog-arrow-core {
    flex-direction: row;
    gap: 6px;
  }
  .t-catalog-arrow-glyph { font-size: 1.25rem; }
  .t-catalog-arrow-label {
    writing-mode: initial;
    transform: none;
    font-size: 0.4rem;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.t-footer {
  background: var(--text);
  padding: 48px 24px 28px;
  margin-top: 0;
}
.t-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.t-footer-he {
  font-family: 'Noto Serif Hebrew', serif;
  font-size: 2rem;
  color: var(--gold-light, #D4A84A);
  direction: rtl;
  line-height: 1;
  margin-bottom: 8px;
}
.t-footer-name {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.t-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.t-footer-link {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.t-footer-link:hover { color: var(--gold-light, #D4A84A); }
.t-footer-verse {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
  line-height: 1.8;
  text-align: right;
}
.t-footer-bottom {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .t-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .t-footer-verse { text-align: left; }
}

.t-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.t-nav-brand {
  font-family: 'Noto Serif Hebrew', serif;
  font-size: 1.1rem;
  color: var(--red);
  direction: rtl;
  line-height: 1;
}

.t-nav-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.t-nav-num {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   EN-TÊTE DU PSAUME
══════════════════════════════════════════ */
.t-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(184,136,42,0.12), transparent 26%),
    linear-gradient(180deg, #fbf6ed 0%, #f8f1e6 48%, #fdfaf5 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px 44px;
  position: relative;
  overflow: hidden;
}

.t-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.7), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(122,26,26,0.05), transparent 25%);
  pointer-events: none;
}

.t-hero-watermark {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cinzel', serif;
  font-size: 16rem;
  font-weight: 900;
  color: rgba(122,26,26,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.t-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.t-day-badge {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  margin-bottom: 20px;
}

.t-he-title {
  font-family: 'Noto Serif Hebrew', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--red);
  direction: rtl;
  line-height: 1.3;
  margin-bottom: 10px;
}

.t-fr-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.t-occasion-main {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--red);
  margin-bottom: 14px;
}

.t-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(26,26,46,0.05);
}

/* ══════════════════════════════════════════
   BARRE BOUTONS TOGGLE
══════════════════════════════════════════ */
.t-toggle-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 62px;
  z-index: 190;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.t-toggle-bar::-webkit-scrollbar { display: none; }

.t-toggle-inner {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  min-width: max-content;
  max-width: 800px;
  margin: 0 auto;
}

.t-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.t-btn:hover { border-color: var(--red); color: var(--red); }
.t-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.t-btn-all { background: var(--bg-soft); }
.t-btn-all.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ══════════════════════════════════════════
   CONTENU PRINCIPAL
══════════════════════════════════════════ */
.t-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  position: relative;
}

/* ══════════════════════════════════════════
   BLOC SECTION
══════════════════════════════════════════ */
.t-bloc {
  margin-bottom: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(26,26,46,0.04);
}
.t-bloc.t-hidden { display: none; }

.t-bloc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s, transform 0.15s;
}
.t-bloc-header:hover { filter: brightness(0.98); }

.t-bloc-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.t-bloc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: #fff;
}

.t-bloc-label {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.t-bloc-arrow {
  font-size: 1rem;
  color: var(--text-dim);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.t-bloc.t-closed .t-bloc-arrow { transform: rotate(-90deg); }

.t-bloc-body {
  padding: 24px 22px 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(249,248,246,0.82) 100%);
}
.t-bloc.t-closed .t-bloc-body { display: none; }

/* Couleurs par section */
.t-bloc-hebrew   .t-bloc-header { background: var(--c-hebrew-bg); }
.t-bloc-hebrew   .t-bloc-icon   { background: var(--c-hebrew-icon); }
.t-bloc-hebrew   .t-bloc-label  { color: var(--c-hebrew-title); }

.t-bloc-phonetic .t-bloc-header { background: var(--c-phonetic-bg); }
.t-bloc-phonetic .t-bloc-icon   { background: var(--c-phonetic-icon); }
.t-bloc-phonetic .t-bloc-label  { color: var(--c-phonetic-title); }

.t-bloc-transl   .t-bloc-header { background: var(--c-transl-bg); }
.t-bloc-transl   .t-bloc-icon   { background: var(--c-transl-icon); }
.t-bloc-transl   .t-bloc-label  { color: var(--c-transl-title); }

.t-bloc-summary  .t-bloc-header { background: var(--c-summary-bg); }
.t-bloc-summary  .t-bloc-icon   { background: var(--c-summary-icon); }
.t-bloc-summary  .t-bloc-label  { color: var(--c-summary-title); }

.t-bloc-hist     .t-bloc-header { background: var(--c-hist-bg); }
.t-bloc-hist     .t-bloc-icon   { background: var(--c-hist-icon); }
.t-bloc-hist     .t-bloc-label  { color: var(--c-hist-title); }

.t-bloc-beyond   .t-bloc-header { background: var(--c-beyond-bg); }
.t-bloc-beyond   .t-bloc-icon   { background: var(--c-beyond-icon); }
.t-bloc-beyond   .t-bloc-label  { color: var(--c-beyond-title); }

.t-bloc-seg      .t-bloc-header { background: var(--c-seg-bg); }
.t-bloc-seg      .t-bloc-icon   { background: var(--c-seg-icon); }
.t-bloc-seg      .t-bloc-label  { color: var(--c-seg-title); }

.t-bloc-when     .t-bloc-header { background: var(--c-when-bg); }
.t-bloc-when     .t-bloc-icon   { background: var(--c-when-icon); }
.t-bloc-when     .t-bloc-label  { color: var(--c-when-title); }

/* ══════════════════════════════════════════
   TEXTE HÉBREU
══════════════════════════════════════════ */
.t-hebrew {
  font-family: 'Noto Serif Hebrew', serif;
  direction: rtl;
  font-size: 1.55rem;
  line-height: 2.4;
  color: var(--reading-text);
  text-align: right;
}
.t-hebrew-v { display: block; margin-bottom: 2px; }

/* ══════════════════════════════════════════
   PHONÉTIQUE — plus lisible
══════════════════════════════════════════ */
.t-phonetic {
  font-family: 'Libre Baskerville', 'EB Garamond', serif;
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.35;
  color: var(--reading-text);
}
.t-phonetic-v {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.t-phonetic-v:last-child { border-bottom: none; }
.t-phonetic-vnum {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 24px;
  padding-top: 3px;
}
.t-phonetic-vtext {
  font-family: 'Libre Baskerville', 'EB Garamond', serif;
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--reading-text);
  line-height: 1.9;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════
   TRADUCTION
══════════════════════════════════════════ */
.t-transl-v {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--reading-text);
  line-height: 1.75;
}
.t-transl-v:last-child { border-bottom: none; }
.t-vnum {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 18px;
  padding-top: 3px;
}

/* ══════════════════════════════════════════
   RÉSUMÉ
══════════════════════════════════════════ */
.t-summary { color: var(--text-mid); line-height: 1.95; }
.t-summary p { margin-bottom: 16px; }
.t-summary p:last-child { margin-bottom: 0; }
.t-hl {
  background: linear-gradient(120deg, rgba(184,136,42,0.18) 0%, rgba(184,136,42,0.07) 100%);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--text);
}

/* ══════════════════════════════════════════
   CONTEXTE HISTORIQUE
══════════════════════════════════════════ */
.t-hist { color: #1A3A22; line-height: 1.95; }
.t-hist p { margin-bottom: 16px; }
.t-hist p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════
   AU-DELÀ DU TEXTE
══════════════════════════════════════════ */
.t-beyond { color: #2A0A4A; line-height: 1.95; }
.t-beyond p { margin-bottom: 16px; }
.t-beyond p:last-child { margin-bottom: 0; }
.t-beyond strong { color: #4A1A6B; }

/* ══════════════════════════════════════════
   SEGOULOT
══════════════════════════════════════════ */
.t-seg-list { list-style: none; padding: 0; }
.t-seg-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(122,61,0,0.18);
  line-height: 1.75;
  color: #3A2000;
}
.t-seg-item:last-child { border-bottom: none; }
.t-seg-gem {
  color: var(--gold);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.t-seg-item strong { color: #5A3000; }

/* ══════════════════════════════════════════
   OCCASIONS
══════════════════════════════════════════ */
.t-when-list { display: flex; flex-direction: column; gap: 10px; }
.t-when-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  line-height: 1.7;
}
.t-when-item.trad { background: #FFF3E0; border: 1px solid rgba(184,136,42,0.22); }
.t-when-item.enr  { background: #FFF5F5; border: 1px solid rgba(122,26,26,0.1); }
.t-when-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.t-when-item.trad .t-when-badge { background: var(--gold); color: #fff; }
.t-when-item.enr  .t-when-badge { background: var(--red); color: #fff; }
.t-when-text { font-size: 0.95rem; color: var(--text-mid); }
.t-when-text strong { color: var(--text); }

/* ══════════════════════════════════════════
   NAVIGATION PSAUMES
══════════════════════════════════════════ */
.t-psalm-nav {
  border-top: 1px solid var(--border);
  padding: 28px 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 14px;
}
.t-pnav-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  text-decoration: none;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.t-pnav-btn:hover { border-color: var(--red); color: var(--red); }
.t-pnav-btn.next { background: var(--red); border-color: var(--red); color: #fff; }
.t-pnav-btn.next:hover { background: var(--red-light); }
.t-pnav-btn.disabled { opacity: 0.25; pointer-events: none; }
.t-pnav-center {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  .t-hero { padding: 36px 20px 32px; }
  .t-content { padding: 24px 16px 72px; }
  .t-toggle-bar { padding: 0 16px; }
  .t-hebrew { font-size: 1.25rem; }
  .t-nav { padding: 0 16px; }
  .t-nav-back {
    font-size: 0.5rem;
    letter-spacing: 1px;
  }
  .t-nav-brand { font-size: 0.95rem; }
  .t-nav-sub {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
  }
  .t-nav-num {
    font-size: 0.5rem;
    letter-spacing: 1px;
  }
  .t-bloc-body { padding: 18px 16px 22px; }
  .t-psalm-nav { flex-direction: column; }
  .t-pnav-btn, .t-pnav-center { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .t-nav {
    gap: 8px;
    height: 58px;
  }
  .t-nav-back {
    font-size: 0.46rem;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .t-nav-sub {
    max-width: 120px;
    font-size: 0.48rem;
  }
  .t-nav-num {
    max-width: 46px;
    text-align: right;
  }
  .t-catalog-arrow {
    min-width: 46px;
    height: 42px;
    padding: 0 10px;
  }
  .t-catalog-arrow-label {
    display: none;
  }
}
