/* bloc 1 */
:root {
  --ink: #1a2332;
  --muted: #5c6b7a;
  --paper: #ffffff;
  --bg: #f0f4f8;
  --greek: #24526d;
  --greek-soft: #e5f0f4;
  --hebrew: #3157a4;
  --hebrew-soft: #eaf0ff;
  --gold: #b87919;
  --line: #d4e0e8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, #d6e8f0 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, #dce4f8 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  width: 100%;
}
header {
  text-align: center;
  margin-bottom: 42px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 18px;
  box-shadow: 0 4px 14px #1a233208;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  letter-spacing: -.03em;
  color: #122033;
  font-family: Georgia, "Times New Roman", serif;
}
.lede {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 8px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 40px #1a23360c;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  min-height: 280px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.card.greek::before { background: linear-gradient(90deg, var(--greek), #3a7a9a); }
.card.hebrew::before { background: linear-gradient(90deg, var(--hebrew), #5a7fd0); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px #1a233618;
}
.card.greek:hover { border-color: #9bb8c8; }
.card.hebrew:hover { border-color: #a8bae8; }
.card:focus-visible {
  outline: 3px solid #8bb8cc;
  outline-offset: 3px;
}
.glyph {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "SBL Hebrew", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card.greek .glyph {
  background: var(--greek-soft);
  color: var(--greek);
}
.card.hebrew .glyph {
  background: var(--hebrew-soft);
  color: var(--hebrew);
  direction: rtl;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  font-family: Georgia, "Times New Roman", serif;
}
.card.greek h2 { color: #143d55; }
.card.hebrew h2 { color: #1e3a7a; }
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  flex: 1;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 20px;
}
.features span {
  font-size: .75rem;
  font-weight: 650;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f6f9;
  color: #4a5a6a;
  border: 1px solid #e2e8ef;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: auto;
}
.card.greek .cta { color: var(--greek); }
.card.hebrew .cta { color: var(--hebrew); }
.card:hover .cta { gap: 12px; }
.cta svg {
  width: 18px;
  height: 18px;
  transition: transform .18s ease;
}
.card:hover .cta svg { transform: translateX(3px); }

footer {
  text-align: center;
  padding: 28px 20px 72px; /* bas : place pour le bouton « Se connecter » fixé en bas à gauche */
  color: var(--muted);
  font-size: .85rem;
}
footer strong { color: var(--ink); font-weight: 700; }
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 4px 12px #1a233206;
}
.footer-line .sym {
  font-weight: 800;
  color: var(--greek);
}

@media (max-width: 640px) {
  main { padding: 32px 16px 28px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { min-height: 0; padding: 24px 20px 20px; }
  h1 { font-size: 1.7rem; }
}

/* Fenêtre « Nouveautés » */
.news-btn{position:relative;display:inline-flex;align-items:center;gap:8px;margin:0 0 18px 10px;font:650 .82rem system-ui,sans-serif;color:var(--greek);background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 14px;cursor:pointer;box-shadow:0 4px 14px #1a233208}
.news-btn:hover{background:var(--greek-soft)}
.news-btn.new::after{content:"";width:9px;height:9px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px #b8791930}
.news-btn:focus-visible,.news-dlg button:focus-visible{outline:3px solid #8bb8cc;outline-offset:2px}
.news-dlg{border:0;border-radius:22px;padding:0;width:min(560px,94vw);max-height:88vh;color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 30px 70px #1a233240;overflow:hidden}
.news-dlg[open]{display:flex;flex-direction:column}
.news-dlg::backdrop{background:#1a233290}
.news-head{padding:24px 26px 14px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,var(--greek-soft),var(--hebrew-soft))}
.news-head h2{margin:0 0 2px;font:700 1.45rem Georgia,"Times New Roman",serif;color:#143d55}
.news-head p{margin:0;color:var(--muted);font-size:.88rem}
.news-body{padding:6px 26px 4px;overflow-y:auto}
.news-body h3{margin:18px 0 6px;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--gold)}
.news-body ul{margin:0;padding:0;list-style:none}
.news-body li{padding:9px 0;border-bottom:1px solid #eef2f6;font-size:.93rem;line-height:1.45}
.news-body li:last-child{border-bottom:0}
.news-body li b{color:#143d55}
.news-foot{padding:14px 26px 20px;text-align:right;border-top:1px solid var(--line)}
.news-foot button{font:700 .92rem system-ui,sans-serif;color:#fff;background:var(--greek);border:0;border-radius:12px;padding:11px 22px;cursor:pointer}
.news-foot button:hover{background:#143d55}
@media (max-width:640px){.news-btn{margin:0 0 18px 0}.news-head,.news-body,.news-foot{padding-left:18px;padding-right:18px}}
.news-body,.news-dlg{outline:none}

/* Numéro de version de l'application (js/version.js) */
footer .app-version { margin: 6px 0 0; font-size: 12px; color: var(--muted, #5b6b74); }
footer .app-version:empty { display: none; }
