/* ═══════════════════════════════════════════════════════════════════════════
   PARASAH HAFTARAH & CHABBAT — Feuille de style principale
   Palette : Crème #FFF8E7 · Violet #6B3FA0 · Or #C9A84C · Bleu royal #2055A4
   Polices : EB Garamond (titres) + Open Sans (corps)
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variables ────────────────────────────────────────────────────────── */
:root {
  --cream:       #FFF8E7;
  --cream-dark:  #F5EDD4;
  --cream-border:#E8D9B8;
  --violet:      #6B3FA0;
  --violet-dark: #4E2E78;
  --violet-light:#8B5FC0;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --gold-dark:   #A08030;
  --royal:       #2055A4;
  --royal-dark:  #163D7B;
  --royal-light: #4077C4;
  --text:        #2C2C2C;
  --text-light:  #5A5A5A;
  --white:       #FFFFFF;
  --shadow:      rgba(0,0,0,.12);
  --radius:      10px;
  --transition:  0.3s ease;
  --container:   1200px;
}

/* ─── Reset & base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,h2,h3,h4,h5 {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--royal-dark);
  line-height: 1.3;
}

a { color: var(--royal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main { flex: 1; padding: 2.5rem 0 3rem; }

/* ─── Typographie utilitaires ──────────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  color: var(--violet-dark);
  margin-bottom: 0.35rem;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ─── BARRE DE NAVIGATION ──────────────────────────────────────────────── */
.site-header {
  background: var(--violet-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream) !important;
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
}
.logo-heb {
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text { font-weight: 600; letter-spacing: .02em; }

/* Navigation */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--cream-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: .01em;
}
.site-nav a:hover,
.site-nav li.active a {
  background: var(--gold);
  color: var(--violet-dark);
}
.site-nav .nav-admin {
  background: rgba(201,168,76,.2);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.4);
}
.site-nav .nav-admin:hover {
  background: var(--gold);
  color: var(--violet-dark);
  border-color: var(--gold);
}
.admin-icon { margin-right: 0.3rem; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── BANNIÈRE KEN BURNS ───────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--violet-dark);
}

.banner-slideshow {
  position: absolute;
  inset: 0;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Durée totale = 5 slides × 8s = 40s */
@keyframes kb1 {
  0%   { opacity:0; transform: scale(1.00) translate(0%,  0%); }
  5%   { opacity:1; }
  20%  { opacity:1; transform: scale(1.08) translate(-1.5%,-1%); }
  25%  { opacity:0; }
  100% { opacity:0; transform: scale(1.08) translate(-1.5%,-1%); }
}
@keyframes kb2 {
  0%   { opacity:0; transform: scale(1.00) translate(0%,  0%); }
  5%   { opacity:1; }
  20%  { opacity:1; transform: scale(1.07) translate( 1.5%, 1%); }
  25%  { opacity:0; }
  100% { opacity:0; transform: scale(1.07) translate( 1.5%, 1%); }
}
@keyframes kb3 {
  0%   { opacity:0; transform: scale(1.00) translate(0%,  0%); }
  5%   { opacity:1; }
  20%  { opacity:1; transform: scale(1.09) translate(-1%,  1.5%); }
  25%  { opacity:0; }
  100% { opacity:0; transform: scale(1.09) translate(-1%,  1.5%); }
}
@keyframes kb4 {
  0%   { opacity:0; transform: scale(1.00) translate(0%,  0%); }
  5%   { opacity:1; }
  20%  { opacity:1; transform: scale(1.06) translate( 1%, -1%); }
  25%  { opacity:0; }
  100% { opacity:0; transform: scale(1.06) translate( 1%, -1%); }
}
@keyframes kb5 {
  0%   { opacity:0; transform: scale(1.00) translate(0%,  0%); }
  5%   { opacity:1; }
  20%  { opacity:1; transform: scale(1.08) translate( 0.5%, 0.5%); }
  25%  { opacity:0; }
  100% { opacity:0; transform: scale(1.08) translate( 0.5%, 0.5%); }
}

.slide-1 { animation: kb1 40s ease-in-out 0s  infinite; }
.slide-2 { animation: kb2 40s ease-in-out 8s  infinite; }
.slide-3 { animation: kb3 40s ease-in-out 16s infinite; }
.slide-4 { animation: kb4 40s ease-in-out 24s infinite; }
.slide-5 { animation: kb5 40s ease-in-out 32s infinite; }

/* Overlay texte sur la bannière */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom,
    rgba(42,20,72,.35) 0%,
    rgba(32,85,164,.55) 100%
  );
}
.hero-overlay .container { width: 100%; }
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,248,231,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  margin-bottom: 1rem;
  max-width: 580px;
}
.hero-current {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(201,168,76,.25);
  border: 1px solid rgba(201,168,76,.6);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  backdrop-filter: blur(4px);
}
.hero-current-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-light);
}
.hero-current-link {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-current-link:hover { color: var(--gold-light); }
.hero-current-heb {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--gold);
  direction: rtl;
}

