:root {
  --g: #1a5c3a; --gm: #2d7a52; --gl: #e8f5ee; --gb: #f0f7f3;
  --or: #c8a035; --orl: #f5d76e; --bdr: #d4e8dc; --mut: #5a7a68;
  --r: 12px; --ff: 'DM Sans', sans-serif; --fft: 'DM Serif Display', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--ff); background: #f5f8f5; color: #1a2e22; }

.fake-bar { background: var(--g); color: rgba(255,255,255,.35); font-size: 11px; text-align: center; padding: 8px; letter-spacing: .1em; }

/* ── STICKY TOP ── */
.sticky-top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,248,245,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bdr);
  padding: 10px 16px 0;
}
.sticky-inner { max-width: 680px; margin: 0 auto; }

.search-wrap { position: relative; margin-bottom: 10px; }
.search-wrap svg.ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--mut); pointer-events: none;
}
.search-input {
  width: 100%; padding: 10px 36px 10px 36px;
  border: 1.5px solid var(--bdr); border-radius: 9px;
  font-family: var(--ff); font-size: 14px; background: #fff; color: #1a2e22;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(26,92,58,.08); }
.search-input::placeholder { color: #aac4b4; }
.btn-clear {
  display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--mut); padding: 2px;
}
.btn-clear svg { width: 14px; height: 14px; display: block; }
.search-input:not(:placeholder-shown) ~ .btn-clear { display: block; }

/* Ancres */
.seder-anchors {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px;
  scrollbar-width: none;
}
.seder-anchors::-webkit-scrollbar { display: none; }
.seder-anchor {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 100px; border: 1.5px solid var(--bdr);
  background: #fff; font-size: 12px; font-weight: 600; color: var(--g);
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.seder-anchor:hover { background: var(--gl); border-color: var(--g); }
.seder-anchor .he { font-family: var(--fft); font-size: 15px; line-height: 1; }

/* ── PAGE ── */
.page { max-width: 680px; margin: 0 auto; padding: 20px 16px 52px; }

.no-results { display: none; text-align: center; padding: 48px 16px; color: var(--mut); font-size: 15px; }
.no-results.show { display: block; }

/* ── SÉDER BLOCK ── */
.seder-block { margin-bottom: 24px; }
.seder-block.hidden { display: none; }

.seder-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; background: var(--g);
  border-radius: var(--r) var(--r) 0 0;
  position: relative; overflow: hidden;
}
.seder-header::after {
  content: attr(data-he); position: absolute; right: 6px; top: -6px;
  font-family: var(--fft); font-size: 56px; color: rgba(255,255,255,.07);
  pointer-events: none; line-height: 1;
}
.seder-he { font-family: var(--fft); font-size: 21px; color: #fff; line-height: 1; position: relative; z-index: 1; }
.seder-fr { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); position: relative; z-index: 1; }
.seder-badge {
  margin-left: auto; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15); padding: 3px 10px;
  border-radius: 100px; white-space: nowrap; position: relative; z-index: 1;
}

/* ── GRILLE ── */
.traites-grid {
  border: 1px solid var(--bdr); border-top: none;
  border-radius: 0 0 var(--r) var(--r); overflow: hidden; background: #fff;
}

/* ── CARTE ── */
.traite-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--bdr); transition: background .12s;
}
.traite-card:last-child { border-bottom: none; }
.traite-card:hover { background: var(--gb); }
.traite-card.hidden { display: none; }

.traite-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gl); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--g); margin-top: 1px;
}
.traite-body { flex: 1; min-width: 0; }
.traite-name { font-family: var(--fft); font-size: 17px; color: var(--g); line-height: 1.2; margin-bottom: 3px; }
.traite-desc { font-size: 12.5px; color: var(--mut); line-height: 1.55; }
.traite-arrow {
  flex-shrink: 0; width: 18px; height: 18px; color: var(--bdr); margin-top: 3px;
  transition: color .15s, transform .15s;
}
.traite-card:hover .traite-arrow { color: var(--g); transform: translateX(3px); }

/* ── CTA BAS ── */
.bottom-cta {
  margin-top: 28px; background: var(--g); border-radius: var(--r);
  padding: 26px 22px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.bottom-cta-title { font-family: var(--fft); font-size: 21px; color: #fff; line-height: 1.3; }
.bottom-cta-title em { color: var(--orl); font-style: italic; }
.bottom-cta-sub { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.5; max-width: 360px; }
.bottom-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; padding: 11px 22px; border-radius: 9px;
  font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--ff);
  transition: background .15s;
}
.bottom-cta-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.bottom-cta-btn svg { width: 15px; height: 15px; }

@media (max-width: 480px) {
  .seder-he { font-size: 18px; }
  .traite-name { font-size: 15px; }
  .traite-desc { font-size: 12px; }
}