/* Indicateurs de diapositives */
.slide-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slide-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.slide-dot.active, .slide-dot:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ─── CARTES PARASHAH ──────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.parashah-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.parashah-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(107,63,160,.15);
}
.parashah-card.card-current {
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
.parashah-card.card-current .card-header {
  background: linear-gradient(135deg, var(--violet-dark), var(--royal-dark));
}

.card-header {
  background: linear-gradient(135deg, var(--violet), var(--royal));
  padding: 1rem 1.25rem 0.85rem;
  color: var(--cream);
}
.card-week-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  opacity: 0.9;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-heb {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  direction: rtl;
  color: var(--gold);
  line-height: 1;
}
.card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream);
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.combined-badge, .special-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.combined-badge {
  background: rgba(201,168,76,.25);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.4);
}
.special-badge {
  background: rgba(255,255,255,.15);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,.3);
}
.card-note {
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-top: 0.4rem;
  font-style: italic;
}

.card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.reading-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}
.reading-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.reading-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--violet);
  margin-bottom: 1px;
}
.reading-ref {
  font-family: 'EB Garamond', serif;
  font-size: 0.97rem;
  color: var(--text);
}

/* Badges livres */
.book-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── FILTRES (livres) ─────────────────────────────────────────────────── */
.book-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
  align-items: center;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 0.25rem;
}
.filter-btn {
  padding: 0.3rem 0.9rem;
  border: 2px solid var(--cream-border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--cream);
}
.filter-btn[data-filter="Bereshit"].active { background:#8B4513; border-color:#8B4513; }
.filter-btn[data-filter="Shemot"].active   { background:var(--royal); border-color:var(--royal); }
.filter-btn[data-filter="Vayiqra"].active  { background:var(--violet); border-color:var(--violet); }
.filter-btn[data-filter="Bamidbar"].active { background:#1A6B3C; border-color:#1A6B3C; }
.filter-btn[data-filter="Devarim"].active  { background:var(--gold-dark); border-color:var(--gold-dark); }

/* ─── PROGRAMME TABLE ──────────────────────────────────────────────────── */
.programme-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.programme-table thead th {
  background: var(--violet-dark);
  color: var(--cream);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.programme-table tbody tr {
  border-bottom: 1px solid var(--cream-border);
  transition: background var(--transition);
}
.programme-table tbody tr:hover { background: rgba(107,63,160,.05); }
.programme-table tbody tr.row-current { background: rgba(201,168,76,.12); font-weight: 600; }
.programme-table tbody tr.row-special { background: rgba(32,85,164,.05); font-style: italic; color: var(--text-light); }
.programme-table td { padding: 0.65rem 1rem; vertical-align: middle; }
.prog-week { font-weight: 700; color: var(--violet); font-size: 0.85rem; }
.prog-date { color: var(--text-light); font-size: 0.85rem; white-space: nowrap; }
.prog-heb  { font-family: 'EB Garamond', serif; font-size: 1.2rem; direction: rtl; color: var(--gold-dark); }
.prog-name { font-weight: 600; color: var(--royal-dark); }
.prog-note { color: var(--text-light); font-size: 0.8rem; font-style: italic; }

/* ─── PAGE ACCUEIL ─────────────────────────────────────────────────────── */
.home-current-section {
  margin-bottom: 3rem;
}
.home-feature-card {
  background: linear-gradient(135deg, var(--violet-dark), var(--royal-dark));
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--cream);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  box-shadow: 0 4px 20px rgba(107,63,160,.25);
}
.home-feature-week {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.home-feature-title {
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.home-feature-date {
  color: rgba(255,248,231,.75);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.home-feature-readings { display: flex; flex-direction: column; gap: 0.6rem; }
.home-feature-heb {
  font-family: 'EB Garamond', serif;
  font-size: 4rem;
  line-height: 1;
  direction: rtl;
  color: var(--gold);
  text-align: right;
}
.home-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.home-section-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 4px var(--shadow);
}
.home-section-card:hover {
  border-color: var(--violet-light);
  box-shadow: 0 4px 16px rgba(107,63,160,.15);
  transform: translateY(-2px);
}
.home-section-icon { font-size: 2.2rem; }
.home-section-card h3 { font-size: 1.05rem; color: var(--violet-dark); }
.home-section-card p  { font-size: 0.83rem; color: var(--text-light); }

/* ─── PAGE COMMENTAIRES ────────────────────────────────────────────────── */
.comment-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 6px var(--shadow);
}
.comment-card h3 {
  font-size: 1.15rem;
  color: var(--violet-dark);
  margin-bottom: 0.3rem;
}
.comment-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.comment-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text);
}

/* ─── PAGE À PROPOS ────────────────────────────────────────────────────── */
.terminology-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
}
.terminology-table th {
  background: var(--violet);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.terminology-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--cream-border); }
.terminology-table tbody tr:hover { background: rgba(107,63,160,.05); }
.term-heb { font-family: 'EB Garamond', serif; font-size: 1.25rem; direction: rtl; color: var(--gold-dark); }
.term-latin { font-weight: 700; color: var(--royal-dark); }

/* ─── PANNEAU ADMIN ────────────────────────────────────────────────────── */
.admin-login-box {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  border-top: 4px solid var(--violet);
}
.admin-login-box h2 { text-align: center; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text); }
.form-control {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--cream-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
  background: var(--cream);
  transition: border-color var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--violet-light);
  box-shadow: 0 0 0 3px rgba(107,63,160,.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--violet);
  color: var(--cream);
  border-color: var(--violet);
}
.btn-primary:hover { background: var(--violet-dark); border-color: var(--violet-dark); color: var(--cream); }
.btn-gold {
  background: var(--gold);
  color: var(--violet-dark);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-danger {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}
.btn-danger:hover { background: #A93226; }
.btn-outline {
  background: transparent;
  color: var(--violet);
  border-color: var(--violet);
}
.btn-outline:hover { background: var(--violet); color: var(--cream); }
.btn-block { display: block; width: 100%; }

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.admin-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-border);
  overflow: hidden;
}
.admin-sidebar-header {
  background: var(--violet-dark);
  color: var(--cream);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-nav-list { list-style: none; }
.admin-nav-list li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--text);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--cream-border);
  transition: all var(--transition);
}
.admin-nav-list li a:hover,
.admin-nav-list li.active a {
  background: rgba(107,63,160,.08);
  color: var(--violet-dark);
  padding-left: 1.6rem;
}
.admin-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-border);
  padding: 1.75rem;
}
.admin-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--cream-border);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet-dark);
  font-family: 'EB Garamond', serif;
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 0.25rem;
}

.alert {
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-error   { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-info    { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-banner { height: 165px; }
  .hero-title  { font-size: 1.5rem; }
  .hero-current { display: none; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--violet-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav ul { flex-direction: column; padding: 0.5rem 1rem 1rem; gap: 0.15rem; }

  .admin-layout { grid-template-columns: 1fr; }

  .home-feature-card { grid-template-columns: 1fr; }
  .home-feature-heb  { font-size: 2.5rem; text-align: left; direction: ltr; }

  .programme-table { font-size: 0.8rem; }
  .programme-table .prog-heb { display: none; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

/* ─── Utilitaires divers ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

.divider {
  border: none;
  border-top: 1px solid var(--cream-border);
  margin: 2rem 0;
}

/* ════════════════════════════════════════════════════════════════════════
   COMPLÉMENT — programme, plan, commentaires, comptes, communautés, messagerie
   ════════════════════════════════════════════════════════════════════════ */

/* ─── PROGRAMME — barre & bascule de vue ──────────────────────────────── */
.prog-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.view-toggle { display: flex; gap: .4rem; }
.view-btn {
  background: var(--white);
  border: 1px solid var(--cream-border, #E5D5B0);
  color: var(--text, #1A2E5A);
  padding: .45rem .9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
}
.view-btn.active { background: var(--violet, #6B3FA0); color: #fff; border-color: var(--violet, #6B3FA0); }

.book-legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin: 1rem 0 1.25rem; font-size: .82rem; color: var(--text-light, #6A7EAA);
}
.legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ─── Tableau programme ───────────────────────────────────────────────── */
.programme-table { width: 100%; border-collapse: collapse; font-size: .85rem; background: var(--white); }
.programme-table th {
  background: var(--violet-dark, #4A2070); color: var(--cream, #FFF8E7);
  padding: .6rem .7rem; text-align: left; font-weight: 600; position: sticky; top: 0;
}
.programme-table td { padding: .55rem .7rem; border-bottom: 1px solid var(--cream-border, #E5D5B0); vertical-align: top; }
.programme-table tr:hover td { background: var(--cream, #FFF8E7); }
.prog-row.row-current td { background: rgba(201,168,76,.15); font-weight: 700; }
.prog-row.row-special td { color: var(--text-light, #6A7EAA); font-style: italic; }
.prog-week { font-weight: 700; white-space: nowrap; }
.prog-date, .prog-heb { white-space: nowrap; }
.prog-heb { font-family: 'EB Garamond', serif; color: var(--gold-dark, #9A7830); font-size: 1.05rem; }
.prog-ref { font-size: .8rem; color: var(--text-light, #6A7EAA); }
.prog-note { font-size: .8rem; color: var(--violet, #6B3FA0); }
.prog-para-link { color: var(--violet-dark, #4A2070); font-weight: 600; text-decoration: none; }
.prog-para-link:hover { text-decoration: underline; }

/* ─── Vue calendrier ──────────────────────────────────────────────────── */
.cal-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem;
}
.cal-cell {
  display: flex; flex-direction: column; gap: .2rem;
  background: var(--white); border-radius: 10px; padding: .75rem .8rem;
  text-decoration: none; color: var(--text, #1A2E5A);
  box-shadow: 0 1px 4px var(--shadow, rgba(32,85,164,.12)); transition: transform .15s;
}
.cal-cell:hover { transform: translateY(-3px); }
.cal-cell.cal-current { outline: 2px solid var(--gold, #C9A84C); }
.cal-week { font-weight: 700; font-size: .8rem; }
.cal-date { font-size: .75rem; color: var(--text-light, #6A7EAA); }
.cal-name { font-weight: 600; font-size: .92rem; font-family: 'EB Garamond', serif; }
.cal-heb { font-family: 'EB Garamond', serif; color: var(--gold-dark, #9A7830); font-size: 1.1rem; }

/* ─── Cartes parashah : pied & note ───────────────────────────────────── */
.card-footer { border-top: 1px solid var(--cream-border, #E5D5B0); padding: .75rem 1rem; margin-top: auto; }
.card-personal-note {
  background: rgba(107,63,160,.06); border-left: 3px solid var(--violet, #6B3FA0);
  border-radius: 6px; padding: .5rem .6rem; margin-bottom: .6rem;
}
.card-note-label { font-size: .72rem; font-weight: 700; color: var(--violet, #6B3FA0); }
.card-note-text { font-size: .82rem; font-style: italic; margin-top: .2rem; color: var(--text, #1A2E5A); }
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.btn-plan-link, .btn-note-link {
  font-size: .78rem; text-decoration: none; padding: .3rem .65rem; border-radius: 6px; font-weight: 600;
}
.btn-plan-link { background: var(--blue, #2055A4); color: #fff; }
.btn-note-link { border: 1px solid var(--violet, #6B3FA0); color: var(--violet, #6B3FA0); }
.parashah-card.has-comment { box-shadow: 0 0 0 2px rgba(107,63,160,.25), 0 2px 8px var(--shadow, rgba(32,85,164,.12)); }

/* ─── Commentaires ────────────────────────────────────────────────────── */
.comment-card {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 12px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem;
  box-shadow: 0 1px 6px var(--shadow, rgba(32,85,164,.10));
}
.comment-card.card-current { border-color: var(--gold, #C9A84C); box-shadow: 0 0 0 2px rgba(201,168,76,.3); }
.comment-card.comment-personal { border-left: 4px solid var(--violet, #6B3FA0); }
.comment-card h3 { color: var(--violet-dark, #4A2070); margin-bottom: .3rem; }
.comment-meta { font-size: .8rem; color: var(--text-light, #6A7EAA); margin-bottom: .75rem; }
.comment-body { line-height: 1.7; white-space: normal; }

/* ─── PLAN de lecture ─────────────────────────────────────────────────── */
.plan-parashah-hero {
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, var(--violet-dark, #4A2070), var(--violet, #6B3FA0));
  color: var(--cream, #FFF8E7); border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.plan-hero-center { text-align: center; }
.plan-para-heb { font-family: 'EB Garamond', serif; font-size: 2rem; color: var(--gold-light, #E0C070); }
.plan-para-title { display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; }
.plan-para-title h2 { color: #fff; }
.plan-para-meaning { font-style: italic; opacity: .9; margin-top: .35rem; }
.plan-week-info { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; }
.plan-week-num { font-weight: 700; }
.plan-week-date { opacity: .85; }
.plan-current-badge { color: var(--gold-light, #E0C070); font-weight: 700; font-size: .78rem; }
.plan-nav-btn {
  display: inline-block; margin-top: .6rem; background: rgba(255,255,255,.15); color: #fff;
  text-decoration: none; padding: .35rem .7rem; border-radius: 6px; font-size: .82rem; font-weight: 600;
}
.plan-nav-btn:hover { background: rgba(255,255,255,.28); }
.plan-hero-right { text-align: right; }
.plan-nav-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.plan-nav-row .plan-nav-btn { background: var(--violet, #6B3FA0); }
.plan-special-week {
  text-align: center; background: var(--white); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 14px; padding: 2.5rem 1.5rem;
}
.plan-readings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.plan-reading-card {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px;
  padding: 1rem 1.1rem; display: flex; gap: .75rem;
}
.plan-reading-torah { border-top: 4px solid #8B4513; }
.plan-reading-haftarah { border-top: 4px solid #2055A4; }
.plan-reading-nt { border-top: 4px solid #6B3FA0; }
.plan-reading-icon { font-size: 1.4rem; }
.plan-reading-content { flex: 1; }
.plan-reading-label { font-weight: 700; color: var(--violet-dark, #4A2070); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.plan-reading-ref { font-size: .95rem; margin: .25rem 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.plan-verse-edit-btn, .plan-verse-fetch-btn {
  background: var(--cream, #FFF8E7); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 5px; cursor: pointer; padding: .1rem .4rem; font-size: .8rem;
}
.plan-verse-text { white-space: pre-wrap; font-size: .9rem; line-height: 1.7; margin-top: .5rem; color: var(--text2, #3A4E7A); }
.plan-verse-textarea, .plan-note-textarea {
  width: 100%; border: 1px solid var(--cream-border, #E5D5B0); border-radius: 8px;
  padding: .6rem; font-family: inherit; font-size: .9rem; resize: vertical;
}
.plan-verse-form-actions, .plan-note-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.plan-notes-section, .plan-editorial-section {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.plan-notes-title { color: var(--violet-dark, #4A2070); margin-bottom: 1rem; }
.plan-existing-note {
  background: rgba(107,63,160,.06); border-left: 3px solid var(--violet, #6B3FA0);
  border-radius: 8px; padding: 1rem; margin-bottom: 1rem;
}
.plan-existing-note-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--violet, #6B3FA0); font-size: .82rem; margin-bottom: .5rem; }
.plan-edit-note-btn { background: none; border: 1px solid var(--violet, #6B3FA0); color: var(--violet, #6B3FA0); border-radius: 6px; padding: .2rem .55rem; cursor: pointer; font-size: .78rem; }
.plan-existing-note-body { white-space: pre-wrap; line-height: 1.7; }
.plan-note-hint { font-size: .78rem; color: var(--text-light, #6A7EAA); margin-top: .5rem; }
.plan-note-feedback { margin-top: .75rem; padding: .5rem .75rem; border-radius: 6px; font-size: .85rem; }
.plan-note-feedback.ok { background: #E8F5E9; color: #1B5E20; }
.plan-note-feedback.err { background: #FDECEA; color: #B71C1C; }
.plan-bottom-nav { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: space-between; margin: 1.5rem 0; }
.plan-week-selector { text-align: center; margin: 1.5rem 0; }

/* ─── Boutons (variantes complémentaires) ─────────────────────────────── */
.btn-sm { font-size: .8rem; padding: .3rem .7rem; }
.btn-lg { font-size: 1.05rem; padding: .7rem 1.5rem; }
.btn-block { display: block; width: 100%; }
.btn-gold { background: var(--gold, #C9A84C); color: var(--violet-dark, #4A2070); border: none; }
.btn-gold:hover { background: var(--gold-light, #E0C070); }
.btn-danger { background: #C0392B; color: #fff; border: none; }
.btn-danger:hover { background: #A93226; }

/* ─── Alertes & formulaires ───────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.alert-error { background: #FDECEA; color: #B71C1C; border: 1px solid #F5B7B1; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .35rem; color: var(--text, #1A2E5A); }
.form-control {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 8px; font-family: inherit; font-size: .95rem; background: #fff;
}
.form-control:focus { outline: none; border-color: var(--violet, #6B3FA0); box-shadow: 0 0 0 3px rgba(107,63,160,.15); }

/* ─── NAVIGATION — compte / connexion ─────────────────────────────────── */
.nav-account .nav-login,
.nav-account .nav-admin {
  background: var(--gold, #C9A84C); color: var(--violet-dark, #4A2070) !important;
  border-radius: 6px; padding: .35rem .8rem !important; font-weight: 700;
}
.nav-account .nav-login:hover, .nav-account .nav-admin:hover { background: var(--gold-light, #E0C070); }
.nav-messages { position: relative; font-size: 1.1rem; }
.msg-badge {
  position: absolute; top: -4px; right: -8px; background: #C0392B; color: #fff;
  border-radius: 999px; font-size: .65rem; padding: .05rem .35rem; font-weight: 700;
}

/* ─── BANNIÈRE — surimpression & points ───────────────────────────────── */
.hero-banner { position: relative; }
.banner-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); pointer-events: none;
}
.banner-heb { font-family: 'EB Garamond', serif; font-size: clamp(1.8rem, 5vw, 3rem); color: var(--gold-light, #E0C070); }
.banner-tagline { font-size: clamp(.9rem, 2.5vw, 1.2rem); margin-top: .4rem; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: .5rem; justify-content: center; }
.slide-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.slide-dot.active { background: var(--gold, #C9A84C); border-color: var(--gold, #C9A84C); }

/* ─── ACCUEIL — présentation / connexion ──────────────────────────────── */
.home-intro {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 16px; padding: 2rem; margin: 1.5rem 0; text-align: center;
}
.home-intro-heb { font-family: 'EB Garamond', serif; font-size: 2rem; color: var(--gold-dark, #9A7830); }
.home-intro-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--violet-dark, #4A2070); margin: .25rem 0 .75rem; }
.home-intro-lead { max-width: 640px; margin: 0 auto 1.25rem; line-height: 1.7; color: var(--text2, #3A4E7A); }
.home-intro-features { list-style: none; padding: 0; max-width: 540px; margin: 0 auto 1.5rem; text-align: left; }
.home-intro-features li { padding: .35rem 0; border-bottom: 1px dashed var(--cream-border, #E5D5B0); }
.home-intro-cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.home-intro-note { font-size: .82rem; color: var(--text-light, #6A7EAA); margin-top: 1rem; }
.home-welcome { background: rgba(107,63,160,.06); border-radius: 10px; padding: .9rem 1.25rem; margin: 1.25rem 0; }
.home-welcome-text { color: var(--violet-dark, #4A2070); }

/* ─── PAGE CONNEXION / INSCRIPTION ────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 1.5rem 0 3rem; }
.auth-card {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 16px; padding: 2rem; width: 100%; max-width: 440px;
  box-shadow: 0 8px 30px var(--shadow, rgba(32,85,164,.15));
}
.auth-head { text-align: center; margin-bottom: 1.25rem; }
.auth-heb { font-family: 'EB Garamond', serif; font-size: 1.8rem; color: var(--gold-dark, #9A7830); }
.auth-head h2 { color: var(--violet-dark, #4A2070); }
.auth-sub { font-size: .85rem; color: var(--text-light, #6A7EAA); margin-top: .35rem; }
.auth-tabs { display: flex; margin-bottom: 1.25rem; border: 1px solid var(--cream-border, #E5D5B0); border-radius: 10px; overflow: hidden; }
.auth-tab { flex: 1; background: var(--cream, #FFF8E7); border: none; padding: .6rem; cursor: pointer; font-weight: 600; color: var(--text, #1A2E5A); }
.auth-tab.active { background: var(--violet, #6B3FA0); color: #fff; }
.role-toggle { display: flex; gap: .5rem; margin-bottom: 1rem; }
.role-btn { flex: 1; background: var(--cream, #FFF8E7); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 8px; padding: .5rem; cursor: pointer; font-weight: 600; }
.role-btn.active { background: var(--blue, #2055A4); color: #fff; border-color: var(--blue, #2055A4); }
.auth-switch { text-align: center; font-size: .85rem; margin-top: 1rem; color: var(--text-light, #6A7EAA); }
.auth-switch a { color: var(--violet, #6B3FA0); font-weight: 600; }
.auth-hint { font-size: .78rem; color: var(--text-light, #6A7EAA); margin-top: .75rem; text-align: center; }
.auth-back { text-align: center; margin-top: 1.25rem; font-size: .85rem; }
.auth-back a { color: var(--text-light, #6A7EAA); }

/* ─── COMMUNAUTÉS ─────────────────────────────────────────────────────── */
.comm-head { margin-bottom: 1rem; }
.comm-section { margin: 1.5rem 0; }
.comm-section-title { color: var(--violet-dark, #4A2070); margin-bottom: 1rem; }
.comm-empty { color: var(--text-light, #6A7EAA); font-style: italic; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.member-card {
  background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px;
  padding: 1rem; display: flex; align-items: center; gap: .8rem;
}
.member-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--violet, #6B3FA0); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'EB Garamond', serif; font-size: 1.3rem; font-weight: 600;
}
.member-avatar.sm { width: 32px; height: 32px; font-size: 1rem; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 700; color: var(--text, #1A2E5A); }
.member-meta { font-size: .78rem; color: var(--text-light, #6A7EAA); }
.member-actions { display: flex; flex-direction: column; gap: .35rem; flex-shrink: 0; }

/* ─── MESSAGERIE ──────────────────────────────────────────────────────── */
.msg-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; min-height: 60vh; }
.msg-sidebar { background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px; overflow: hidden; }
.msg-sidebar-head { background: var(--violet-dark, #4A2070); color: #fff; padding: .7rem 1rem; font-weight: 600; }
.msg-friend-list { list-style: none; margin: 0; padding: 0; }
.msg-friend-list li a { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; text-decoration: none; color: var(--text, #1A2E5A); border-bottom: 1px solid var(--cream-border, #E5D5B0); }
.msg-friend-list li.active a, .msg-friend-list li a:hover { background: var(--cream, #FFF8E7); }
.msg-friend-name { font-weight: 600; }
.msg-thread { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px; overflow: hidden; }
.msg-thread-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--cream-border, #E5D5B0); }
.msg-notes-link { margin-left: auto; font-size: .8rem; color: var(--violet, #6B3FA0); text-decoration: none; }
.msg-messages { flex: 1; overflow-y: auto; padding: 1rem; max-height: 50vh; }
.msg-bubble-row { display: flex; margin-bottom: .6rem; }
.msg-bubble-row.mine { justify-content: flex-end; }
.msg-bubble { max-width: 75%; padding: .55rem .8rem; border-radius: 12px; background: var(--cream, #FFF8E7); }
.msg-bubble-row.mine .msg-bubble { background: var(--violet, #6B3FA0); color: #fff; }
.msg-body { line-height: 1.5; white-space: pre-wrap; }
.msg-ts { font-size: .68rem; opacity: .7; margin-top: .25rem; }
.msg-compose { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--cream-border, #E5D5B0); }
.msg-compose textarea { flex: 1; border: 1px solid var(--cream-border, #E5D5B0); border-radius: 8px; padding: .5rem; font-family: inherit; resize: none; }
.msg-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--text-light, #6A7EAA); text-align: center; padding: 2rem; }

/* ─── ADMIN — disposition ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }
.admin-sidebar { background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px; overflow: hidden; height: fit-content; }
.admin-sidebar-header { background: var(--violet-dark, #4A2070); color: #fff; padding: .7rem 1rem; font-weight: 600; }
.admin-nav-list { list-style: none; margin: 0; padding: 0; }
.admin-nav-list li a { display: block; padding: .6rem 1rem; text-decoration: none; color: var(--text, #1A2E5A); border-bottom: 1px solid var(--cream-border, #E5D5B0); }
.admin-nav-list li.active a, .admin-nav-list li a:hover { background: var(--cream, #FFF8E7); font-weight: 600; }
.admin-panel { background: var(--white); border: 1px solid var(--cream-border, #E5D5B0); border-radius: 12px; padding: 1.5rem; }
.admin-panel h2 { color: var(--violet-dark, #4A2070); margin-bottom: 1rem; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .9rem; }
.stat-card { background: var(--cream, #FFF8E7); border-radius: 10px; padding: 1rem; text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--violet, #6B3FA0); font-family: 'EB Garamond', serif; }
.stat-label { font-size: .78rem; color: var(--text-light, #6A7EAA); }
.char-counter { display: block; font-size: .75rem; margin-top: .2rem; }

/* ─── Responsive complémentaire ───────────────────────────────────────── */
@media (max-width: 820px) {
  .plan-parashah-hero { grid-template-columns: 1fr; text-align: center; }
  .plan-hero-right { text-align: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-sidebar { max-height: 200px; overflow-y: auto; }
}

/* ════════════════════════════════════════════════════════════════════════
   EN-TÊTE / NAVIGATION — refonte robuste (menu connecté, sous-menus, mobile)
   ════════════════════════════════════════════════════════════════════════ */
.site-header { background: var(--violet-dark, #4A2070); position: relative; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: nowrap; max-width: 1240px; margin: 0 auto; padding: .5rem 1.1rem;
}
.site-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex-shrink: 0; }
.site-logo .logo-heb { font-family: 'EB Garamond', serif; color: var(--gold, #C9A84C); font-size: 1.6rem; line-height: 1; }
.site-logo .logo-text { color: #fff; font-family: 'EB Garamond', serif; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }

.site-nav { display: flex; min-width: 0; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .1rem; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: flex; align-items: center; gap: .25rem; white-space: nowrap;
  color: var(--cream, #FFF8E7); text-decoration: none; padding: .5rem .6rem;
  border-radius: 7px; font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s;
}
.site-nav > ul > li > a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav > ul > li.active > a { color: var(--gold, #C9A84C); }
.dropdown-arrow { font-size: .7em; opacity: .8; }

.nav-dropdown {
  list-style: none; margin: 0; padding: .35rem; position: absolute; top: 100%; right: 0;
  min-width: 200px; background: var(--violet-dark, #4A2070);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4); display: none; z-index: 300;
}
.nav-has-dropdown:hover > .nav-dropdown { display: block; }
.nav-dropdown li a { display: block; white-space: nowrap; color: var(--cream, #FFF8E7); text-decoration: none; padding: .55rem .8rem; border-radius: 7px; font-size: 13.5px; }
.nav-dropdown li a:hover { background: rgba(255,255,255,.16); color: #fff; }

.nav-messages { position: relative; font-size: 1.15rem; }
.msg-badge { position: absolute; top: -2px; right: -6px; background: #C0392B; color: #fff; border-radius: 999px; font-size: .62rem; padding: .04rem .32rem; font-weight: 700; }
.nav-account .nav-login, .nav-account .nav-admin {
  background: var(--gold, #C9A84C); color: var(--violet-dark, #4A2070) !important;
  border-radius: 7px; padding: .42rem .7rem !important; font-weight: 700;
}
.nav-account .nav-login:hover, .nav-account .nav-admin:hover { background: var(--gold-light, #E0C070); }

/* Hamburger (mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; flex-shrink: 0; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--violet-dark, #4A2070); display: none; box-shadow: 0 14px 30px rgba(0,0,0,.35); z-index: 250; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem .75rem; justify-content: flex-start; }
  .site-nav > ul > li > a { padding: .8rem .6rem; font-size: 15px; }
  .nav-dropdown { position: static; display: block; min-width: 0; box-shadow: none; border: none; background: rgba(0,0,0,.2); margin: .2rem 0 .4rem .6rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   PIED DE PAGE — 3 encadrés (Menu · Livres & Terminologie · Contact)
   ════════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--violet-dark, #4A2070); color: var(--cream, #FFF8E7); margin-top: 3rem; padding: 2rem 0 1.25rem; }
.footer-3 { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 1.25rem; }
.footer-box {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 1.25rem 1.4rem;
}
.footer-box h4 { color: var(--gold-light, #E0C070); font-size: 1.05rem; margin-bottom: .85rem; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: .5rem; }
.footer-box h5 { color: #fff; font-size: .9rem; margin-bottom: .5rem; }
.footer-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: var(--cream, #FFF8E7); text-decoration: none; font-size: .88rem; opacity: .9; }
.footer-links a:hover { color: var(--gold-light, #E0C070); opacity: 1; }
.footer-desc { font-size: .86rem; line-height: 1.6; opacity: .9; margin-bottom: .85rem; }
.footer-term { font-size: .82rem; margin-bottom: .35rem; opacity: .92; }
.footer-term span { color: var(--gold-light, #E0C070); font-family: 'EB Garamond', serif; margin-right: .35rem; }
.footer-term a { color: var(--gold-light, #E0C070); text-decoration: none; }
.footer-legal-note { font-size: .76rem; opacity: .6; margin-top: .75rem; font-style: italic; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; opacity: .9; }
.footer-heb { font-family: 'EB Garamond', serif; color: var(--gold-light, #E0C070); margin-left: .4rem; }

@media (max-width: 860px) {
  .footer-3 { grid-template-columns: 1fr; }
  .footer-two { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════
   CORRECTIFS MENU (priorité forte) :
   - sous-menus masqués sauf au survol du parent
   - élément actif/au survol toujours LISIBLE (texte doré sur barre violette)
   - boutons compte (Connexion / Admin) conservent leur fond doré
   ════════════════════════════════════════════════════════════════════════ */
.site-header .site-nav li .nav-dropdown { display: none !important; }
.site-header .site-nav li.nav-has-dropdown:hover > .nav-dropdown,
.site-header .site-nav li.nav-has-dropdown:focus-within > .nav-dropdown,
.site-header .site-nav li.nav-has-dropdown.open > .nav-dropdown { display: block !important; }

.site-header .site-nav > ul > li > a { color: var(--cream, #FFF8E7) !important; background: transparent; }
.site-header .site-nav > ul > li > a:hover { background: rgba(255,255,255,.14); color: #fff !important; }
.site-header .site-nav > ul > li.active > a {
  color: var(--gold-light, #E0C070) !important;
  background: transparent !important;
  box-shadow: inset 0 -2px 0 var(--gold, #C9A84C);
}

/* Boutons compte : fond doré + texte foncé, lisibles même si "actifs" */
.site-header .site-nav .nav-account .nav-login,
.site-header .site-nav .nav-account .nav-admin,
.site-header .site-nav .nav-account.active .nav-login,
.site-header .site-nav .nav-account.active .nav-admin {
  background: var(--gold, #C9A84C) !important;
  color: var(--violet-dark, #4A2070) !important;
  box-shadow: none !important;
}
.site-header .site-nav .nav-account .nav-login:hover,
.site-header .site-nav .nav-account .nav-admin:hover {
  background: var(--gold-light, #E0C070) !important;
}
/* Icône messagerie : texte clair, pas de fond */
.site-header .site-nav .nav-account .nav-messages {
  background: transparent !important; color: var(--cream, #FFF8E7) !important;
}

/* Sur mobile : sous-menus déroulés dans le menu hamburger */
@media (max-width: 980px) {
  .site-header .site-nav li .nav-dropdown { display: block !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   SUIVI DE LECTURE / PROGRESSION
   ════════════════════════════════════════════════════════════════════════ */
.read-badge { display: inline-block; background: #1A6B3C; color: #fff; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.parashah-card.is-read { box-shadow: inset 4px 0 0 #1A6B3C, 0 2px 8px var(--shadow, rgba(32,85,164,.12)); }
.prog-unread { color: var(--text-light, #6A7EAA); font-size: .85rem; }

/* Bouton marquer comme lue */
.btn-read {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  background: var(--white, #fff); color: var(--violet-dark, #4A2070);
  border: 1px solid var(--violet, #6B3FA0); border-radius: 8px;
  padding: .5rem .9rem; font-weight: 600; font-size: .9rem; font-family: inherit; transition: all .15s;
}
.btn-read:hover { background: rgba(107,63,160,.08); }
.btn-read.done { background: #1A6B3C; border-color: #1A6B3C; color: #fff; }
.btn-read.sm { padding: .3rem .6rem; font-size: .8rem; }

.plan-read-bar {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  background: var(--white, #fff); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: 1.5rem;
}
.plan-read-label { font-weight: 700; color: var(--violet-dark, #4A2070); }

/* Résumé de progression (page + accueil) */
.prog-summary, .home-progress {
  background: var(--white, #fff); border: 1px solid var(--cream-border, #E5D5B0);
  border-radius: 12px; padding: 1.25rem 1.4rem; margin-top: 1rem;
}
.prog-summary-top, .home-progress-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .85rem;
}
.prog-count { font-size: 2rem; font-weight: 700; color: var(--violet, #6B3FA0); font-family: 'EB Garamond', serif; }
.prog-total { color: var(--text-light, #6A7EAA); margin-left: .35rem; }
.prog-bar { background: var(--cream2, #FFF0D0); border-radius: 999px; height: 22px; overflow: hidden; border: 1px solid var(--cream-border, #E5D5B0); }
.prog-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--violet, #6B3FA0), var(--gold, #C9A84C));
  color: #fff; font-size: .72rem; font-weight: 700; text-align: right; padding-right: 8px; line-height: 22px;
  white-space: nowrap; min-width: 28px; transition: width .4s ease;
}
.prog-done-badge { color: #1A6B3C; font-weight: 700; }
.home-progress { margin-top: 1rem; }
.home-progress-link { margin-top: .6rem; font-size: .85rem; }
.home-progress-link a { color: var(--violet, #6B3FA0); font-weight: 600; text-decoration: none; }

/* Colonne LU du programme + coche calendrier */
.prog-lu-th, .prog-lu { text-align: center; width: 48px; }
.lu-check {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: 700;
  font-size: .85rem; line-height: 1; font-family: inherit; transition: all .15s;
  background: #fff; color: var(--violet, #6B3FA0); border: 1px solid var(--violet, #6B3FA0);
}
.lu-check:hover { background: rgba(107,63,160,.1); }
.lu-check.done { background: #1A6B3C; border-color: #1A6B3C; color: #fff; }
.cal-cell.cal-read { box-shadow: inset 0 0 0 2px #1A6B3C; }
.cal-check { color: #1A6B3C; font-weight: 700; }

/* Préférences */
.pref-card { background: var(--white,#fff); border: 1px solid var(--cream-border,#E5D5B0); border-radius: 12px; padding: 1.4rem; margin-bottom: 1.25rem; max-width: 760px; }
.pref-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pref-title { color: var(--violet-dark,#4A2070); margin-bottom: .4rem; }
.pref-desc { color: var(--text2,#3A4E7A); line-height: 1.6; }
.pref-badge { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pref-badge.on { background: #E8F5E9; color: #1B5E20; }
.pref-badge.off { background: #FDECEA; color: #B71C1C; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }
.pager-btn { background: var(--white,#fff); border: 1px solid var(--violet,#6B3FA0); color: var(--violet,#6B3FA0); text-decoration: none; padding: .4rem .9rem; border-radius: 8px; font-weight: 600; font-size: .85rem; }
.pager-btn:hover { background: rgba(107,63,160,.08); }
.pager-info { color: var(--text-light,#6A7EAA); font-size: .85rem; }
