/* ═══════════════════════════════════════════════
   PRIONSENLIGNE — CSS Principal
   Police : Cormorant Garamond (titres) + Outfit (corps)
   Palette : Nuit marine #1a2744, Or #c9a84c, Crème #f5f0e8
═══════════════════════════════════════════════ */

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

:root {
  --navy:      #1a2744;
  --navy-mid:  #243459;
  --navy-soft: #2e4070;
  --gold:      #c9a84c;
  --gold-pale: #e8d89a;
  --cream:     #f5f0e8;
  --cream-mid: #ede5d4;
  --text:      #1e1c18;
  --text-mid:  #4a4640;
  --text-soft: #7a756e;
  --border:    rgba(30,28,24,.1);
  --border-mid:rgba(30,28,24,.18);

  /* Variables utilisées dans le chat & composants */
  --surface:    #1a2744;
  --font-ui:    'Outfit', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  --laudes:    #534AB7;
  --matin:     #0F6E56;
  --messe:     #854F0B;
  --chapelet:  #993556;
  --vepres:    #185FA5;
  --soiree:    #9E4A1F;
  --complies:  #444441;

  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background: var(--cream);
}

body {
  min-height: 100vh;
  background: var(--cream);
  padding-bottom: 80px;
  font-size: 15px; /* base accessible pour personnes âgées */
  overflow-x: hidden; /* empêche tout débordement horizontal */
}

/* Styles de focus pour la navigation clavier */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Typo ── */
h1, h2, h3, .logo-name, .day-feast, .month-title, .src-name, .tl-prayer {
  font-family: 'Cormorant Garamond', serif;
}


/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

/* Bannière hors-ligne — bandeau ambré sous le header, en flux normal (pousse
   le contenu vers le bas, aucun chevauchement). Sticky pour rester visible. */
.offline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  position: sticky;
  top: 60px;
  z-index: 290;
  padding: 9px 16px;
  background: #8a5a00;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.offline-banner[hidden] { display: none; }
.offline-banner > i { font-size: 14px; flex-shrink: 0; }

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none; /* quand utilisé comme <a> */
  cursor: pointer;
}
.logo:hover .logo-img { opacity: 0.8; transition: opacity .18s; }

/* Nom du site à côté du logo (lien retour accueil) */
.logo-site-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: .02em;
  opacity: .88;
  transition: opacity .18s;
  white-space: nowrap;
}
.logo-home-link:hover .logo-site-name { opacity: 1; }
@media (max-width: 480px) {
  .logo-site-name { display: none; } /* masqué sur petit mobile pour économiser l'espace */
}

.logo-cross {
  width: 20px;
  height: 20px;
  position: relative;
}
.cross-v {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 3px; height: 20px;
  background: var(--gold);
  border-radius: 2px;
}
.cross-h {
  position: absolute;
  top: 6px; left: 0;
  width: 20px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.logo-name {
  font-size: 18px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: .02em;
}

/* Nav onglets desktop */
.main-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-tab {
  background: transparent;
  border: none;
  color: rgba(245,240,232,.55);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
}
.nav-tab:hover { color: var(--cream); background: rgba(255,255,255,.07); }
.nav-tab.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 500;
}

/* User / Burger */
.header-user {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.hamburger-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--cream);
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 15px;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.hamburger-btn:hover { background: rgba(255,255,255,.2); }

/* Overlay fond sombre derrière le drawer (mobile) */
.hamburger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 249;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.hamburger-overlay.show { opacity: 1; pointer-events: all; }

/* ── Dropdown / drawer burger ── */
.hamburger-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  padding: 6px 0;
  min-width: 190px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  z-index: 300;
  /* Animation douce : pas de display:none — utilise opacity + transform */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: opacity .18s ease, transform .18s ease;
}
/* Visible */
.hamburger-menu:not(.hidden) {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* ── Labels de section dans le drawer ── */
.hm-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-soft);
  padding: 10px 18px 3px;
}
/* La section navigation est cachée sur desktop (bottom-nav non présente) */
.hm-nav-label, .hm-nav-item, .hm-nav-divider { display: none; }
.hm-nav-item.hm-active { background: var(--cream-mid); color: var(--navy); font-weight: 500; }

.hm-item {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .1s;
  min-height: 44px; /* cible tactile accessible */
}
.hm-item:hover { background: var(--cream-mid); color: var(--navy); }
.hm-item i { color: var(--text-soft); width: 16px; text-align: center; font-size: 14px; }
.hm-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Lien "Accueil" dans le menu burger — se comporte comme les autres items */
a.hm-home-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
a.hm-home-link:hover { background: var(--cream-mid); color: var(--navy); }
a.hm-home-link i { color: var(--text-soft); width: 16px; text-align: center; font-size: 14px; }


/* ══════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════ */
.site-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 32px;
}

.tab-section { display: none; animation: fadeIn .25s ease; }
.tab-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* ══════════════════════════════════════════════
   AUJOURD'HUI
══════════════════════════════════════════════ */

/* Bannière du jour */
.day-banner {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.day-date { color: rgba(201,168,76,.8); font-size: 12px; margin-bottom: 4px; }
.day-feast { color: var(--gold); font-size: 22px; font-weight: 400; }
.feast-pill {
  background: rgba(201,168,76,.15);
  color: var(--gold);
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.day-banner-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.day-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,.4);
  background: rgba(201,168,76,.14);
  color: var(--gold);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.day-share-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.day-share-btn.sharing { opacity: .55; pointer-events: none; }
.day-share-btn.sharing i { animation: tvSpin .8s linear infinite; }

/* Bouton « Écouter » (lecture à voix haute) — réutilisable */
.pel-listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,.45);
  background: rgba(201,168,76,.12);
  color: var(--gold);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pel-listen-btn:hover { background: var(--gold); color: #14110e; border-color: var(--gold); }
.pel-listen-btn.reading {
  background: var(--gold); color: #14110e; border-color: var(--gold);
}
.pel-listen-btn.reading i { animation: listenPulse 1.1s ease-in-out infinite; }
@keyframes listenPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* En-tête bréviaire : aligne Écouter + réglages + Fermer */
.breviary-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pel-voice-cfg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.4);
  background: rgba(201,168,76,.10);
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  transition: all .15s;
  flex-shrink: 0;
}
.pel-voice-cfg:hover { background: var(--gold); color: #14110e; }

/* Fenêtre de réglages de la voix */
.voice-modal {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.voice-modal.hidden { display: none; }
.voice-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.voice-panel {
  position: relative; width: 100%; max-width: 420px;
  background: #1e1c18; color: #fff; border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  padding: 18px 20px 20px; max-height: 80vh; overflow-y: auto;
  border: 1px solid rgba(201,168,76,.25);
}
.voice-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.voice-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px; color: var(--gold); }
.voice-title i { margin-right: 6px; }
.voice-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); cursor: pointer; font-size: 14px; }
.voice-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.voice-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); margin: 14px 0 8px; font-weight: 600; }
.voice-hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: rgba(255,255,255,.35); }
.voice-rates { display: flex; gap: 8px; }
.voice-rates button {
  flex: 1; padding: 9px 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.7);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.voice-rates button:hover { border-color: var(--gold); color: #fff; }
.voice-rates button.active { background: rgba(201,168,76,.18); border-color: var(--gold); color: var(--gold); font-weight: 600; }

/* Taille du texte (accessibilité) — mêmes pastilles que la vitesse */
.voice-textsize { display: flex; gap: 8px; }
.voice-textsize button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 8px 0; border-radius: 9px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.7);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.voice-textsize button:hover { border-color: var(--gold); color: #fff; }
.voice-textsize button.active { background: rgba(201,168,76,.18); border-color: var(--gold); color: var(--gold); font-weight: 600; }
.voice-textsize .ts-a { line-height: 1; font-weight: 700; }
.voice-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.voice-item {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: rgba(255,255,255,.85);
  font-family: 'Outfit', sans-serif; font-size: 14px; cursor: pointer; text-align: left; transition: all .15s;
}
.voice-item:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.voice-item.active { border-color: var(--gold); background: rgba(201,168,76,.14); color: #fff; }
.voice-item-name { flex: 1; }
.voice-item .fa-check { color: var(--gold); font-size: 12px; }
.voice-badge { font-size: 10px; background: rgba(108,193,108,.2); color: #8fd48f; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.voice-empty { font-size: 13px; color: rgba(255,255,255,.5); padding: 10px 0; }
.voice-test {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 14px; padding: 12px; border-radius: 10px; border: none;
  background: var(--gold); color: #14110e; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: filter .15s;
}
.voice-test:hover { filter: brightness(1.08); }
body.voice-modal-open { overflow: hidden; }
/* Ligne d'actions du détail calendrier (Écouter + Partager) */
.dd-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* Boutons de partage dans le panneau détail du calendrier (saints) */
.dd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(201,168,76,.45);
  background: rgba(201,168,76,.10);
  color: var(--gold);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.dd-share-btn:hover { background: var(--gold); color: #14110e; border-color: var(--gold); }
.dd-share-btn.sharing { opacity: .55; pointer-events: none; }
.dd-share-btn.sharing i { animation: tvSpin .8s linear infinite; }
/* Petit bouton de partage rond (saints régionaux, autres saints) */
.dd-share-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.4);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 11px;
  flex-shrink: 0;
  transition: all .15s;
}
.dd-share-mini:hover { background: var(--gold); color: #14110e; }
.dd-share-mini.sharing { opacity: .5; pointer-events: none; }

/* Layout 2 colonnes Aujourd'hui (desktop) */
.today-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 4px;
}

/* Filtres */
.prayer-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* #7 — Indice « offices favoris mémorisés » (bannière au-dessus de la rangée
   filtres + timeline, pour ne pas casser la grille flex à 2 colonnes). */
.pf-saved-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 8px 12px;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--gold-pale);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--text-mid);
}
.pf-saved-hint > i { color: var(--gold); flex: 0 0 auto; }
.pf-saved-hint > span { flex: 1 1 160px; }
.pf-saved-reset {
  flex: 0 0 auto;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.pf-saved-reset:hover { background: #16304f; }

.pf {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: white;
  cursor: pointer;
  color: var(--text-soft);
  transition: all .18s;
  min-height: 36px; /* cible tactile mobile */
}
.pf:hover { border-color: var(--text-mid); color: var(--text); }
.pf.active { color: white; border-color: transparent; }

.pf-all.active     { background: var(--navy); }
.pf-laudes.active  { background: var(--laudes); }
.pf-matin.active   { background: var(--matin); }
.pf-messe.active   { background: var(--messe); }
.pf-chapelet.active{ background: var(--chapelet); }
.pf-vepres.active  { background: var(--vepres); }
.pf-soiree.active  { background: var(--soiree); }
.pf-complies.active{ background: var(--complies); }

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
  min-width: 0;
  /* Espace bas pour que les boutons flottants (Grégorien + FAB Chapelet)
     ne masquent jamais les actions du dernier office. */
  padding-bottom: 96px;
}

.tl-item {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left-width: 4px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform .15s, box-shadow .15s;
}
.tl-item:hover { transform: translateX(2px); box-shadow: 0 3px 14px rgba(0,0,0,.07); }

.tl-item[data-type="laudes"]   { border-left-color: var(--laudes); }
.tl-item[data-type="matin"]    { border-left-color: var(--matin); }
.tl-item[data-type="messe"]    { border-left-color: var(--messe); }
.tl-item[data-type="chapelet"] { border-left-color: var(--chapelet); }
.tl-item[data-type="vepres"]   { border-left-color: var(--vepres); }
.tl-item[data-type="soiree"]   { border-left-color: var(--soiree); }
.tl-item[data-type="complies"] { border-left-color: var(--complies); }

.tl-time {
  font-size: 13px;
  color: var(--text-soft);
  min-width: 50px;
  padding-top: 3px;
  flex-shrink: 0;
  line-height: 1.3;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.tl-time-h {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}
.tl-dur {
  font-size: 10.5px;
  color: var(--text-soft);
  opacity: .8;
  font-weight: 400;
}

/* Bannière de localisation horaire (visible hors zone Paris) */
.tl-tz-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin: 0 0 10px;
  background: linear-gradient(135deg, rgba(99,102,241,.10), rgba(99,102,241,.04));
  border: 1px solid rgba(99,102,241,.30);
  border-left-width: 3px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.45;
}
.tl-tz-banner > i { color: #6366f1; font-size: 14px; }
.tl-tz-text { flex: 1; }
.tl-tz-text strong { color: var(--navy); }
.tl-tz-close {
  background: none; border: none;
  color: var(--text-soft);
  font-size: 18px; line-height: 1;
  padding: 0 6px; cursor: pointer;
}
.tl-tz-close:hover { color: var(--navy); }

/* Petit badge "10h00 Paris" à côté de l'heure locale */
.tl-time-paris {
  font-size: 9.5px;
  color: var(--text-soft);
  font-style: italic;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0,0,0,.04);
  margin-top: 1px;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Toggle "Heure locale / Heure de Paris" dans le profil */
.prof-tz-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.prof-tz-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.prof-tz-opt:hover { border-color: var(--gold); }
.prof-tz-opt.active,
.prof-tz-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,.08);
}
.prof-tz-opt input { accent-color: var(--gold); }
.prof-tz-opt span { display: flex; flex-direction: column; }
.prof-tz-opt strong { font-size: 12.5px; color: var(--navy); }
.prof-tz-opt small  { font-size: 10.5px; color: var(--text-soft); }

/* Bouton calendrier compact (par item) */
.tl-cal-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-soft);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 12px;
  margin-top: 2px;
  opacity: .55;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.tl-cal-btn:hover {
  background: rgba(201,168,76,.10);
  border-color: rgba(201,168,76,.30);
  color: var(--gold);
  opacity: 1;
}

/* Barre globale "Ajouter ma journée" */
.tl-export-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(201,168,76,.07), rgba(201,168,76,.02));
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--r-lg, 12px);
  margin: 8px 0 12px;
}
.tl-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--gold);
  border: none;
  border-radius: 22px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.tl-export-btn:hover  { background: #d4af5a; }
.tl-export-btn:active { transform: scale(.97); }
.tl-export-btn > i    { font-size: 13px; }
.tl-export-hint {
  font-size: 11.5px;
  color: var(--text-soft);
  font-style: italic;
  flex: 1;
}
@media (max-width: 540px) {
  .tl-export-bar { flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
  .tl-export-hint { font-size: 11px; }
}

/* Bouton info à côté du titre */
.tl-info-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  color: var(--text-soft);
  vertical-align: middle;
  transition: color .15s;
  margin-left: 2px;
}
.tl-info-btn:hover { color: var(--gold); }
.tl-info-btn.open { color: var(--gold); }

/* Description dépliée (ancien) — conservée pour rétrocompat éventuelle */
.tl-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-mid);
  background: var(--cream);
  border-left: 2px solid var(--gold-pale);
  padding: 8px 12px;
  margin: 6px 0 10px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
}
.tl-desc[hidden] { display: none; }

/* Description inline (toujours visible, discrète, sous le titre) */
/* Bandeau pastoral en TÊTE de timeline — affiché une seule fois si la
   journée contient au moins une messe. Cf. section "Notre position" À propos. */
.tl-pastoral-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(90deg, rgba(201,168,76,.12), rgba(201,168,76,.04));
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 0 0 14px;
}
.tl-pastoral-icon {
  font-size: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.tl-pastoral-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.tl-pastoral-text strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.tl-pastoral-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 1px;
}
.tl-pastoral-link:hover { color: var(--gold); border-color: var(--gold); }
.tl-pastoral-link i { color: var(--gold); }
@media (max-width: 540px) {
  .tl-pastoral-banner { padding: 10px 12px; gap: 9px; }
  .tl-pastoral-text { font-size: 12.5px; }
}

/* Modale TV — lecteur vidéo iframe (KTO, etc.) */
.tv-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tv-modal.hidden { display: none; }
.tv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tv-modal-panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #1e1c18;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
}
.tv-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #14110e;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tv-modal-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.tv-modal-channel {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--gold);
}
.tv-modal-prayer {
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tv-modal-external,
.tv-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  transition: all .15s;
  flex-shrink: 0;
}
.tv-modal-external:hover,
.tv-modal-close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.tv-modal-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}
.tv-modal-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Spinner pendant la résolution de l'ID live (YouTube) */
.tv-modal-frame-wrap.tv-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: tvSpin 0.8s linear infinite;
}
@keyframes tvSpin { to { transform: rotate(360deg); } }
body.tv-modal-open { overflow: hidden; }

/* Bannière de secours sous le player (si l'embed est bloqué par le navigateur) */
.tv-modal-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #14110e;
  border-top: 1px solid rgba(255,255,255,.08);
}
.tv-modal-fallback > span {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  flex: 1;
  min-width: 180px;
}
.tv-modal-fallback-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ff0000;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s;
}
.tv-modal-fallback-btn:hover { filter: brightness(1.1); }
@media (max-width: 540px) {
  /* Pleine largeur edge-to-edge, mais hauteur = contenu (pas d'étirement
     plein écran qui laisserait un grand vide noir sous le player). */
  .tv-modal { padding: 0; align-items: center; }
  .tv-modal-panel { border-radius: 0; max-width: 100%; width: 100%; }
}

/* Variante TV des src-buttons : icône TV au lieu de play */
.wc-src-btn.wc-tv {
  background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
  color: #fff;
}
.wc-src-btn.wc-tv:hover { filter: brightness(1.1); }
.tl-src.tv {
  background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%);
  color: #fff;
  border-color: transparent;
}
.tl-src.tv:hover { filter: brightness(1.1); }

/* Item 'Soutenir le projet' dans le menu hamburger — accent doré discret */
.hm-support {
  color: var(--gold);
}
.hm-support:hover { background: rgba(201,168,76,.08); }
.hm-support > i { color: var(--gold); }

/* Entrée « Pour les paroisses » + badge « affiche à imprimer » */
.hm-paroisses > i { color: var(--gold); }
.hm-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(201,168,76,.18);
  color: #8a5a00;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
  vertical-align: middle;
}

/* Section 'Soutenir le projet' dans À propos */
.about-support {
  background: linear-gradient(135deg, rgba(201,168,76,.08), rgba(201,168,76,.02));
  border: 1px solid rgba(201,168,76,.2);
  padding: 18px 20px;
  border-radius: 10px;
  margin-top: 12px;
}
.about-support h3 { color: var(--gold); }
.about-support p { margin: 8px 0; }
.about-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #1e1c18;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 8px;
  transition: all .15s;
  box-shadow: 0 2px 12px rgba(201,168,76,.25);
}
.about-support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
  filter: brightness(1.05);
}
.about-support-note {
  font-size: 11.5px !important;
  color: rgba(255,255,255,.5) !important;
  font-style: italic;
  margin-top: 10px !important;
}

/* Section 'Notre position' dans À propos — style distinctif */
.about-position {
  background: rgba(201,168,76,.05);
  border-left: 3px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-top: 8px;
}
.about-position h3 { color: var(--gold); }
.about-position p:first-of-type { font-weight: 500; }
.about-position ul {
  margin: 8px 0 12px 20px;
  padding: 0;
}
.about-position ul li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.tl-desc-inline {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
  font-style: italic;
  margin: 1px 0 6px;
  /* Limite à 2 lignes max, ellipse, pour ne pas alourdir */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
/* Au survol : développe le texte complet (pour lecture optionnelle) */
.tl-item:hover .tl-desc-inline,
.tl-item:focus-within .tl-desc-inline {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.tl-marker {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.tl-marker.laudes   { background: var(--laudes); }
.tl-marker.matin    { background: var(--matin); }
.tl-marker.messe    { background: var(--messe); }
.tl-marker.chapelet { background: var(--chapelet); }
.tl-marker.vepres   { background: var(--vepres); }
.tl-marker.soiree   { background: var(--soiree); }
.tl-marker.complies { background: var(--complies); }

.tl-body { flex: 1; min-width: 0; }
.tl-prayer { font-size: 17px; font-weight: 400; color: var(--text); margin-bottom: 6px; }

/* Sources cliquables */
.tl-sources {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tl-src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.4;
  min-height: 32px; /* cible tactile */
}

/* Drapeau du pays de la source (image flagcdn.com — rendu identique tous OS) */
.src-flag {
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.15);
  object-fit: cover;
}

.tl-src.radio {
  background: #EEF2FB;
  color: #3046A0;
  border-color: #d0d9f5;
}
.tl-src.radio:hover {
  background: #3046A0;
  color: white;
  border-color: #3046A0;
}

.tl-src.youtube {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #fecaca;
}
.tl-src.youtube:hover {
  background: #991B1B;
  color: white;
  border-color: #991B1B;
}

.tl-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.tl-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .02em;
}
.badge-radio    { background: #EEF2FB; color: #3046A0; }
.badge-live     { background: #dcfce7; color: #166534; animation: badgePulse 2s infinite; }
.badge-soon     { background: #fef9c3; color: #854d0e; }
.badge-imminent { background: #fed7aa; color: #9a3412; }
.badge-later    { background: #f3f4f6; color: #6b7280; }
.badge-past     { background: #f1f5f9; color: #94a3b8; }

/* Prière terminée : les éléments visuels sont atténués,
   mais les boutons sources restent cliquables (on peut quand même écouter / aller sur le site) */
.tl-item.tl-past .tl-time,
.tl-item.tl-past .tl-marker,
.tl-item.tl-past .tl-prayer,
.tl-item.tl-past .tl-badge { opacity: .5; } /* 0.5 min pour lisibilité seniors */

.tl-item.tl-past .tl-src {
  /* Légèrement atténués mais toujours cliquables */
  opacity: .6;
  filter: grayscale(30%);
}
.tl-item.tl-past .tl-src:hover {
  opacity: 1;
  filter: none;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}

.tl-breviary-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-pale);
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  min-height: 32px;
}
.tl-breviary-btn:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* Légende */
.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.leg {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-soft);
}
.leg::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.leg.laudes::before   { background: var(--laudes); }
.leg.matin::before    { background: var(--matin); }
.leg.messe::before    { background: var(--messe); }
.leg.chapelet::before { background: var(--chapelet); }
.leg.vepres::before   { background: var(--vepres); }
.leg.soiree::before   { background: var(--soiree); }
.leg.complies::before { background: var(--complies); }


/* ══════════════════════════════════════════════
   SEMAINE — CARTES PAR JOUR
══════════════════════════════════════════════ */
.week-cards-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  /* Scrollbar discrète */
  scrollbar-width: thin;
  scrollbar-color: var(--cream-mid) transparent;
}
.week-cards-wrap::-webkit-scrollbar { height: 4px; }
.week-cards-wrap::-webkit-scrollbar-thumb { background: var(--cream-mid); border-radius: 4px; }

.week-cards {
  display: flex;
  gap: 10px;
  min-width: max-content;
  padding-bottom: 2px;
}

.wc-day {
  width: 245px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow .15s;
}
.wc-day:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.wc-day.today-day {
  border: 2px solid var(--navy);
}

.wc-head {
  background: var(--navy-soft);
  color: rgba(245,240,232,.85);
  padding: 10px 12px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wc-day.today-day .wc-head {
  background: var(--navy);
  color: var(--gold);
}

.wc-dayname {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.wc-daynum {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.wc-day.today-day .wc-daynum { color: var(--gold); }

.wc-slots {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wc-empty {
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
}

.wc-slot {
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wc-slot.laudes   { background: rgba(83,74,183,.09); }
.wc-slot.matin    { background: rgba(15,110,86,.09); }
.wc-slot.messe    { background: rgba(133,79,11,.09); }
.wc-slot.chapelet { background: rgba(153,53,86,.09); }
.wc-slot.vepres   { background: rgba(24,95,165,.09); }
.wc-slot.soiree   { background: rgba(158,74,31,.09); }
.wc-slot.complies { background: rgba(68,68,65,.09); }

/* ── Titre du slot (ex : "Laudes", "Sainte Messe") ── */
.wc-slot-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.wc-slot.laudes   .wc-slot-label { color: var(--laudes); }
.wc-slot.matin    .wc-slot-label { color: var(--matin); }
.wc-slot.messe    .wc-slot-label { color: var(--messe); }
.wc-slot.chapelet .wc-slot-label { color: var(--chapelet); }
.wc-slot.vepres   .wc-slot-label { color: var(--vepres); }
.wc-slot.soiree   .wc-slot-label { color: var(--soiree); }
.wc-slot.complies .wc-slot-label { color: var(--complies); }

/* ── Ligne horaire : heure + boutons sources ── */
.wc-entry {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 4px;
}
.wc-entry:last-child { margin-bottom: 0; }

.wc-etime {
  font-size: 10px;
  font-weight: 600;
  min-width: 32px;
  padding-top: 3px;
  color: var(--text-soft);
  flex-shrink: 0;
}

.wc-src-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

/* ── Boutons sources semaine ── */
.wc-src-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  line-height: 1.3;
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  border: 1px solid transparent;
}
/* Bouton lecture (flux audio direct) */
.wc-src-btn.wc-radio {
  background: #EEF2FB;
  color: #3046A0;
  border-color: #d0d9f5;
}
.wc-src-btn.wc-radio:hover {
  background: #3046A0;
  color: white;
  border-color: #3046A0;
}
/* Lien externe (YouTube / site) */
.wc-src-btn.wc-link {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border-mid);
}
.wc-src-btn.wc-link:hover {
  background: var(--cream-mid);
  color: var(--text);
}

/* ── Petite étiquette d'heure dans les boutons (onglet Aujourd'hui) ── */
.src-time {
  opacity: 0.55;
  font-size: 0.82em;
  font-weight: 400;
  margin-left: 1px;
}


/* ══════════════════════════════════════════════
   MOIS — CALENDRIER LITURGIQUE
══════════════════════════════════════════════ */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.month-title { font-size: 24px; font-weight: 400; }
.month-btn {
  background: white;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  transition: all .15s;
  min-height: 44px;
}
.month-btn:hover { background: var(--cream-mid); color: var(--text); }

/* Détail jour sélectionné */
.day-detail {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  animation: fadeIn .2s ease;
}
.day-detail.hidden { display: none; }
.dd-date { font-size: 12px; color: var(--gold-pale); margin-bottom: 6px; }
.dd-type {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.dd-type.ordinaire  { background: rgba(255,255,255,.1); color: rgba(245,240,232,.7); }
.dd-type.memoire    { background: rgba(127,119,221,.25); color: #c8c4f8; }
.dd-type.fete       { background: rgba(201,168,76,.2); color: var(--gold); }
.dd-type.solennite  { background: rgba(201,168,76,.35); color: var(--gold); font-weight: 600; letter-spacing:.03em; }
.dd-saint { font-size: 22px; font-weight: 400; color: var(--cream); margin-bottom: 6px; }
.dd-desc  { font-size: 13px; color: rgba(245,240,232,.65); line-height: 1.6; }
/* Tag discret « + » dans les cases du calendrier avec saints mineurs */
.cal-minor-hint {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(201,168,76,.55);
  line-height: 1;
  pointer-events: none;
}

.dd-minor {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(245,240,232,.55);
  font-style: italic;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 8px;
}

/* ─── Bloc saints francophones régionaux ─── */
.dd-regional {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.dd-regional-head-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.dd-regional-head-section > i {
  color: var(--gold);
  font-size: 12px;
}
.dd-regional-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
}
.dd-regional-card {
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.dd-regional-card:last-child { margin-bottom: 0; }
.dd-regional-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.dd-regional-head .src-flag {
  margin-left: 0;
  flex-shrink: 0;
}
.dd-regional-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
.dd-regional-country {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: auto;
  white-space: nowrap;
}
.dd-regional-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0;
}

/* ─── Bloc bio nominis (Conférence des évêques de France) ─── */
.dd-nominis {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.dd-nominis-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dd-nominis-head > i {
  color: var(--gold);
  font-size: 12px;
}
.dd-nominis-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
}
.dd-nominis-title strong { color: rgba(245,240,232,.95); text-transform: none; letter-spacing: 0; font-weight: 600; }
.dd-nominis-tagline {
  font-size: 13px;
  color: rgba(245,240,232,.85);
  font-style: italic;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
}
.dd-nominis-bio {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(245,240,232,.78);
  overflow: hidden;
  transition: max-height .35s ease;
}
.dd-nominis-bio.dd-nominis-collapsed {
  max-height: 110px;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
          mask-image: linear-gradient(to bottom, black 60%, transparent);
}
.dd-nominis-bio:not(.dd-nominis-collapsed) {
  max-height: 1000px;
}
.dd-nominis-bio p { margin: 0 0 10px; }
.dd-nominis-bio a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,.4);
}
.dd-nominis-bio a:hover { border-bottom-color: var(--gold); }
.dd-nominis-bio img {
  max-width: 140px;
  border-radius: 8px;
  margin: 4px 0 6px 12px;
  float: right;
}
.dd-nominis-bio em { color: rgba(245,240,232,.85); }
.dd-nominis-bio sup { font-size: 9px; }

.dd-nominis-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}
.dd-nominis-toggle {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.dd-nominis-toggle:hover { background: rgba(201,168,76,.22); }
.dd-nominis-link {
  font-size: 11px;
  color: rgba(245,240,232,.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dd-nominis-link:hover { color: var(--gold); }
.dd-nominis-link > i { font-size: 9px; }

/* Saints aussi célébrés (extraits de la bio Nominis) */
.dd-nominis-others {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(245,240,232,.12);
}
.dd-nominis-others-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(245,240,232,.55);
  margin-bottom: 7px;
}
.dd-nominis-others-label i { color: var(--gold); margin-right: 5px; font-size: 10px; }

/* Bouton pour déplier la liste complète */
.dd-nominis-others-toggle {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,240,232,.12);
  color: rgba(245,240,232,.75);
  padding: 9px 12px;
  border-radius: var(--r-md, 10px);
  font-size: 12px;
  font-family: var(--font-ui);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s;
  margin-bottom: 8px;
}
.dd-nominis-others-toggle:hover {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.30);
  color: var(--cream);
}
.dd-nominis-others-toggle > .fa-users { color: var(--gold); font-size: 11px; }
.dd-others-toggle-label { flex: 1; }
.dd-others-chevron {
  font-size: 11px;
  transition: transform .2s ease;
  color: rgba(245,240,232,.5);
}
.dd-nominis-others-toggle[aria-expanded="true"] .dd-others-chevron {
  transform: rotate(180deg);
}

.dd-nominis-others-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
}
/* Mode replié : on cache la 2e moitié (les saints au-delà des premiers visibles) */
.dd-others-collapsed .dd-others-rest { display: none; }
.dd-others-rest { display: contents; }
.dd-nominis-other {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11.5px;
  padding: 2px 4px 2px 9px;
  border-radius: 999px;
  background: rgba(201,168,76,.10);
  border: 1px solid rgba(201,168,76,.18);
  transition: background .12s, border-color .12s;
}
.dd-nominis-other:hover {
  background: rgba(201,168,76,.20);
  border-color: rgba(201,168,76,.4);
}
.dd-other-link {
  color: rgba(245,240,232,.85);
  text-decoration: none;
}
.dd-nominis-other:hover .dd-other-link { color: var(--gold); }
.dd-other-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: none;
  background: transparent;
  color: rgba(201,168,76,.55);
  cursor: pointer;
  font-size: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .12s;
}
.dd-other-share:hover { background: var(--gold); color: #14110e; }
.dd-other-share.sharing { opacity: .5; pointer-events: none; }
.dd-nominis-others-more {
  margin-top: 8px;
  font-size: 10.5px;
  color: rgba(245,240,232,.4);
  font-style: italic;
}

.dd-nominis-loading {
  font-size: 12px;
  color: rgba(245,240,232,.5);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dd-nominis-spinner {
  width: 12px; height: 12px;
  border: 2px solid rgba(245,240,232,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: nominisSpin .8s linear infinite;
}
@keyframes nominisSpin { to { transform: rotate(360deg); } }

/* Mobile : images bio plus petites */
@media (max-width: 640px) {
  .dd-nominis-bio img { max-width: 90px; margin-left: 8px; }
  .dd-nominis-bio { font-size: 12.5px; }
}

/* ══════════════════════════════════════════════
   CHAT — INTENTIONS DE PRIÈRE
══════════════════════════════════════════════ */
.tl-chat-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  color: rgba(201,168,76,.8);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.tl-chat-btn:hover { background: rgba(201,168,76,.15); border-color: var(--gold); color: var(--navy); }
.tl-chat-btn i { font-size: 11px; }

/* Wrapper chat : bouton + minuteur + barre */
.tl-chat-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* Zone minuteur + barre */
.tl-chat-time-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
}

/* Texte countdown */
.tl-chat-timer {
  font-size: 10px;
  white-space: nowrap;
  color: var(--text-soft);
  min-height: 13px;
  line-height: 1.2;
}
.tl-chat-timer--open {
  color: var(--gold);
  font-weight: 600;
}
.tl-chat-timer--soon {
  color: var(--text-soft);
}

/* Barre de progression fine */
.tl-chat-bar {
  width: 100%;
  height: 3px;
  background: var(--border-mid);
  border-radius: 2px;
  overflow: hidden;
}
.tl-chat-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 0%;
  transition: width 60s linear; /* s'aligne sur l'intervalle de 1 min */
}

/* Bouton ouvert : bordure dorée + légère teinte */
.tl-chat-btn:not(.inactive) {
  background: rgba(201,168,76,.08);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 2px rgba(201,168,76,.15);
}

/* État discret hors fenêtre de 30 min */
.tl-chat-btn.inactive {
  background: transparent;
  border-color: var(--border-mid);
  color: var(--text-soft);
  opacity: .55;
  pointer-events: none;
}

/* Bandeau teaser "Créez un compte pour accéder au chat" */
.tl-chat-teaser {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 13px 18px;
  background: var(--navy);
  border-radius: var(--r-lg);
  color: rgba(245,240,232,.75);
  width: 100%;
  font-size: 12.5px;
  line-height: 1.45;
  animation: fadeIn .3s ease;
}
.tl-chat-teaser i {
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.tl-chat-teaser-text { flex: 1; }
.tl-chat-teaser-text strong { color: var(--gold); font-weight: 500; }
.tl-chat-teaser-btn {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 16px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.tl-chat-teaser-btn:hover { background: #d4af5a; }

/* ── Bannière install bas de Aujourd'hui ── */
.today-install-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 13px 16px;
  background: var(--navy);
  border-radius: var(--r-lg);
  animation: fadeIn .35s ease;
}
.tib-icon { border-radius: 8px; flex-shrink: 0; }
.tib-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.tib-text strong {
  display: block;
  font-size: .82rem;
  color: var(--cream);
  font-weight: 500;
}
.tib-text span {
  font-size: .75rem;
  color: rgba(245,240,232,.6);
}
.tib-btn {
  flex-shrink: 0;
  padding: 7px 15px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 20px;
  font-size: .8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.tib-btn:hover { background: #d4af5a; }
.tib-btn:active { transform: scale(.96); }
.tib-close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: rgba(245,240,232,.55);
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tib-close:hover { background: rgba(255,255,255,.1); color: var(--cream); }

.chat-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 100vw);
  height: 100dvh;
  background: white;
  box-shadow: -4px 0 40px rgba(26,39,68,.18);
  z-index: 500;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.chat-panel.open { transform: none; }
.chat-overlay {
  position: fixed; inset: 0;
  background: rgba(26,39,68,.45);
  z-index: 499;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.chat-overlay.show { opacity: 1; pointer-events: auto; }
.chat-header {
  background: var(--navy);
  padding: 16px 18px;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.chat-header-info { flex: 1; min-width: 0; }
.chat-office-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 400;
  color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-subtitle {
  font-size: 11px;
  color: rgba(245,240,232,.45);
  margin-top: 2px;
}
.chat-close {
  background: rgba(255,255,255,.1); border: none;
  color: var(--cream); width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
.chat-close:hover { background: rgba(255,255,255,.2); }
.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  padding: 32px 16px;
  line-height: 1.6;
}
/* (Anciens styles .chat-msg supprimés — remplacés par la version flex/avatars
   plus bas, voir bloc « Bulles ».) */
.chat-input-area { flex-shrink: 0; border-top: 1px solid var(--border); }
.chat-login-prompt {
  padding: 20px 16px;
  text-align: center;
}
.chat-login-prompt p {
  font-size: 13px; color: var(--text-soft);
  line-height: 1.5; margin-bottom: 12px;
}
.chat-login-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.chat-login-btn:hover { background: var(--navy-soft); }
.chat-form-wrap {
  display: flex; align-items: flex-end;
  gap: 8px; padding: 12px 14px;
}
#chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  resize: none;
  outline: none;
  transition: border-color .15s;
  max-height: 100px;
}
#chat-input:focus { border-color: var(--navy); }
.chat-send {
  background: var(--navy); border: none;
  color: white; border-radius: 10px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.chat-send:hover { background: var(--navy-soft); }
.chat-send:disabled { opacity: .4; cursor: not-allowed; }
.chat-sql-hint {
  font-size: 10px; color: var(--text-soft);
  padding: 4px 14px 8px;
  text-align: center;
}

/* Grille calendrier */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}

.cal-head {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 4px 0;
}

.cal-day {
  position: relative;
  border-radius: 10px;
  padding: 6px 4px;
  min-height: 52px;
  background: white;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: background .15s, border-color .15s;
}
.cal-day:hover { background: var(--cream-mid); }
.cal-day.other { opacity: .3; pointer-events: none; }

.cal-day.today {
  border: 2px solid var(--navy);
  background: rgba(26,39,68,.04);
}
.cal-day.fete    { border-color: var(--gold); }
.cal-day.memoire { border-color: rgba(127,119,221,.4); }

.cal-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.cal-day.today .cal-num {
  background: var(--navy);
  color: white;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

.cal-saint {
  font-size: 8px;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.3;
}
/* Saint issu de Nominis (pas de fiche curated) — légèrement plus discret */
.cal-saint--nominis {
  font-style: italic;
  opacity: .75;
}

.cal-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
}
.cal-dot.gold   { background: var(--gold); }
.cal-dot.purple { background: var(--laudes); }
.cal-dot.inline { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* Légende mois */
.month-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-soft);
  align-items: center;
}
.today-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.today-legend::before {
  content: attr(data-day);
  background: var(--navy);
  color: white;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
}


/* ══════════════════════════════════════════════
   SOURCES
══════════════════════════════════════════════ */
.sources-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  margin-top: 28px;
}
.sources-title:first-child { margin-top: 0; }

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.src-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  transition: box-shadow .15s;
}
.src-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.src-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.src-type {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
}
.src-type.radio   { background: #EEF2FB; color: #3046A0; }
.src-type.youtube { background: #FEE2E2; color: #991B1B; }

.src-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.src-name { font-size: 16px; font-weight: 400; margin-bottom: 3px; }
.src-info { font-size: 11px; color: var(--text-soft); margin-bottom: 10px; }

.src-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.stag {
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 8px;
  color: white;
}
.stag.laudes   { background: var(--laudes); }
.stag.matin    { background: var(--matin); }
.stag.messe    { background: var(--messe); }
.stag.chapelet { background: var(--chapelet); }
.stag.vepres   { background: var(--vepres); }
.stag.soiree   { background: var(--soiree); }
.stag.complies { background: var(--complies); }

.src-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-style: dashed;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
  gap: 6px;
}
.src-add-icon { font-size: 24px; color: var(--border-mid); }
.src-add:hover { background: var(--cream-mid); }

/* Carte source cliquable (lien) */
.src-card-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.src-card-link:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.11);
  transform: translateY(-2px);
  border-color: var(--gold-pale);
}

/* Lecture directe depuis la page Sources (#6) — bouton « Écouter ici » qui
   lance le lecteur radio intégré sans quitter le site. */
.src-play-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.src-play-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .12s, box-shadow .15s;
}
.src-play-btn:hover {
  background: #16304f;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.src-play-btn:active { transform: translateY(0); }
.src-play-btn i { font-size: 11px; }
.src-play-site {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .15s, color .15s;
}
.src-play-site:hover { border-color: var(--gold-pale); color: var(--navy); }
.src-play-site i { font-size: 10px; }

/* Sous-item d'une carte combo rendu cliquable pour lecture directe */
.src-combo-play { cursor: pointer; }
.src-combo-play:hover {
  background: rgba(201,168,76,.08);
  border-color: var(--gold-pale);
  transform: translateY(-1px);
}
.src-combo-play:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Carte source combinée (ex: RCF Notre-Dame + RCF national dans une seule carte) */
.src-card-combo {
  display: block;
  cursor: default;
}
/* Sur desktop : la carte combinée prend 2 colonnes de la grille pour que ses
   2 sous-items soient côte à côte → même hauteur que les autres cartes radio. */
@media (min-width: 720px) {
  .src-card-combo { grid-column: span 2; }
  .src-combo-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
.src-combo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.src-combo-item {
  display: block;
  background: rgba(0,0,0,.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  text-decoration: none;
  color: inherit;
  transition: background .15s, border-color .15s, transform .12s;
}
.src-combo-item:hover {
  background: rgba(201,168,76,.08);
  border-color: var(--gold-pale);
  transform: translateY(-1px);
}
.src-combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.src-combo-head > strong {
  font-size: 13px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 500;
}
.src-combo-badge {
  font-size: 9px;
  background: rgba(45,122,68,.15);
  color: #2d7a44;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.src-combo-info {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 5px;
}
.src-card-combo .src-tags { margin-top: 2px; gap: 4px; }
.src-card-combo .src-tags .stag { font-size: 10px; padding: 2px 7px; }
.src-card-link .src-name { color: var(--text); }
.src-card-link::after {
  content: '↗';
  float: right;
  font-size: 12px;
  color: var(--border-mid);
  margin-top: -28px;
  transition: color .15s;
}
.src-card-link:hover::after { color: var(--gold); }

/* Badges de type supplémentaires */
.src-type.radio-stream { background: #EEF2FB; color: #3046A0; }
.src-type.monastique   { background: rgba(201,168,76,.15); color: #7a5f00; }

/* Intro Sources */
.sources-intro {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

.src-note {
  font-size: 12px;
  color: var(--text-soft);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-top: 16px;
  line-height: 1.6;
}


/* ══════════════════════════════════════════════
   PANNEAU BRÉVIAIRE
══════════════════════════════════════════════ */
.breviary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.breviary-overlay.show { opacity: 1; pointer-events: all; }

.breviary-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--cream);
  z-index: 401; /* au-dessus du site-header (300) sinon l'en-tête est masqué */
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
.breviary-panel.open { transform: translateX(0); }

.breviary-header {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}
.breviary-prayer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 3px;
}
.breviary-date { font-size: 12px; color: rgba(245,240,232,.6); }

.breviary-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
  flex-shrink: 0;
}
.breviary-close:hover { background: rgba(255,255,255,.2); }

.breviary-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.brev-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  text-align: center;
}
.brev-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--cream-mid);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.brev-note { font-size: 12px; color: var(--text-soft); line-height: 1.6; }

.brev-section { margin-bottom: 28px; }
.brev-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brev-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.brev-text p { margin-bottom: 10px; }
.brev-text p:empty { display: none; }               /* cache les <p> vides AELF */
.brev-text p:only-child:is(:only-child) { margin-bottom: 0; }
/* Guillemet fermant seul en fin de texte → coller au paragraphe précédent */
.brev-text p + p:last-child:is(p) {
  /* si dernier paragraphe ne contient que » on le remonte */
}
.brev-text em { color: var(--text-soft); font-style: italic; }
/* Styles pour le HTML enrichi AELF */
.brev-text strong { font-weight: 600; }
.brev-text blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin: 8px 0;
  font-style: italic;
}
.brev-ref {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
  display: block;
}

.brev-aelf-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-soft);
}
.brev-aelf-link a { color: var(--gold); text-decoration: none; }
.brev-aelf-link a:hover { text-decoration: underline; }

/* ── Nouvelles classes AELF ─────────────────────────────────────────── */

/* En-tête du jour liturgique */
.brev-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.brev-day-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  flex: 1;
  line-height: 1.4;
}

/* Badge couleur liturgique */
.brev-color-badge {
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  text-transform: capitalize;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: var(--text-soft);
  white-space: nowrap;
}
.brev-color-vert   { background: rgba(76,175,80,0.25);   color: #81c784; }
.brev-color-rouge  { background: rgba(229,57,53,0.25);   color: #ef9a9a; }
.brev-color-blanc  { background: rgba(255,255,255,0.18); color: #e0e0e0; }
.brev-color-violet { background: rgba(156,39,176,0.25);  color: #ce93d8; }
.brev-color-rose   { background: rgba(233,30,99,0.22);   color: #f48fb1; }
.brev-color-or     { background: rgba(255,193,7,0.22);   color: var(--gold); }

/* Antienne */
.brev-antienne {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
  background: rgba(197,160,82,0.08);
  border-left: 3px solid var(--gold);
  padding: 8px 14px;
  margin: 10px 0;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}
.brev-antienne--after {
  margin-top: 12px;
  opacity: 0.85;
}
.brev-antienne-label {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
  color: var(--gold);
}

/* Gloria Patri */
.brev-gloria {
  font-style: italic;
  color: var(--text-soft);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 8px;
  margin-top: 8px;
}

/* Hymne */
.brev-section--hymne .brev-text { font-style: italic; }

/* Répons */
.brev-repons { font-style: italic; color: var(--text-soft); }

/* Oraison */
.brev-oraison {
  font-style: italic;
  color: var(--text);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
}
.brev-section--oraison .brev-section-title { color: var(--gold); }

/* Évangile */
.brev-section--evangile {
  background: rgba(197,160,82,0.06);
  border-radius: 10px;
  padding: 14px 16px;
}
.brev-evangile { font-size: 16.5px; }
.brev-section--evangile .brev-section-title { color: var(--gold); }

/* Alleluia */
.brev-alleluia {
  text-align: center;
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* Séparateur entre plusieurs messes */
.brev-separator {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 28px 0;
}

/* Crédit AELF en bas du panneau */
.brev-aelf-credit {
  display: block;
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
}
.brev-aelf-credit a { color: var(--gold); text-decoration: none; }
.brev-aelf-credit a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════
   LECTEUR RADIO
══════════════════════════════════════════════ */
.radio-player {
  position: fixed;
  left: 0; right: 0;
  /* Collé pile au-dessus de la bottom-nav (hauteur réelle = 45px contenu
     + padding bas dynamique avec safe-area). Évite le gap beige. */
  bottom: calc(45px + max(10px, env(safe-area-inset-bottom, 0px)));
  background: var(--navy);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 150;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  transform: translateY(150%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  /* Sécurité : invisible et non-interactif tant que .visible n'est pas ajouté */
  visibility: hidden;
  pointer-events: none;
}
.radio-player.visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.rp-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.rp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse 1.5s infinite;
}

.rp-text { min-width: 0; }
.rp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-sub {
  font-size: 11px;
  color: rgba(245,240,232,.55);
}

.rp-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.rp-vol-icon {
  color: rgba(245,240,232,.45);
  font-size: 12px;
  flex-shrink: 0;
}

.rp-btn-play {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.rp-btn-play:hover { background: var(--gold-pale); transform: scale(1.05); }

.rp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  outline: none;
  cursor: pointer;
}
.rp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.rp-vol::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

.rp-btn-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: rgba(245,240,232,.7);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rp-btn-close:hover { background: rgba(255,255,255,.2); color: white; }
/* L'icône à l'intérieur ne capture pas les clics — toujours géré par le bouton parent */
.rp-btn-close i,
.rp-btn-close svg { pointer-events: none; }


/* ══════════════════════════════════════════════
   MODAL AUTHENTIFICATION
══════════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,.65);
  z-index: 400;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.auth-overlay.hidden { display: none; }

.auth-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 401;
  width: min(420px, calc(100vw - 32px));
  animation: authModalIn .28s ease;
}
.auth-modal.hidden { display: none; }
@keyframes authModalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.auth-panel {
  background: white;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.auth-header {
  background: var(--navy);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-close:hover { background: rgba(255,255,255,.2); }

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 13px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: var(--text-soft);
  transition: all .15s;
}
.auth-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.auth-tab:hover:not(.active) { background: var(--cream-mid); }

#auth-form {
  padding: 22px 24px 16px;
}

.auth-group { margin-bottom: 14px; }
.auth-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.auth-group label i { margin-right: 5px; }
.auth-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.auth-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.08);
}

.auth-error {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-error.hidden { display: none; }

.auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: 4px;
}
.auth-submit:hover:not(:disabled) { background: var(--navy-mid); transform: translateY(-1px); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Champ mot de passe + toggle */
.auth-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-pw-wrap input {
  width: 100%;
  padding-right: 42px !important;
}
.auth-pw-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: color .15s;
}
.auth-pw-toggle:hover { color: var(--navy); }

/* Lien mot de passe oublié */
.auth-forgot {
  text-align: right;
  margin: -6px 0 12px;
}
.auth-forgot button {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.auth-forgot button:hover { color: var(--navy); }

/* hCaptcha — wrapper centré, légèrement décollé du champ password */
.auth-captcha-wrap {
  /* Mode INVISIBLE : aucun widget visible. Le conteneur reste présent dans le
     flux (et non display:none) pour que hCaptcha puisse s'y initialiser, mais
     il est réduit à une hauteur nulle pour n'occuper aucun espace. */
  height: 0;
  overflow: hidden;
  margin: 0;
}

/* En-tête modes réinitialisation */
.auth-reset-header {
  padding: 4px 0 16px;
}
.auth-back-btn {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  transition: color .15s;
}
.auth-back-btn:hover { color: var(--navy); }
.auth-reset-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-reset-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

.auth-note {
  padding: 14px 24px 18px;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid var(--border);
}
.auth-note i { color: var(--gold); margin-right: 4px; }

/* Mention légale hCaptcha (mode invisible) — discrète sous le bouton */
.auth-captcha-note {
  margin: 10px 2px 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-soft);
  text-align: center;
}
.auth-captcha-note i { color: var(--gold); margin-right: 3px; }
.auth-captcha-note a { color: var(--navy); text-decoration: underline; }

/* Bouton secondaire "Renvoyer l'email de confirmation" */
.auth-resend-btn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: transparent;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r-md);
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.auth-resend-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--cream-mid);
}
.auth-resend-btn:disabled { opacity: .5; cursor: not-allowed; }

.auth-confirm {
  padding: 28px 24px 8px;
  text-align: center;
}
.auth-confirm > i {
  font-size: 48px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.auth-confirm h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}
.auth-confirm p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* ── Bouton unifié "Se connecter / Rejoindre" (remplace les 2 anciens) ── */
.nav-auth-unified {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-auth-unified:hover {
  background: var(--gold-pale);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,168,76,.3);
}
.nav-auth-unified > i { font-size: 13px; }
.nav-auth-unified.hidden { display: none; }
.nav-auth-unified-text-short { display: none; }

/* Mobile : on n'affiche que "Compte" (texte court) pour éviter le débordement */
@media (max-width: 480px) {
  .nav-auth-unified-text       { display: none; }
  .nav-auth-unified-text-short { display: inline; }
  .nav-auth-unified            { padding: 7px 12px; font-size: 12px; }
}

/* Boutons cachés (shims pour compat — handleDeepLink, contact form fallback) */
.hidden-auth-shim {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── Anciens boutons auth (header-auth-desktop) — conservé pour compat
   mais rendu invisible (le nouveau bouton unifié les remplace) ── */
.header-auth-desktop {
  display: none !important;
}

.nav-auth-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-login-btn {
  background: transparent;
  color: rgba(245,240,232,.8);
  border: 1px solid rgba(245,240,232,.25);
}
.nav-login-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--cream);
  border-color: rgba(245,240,232,.45);
}

.nav-signup-btn {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid transparent;
  font-weight: 500;
}
.nav-signup-btn:hover {
  background: var(--gold-pale);
  transform: translateY(-1px);
}

/* Item "Rejoindre" dans le menu burger (couleur or) */
.hm-join { color: var(--gold) !important; }
.hm-join i { color: var(--gold) !important; }
.hm-join:hover { background: rgba(201,168,76,.08) !important; }

/* Bouton Se déconnecter (desktop header) */
.nav-logout-btn {
  background: transparent;
  color: rgba(245,240,232,.7);
  border: 1px solid rgba(245,240,232,.2);
}
.nav-logout-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--cream);
  border-color: rgba(245,240,232,.4);
}
.nav-logout-btn.hidden { display: none !important; }

/* Avatar dans le header quand connecté */
.hamburger-avatar {
  width: 28px; height: 28px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
}


/* ══════════════════════════════════════════════
   CHANT GRÉGORIEN — Bouton ambiant (identique lp-music-btn)
══════════════════════════════════════════════ */
.greg-btn {
  position: fixed;
  bottom: 28px;
  right: 24px;          /* même côté que la landing page */
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 11px;
  height: 40px;
  background: rgba(26,39,68,.82);
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 22px;
  color: rgba(245,240,232,.75);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 14px rgba(0,0,0,.22);
  /* au-dessus de la bottom-nav sur mobile */
}
.greg-btn:hover {
  background: rgba(26,39,68,.95);
  border-color: rgba(201,168,76,.55);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(201,168,76,.15);
}
.greg-svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.greg-label { white-space: nowrap; }
.greg-btn.greg-playing {
  border-color: rgba(201,168,76,.6);
  color: var(--gold);
  animation: gregPulse 3s ease-in-out infinite;
}
@keyframes gregPulse {
  0%, 100% { box-shadow: 0 2px 14px rgba(201,168,76,.2); }
  50%       { box-shadow: 0 4px 24px rgba(201,168,76,.45); }
}
/* État "actif mais en attente" après reload (autoplay bloqué) :
   pulse plus subtil + flèche play discrète qui invite au clic */
.greg-btn.greg-needs-resume {
  animation: gregPulseSoft 2s ease-in-out infinite;
}
.greg-btn.greg-needs-resume::after {
  content: '▶';
  position: absolute;
  top: -3px; right: -3px;
  background: var(--gold);
  color: var(--navy);
  font-size: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
@keyframes gregPulseSoft {
  0%, 100% { box-shadow: 0 2px 12px rgba(201,168,76,.25); }
  50%       { box-shadow: 0 3px 18px rgba(201,168,76,.4); }
}
/* Mobile : au-dessus de la bottom-nav */
@media (max-width: 640px) {
  .greg-btn { bottom: 84px; right: 14px; }
}
/* Quand le radio-player est ouvert */
body.player-open .greg-btn { bottom: 80px; }
@media (max-width: 640px) {
  body.player-open .greg-btn { bottom: 148px; }
}
/* Bouton grégorien : décalé uniquement quand le FAB chapelet est présent.
   :has() supporté partout depuis 2022 (Chrome 105, Safari 15.4, Firefox 121). */
body:has(.chapelet-fab) .greg-btn { right: 88px; }   /* 54 (FAB) + 20 (marge droite) + 14 (gap) */


/* ══════════════════════════════════════════════
   MYSTÈRES DU CHAPELET
══════════════════════════════════════════════ */
.chapelet-mystery-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chapelet-mystery-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.ch-mystery-num {
  width: 24px; height: 24px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════
   BOUTON COMPTE DESKTOP
══════════════════════════════════════════════ */
.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--cream);
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background .18s;
  white-space: nowrap;
}
.nav-account-btn:hover { background: rgba(255,255,255,.18); }
.nav-account-btn.hidden { display: none !important; }
/* Chevron du bouton compte unifié — pivote quand le menu est ouvert */
.nav-account-chevron {
  font-size: 10px;
  margin-left: 4px;
  color: rgba(245,240,232,.55);
  transition: transform .2s ease, color .15s;
}
.nav-account-btn:hover .nav-account-chevron { color: var(--cream); }
.nav-account-btn[aria-expanded="true"] .nav-account-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}
/* Quand connecté, le bouton compte (avatar + nom + chevron) déroule
   le menu unifié → le hamburger séparé devient redondant. On le cache
   sur desktop ET mobile. Pour les visiteurs non connectés, on garde
   le hamburger (point d'entrée vers la navigation).
   `!important` car une règle mobile plus bas force `display: flex !important`. */
.header-user.user-logged-in .hamburger-btn,
.header-user.user-logged-in #hamburger-btn { display: none !important; }

.header-acct-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  /* couleur injectée par JS */
}


/* ══════════════════════════════════════════════
   MENU BURGER — ligne profil
══════════════════════════════════════════════ */
.hm-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 10px;
  cursor: pointer;
  transition: background .15s;
  border-radius: 8px 8px 0 0;
}
.hm-profile-row:hover { background: var(--cream-mid); }
.hm-profile-row.hidden { display: none !important; }

.hm-pr-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
}
.hm-pr-info { flex: 1; min-width: 0; }
.hm-pr-name {
  font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-pr-email {
  font-size: 11px; color: var(--text-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-pr-arrow { color: var(--text-soft); font-size: 11px; flex-shrink: 0; }


/* ══════════════════════════════════════════════
   PANNEAU PROFIL
══════════════════════════════════════════════ */
.profile-overlay {
  position: fixed; inset: 0;
  background: rgba(26,39,68,.55);
  z-index: 402;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.profile-overlay.show { opacity: 1; pointer-events: all; }

.profile-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: var(--cream);
  z-index: 403; /* au-dessus du site-header (300) */
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,.22);
}
.profile-panel.open { transform: translateX(0); }

/* En-tête du panel */
.profile-header {
  background: var(--navy);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.profile-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.profile-header-title i { font-size: 16px; }
.profile-close {
  background: rgba(255,255,255,.1);
  border: none; color: var(--cream);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer; font-size: 14px;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-close:hover { background: rgba(255,255,255,.22); }

/* Corps scrollable */
.profile-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

/* ── Hero : avatar + nom + email ── */
.prof-hero {
  background: var(--navy);
  padding: 8px 24px 36px;
  text-align: center;
  position: relative;
}
.prof-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 22px;
  background: var(--cream);
  border-radius: 18px 18px 0 0;
}
.prof-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  position: relative; z-index: 1;
}
.prof-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.prof-email {
  font-size: 12px;
  color: rgba(245,240,232,.5);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.prof-since {
  font-size: 11px;
  color: rgba(245,240,232,.38);
  letter-spacing: .02em;
  position: relative; z-index: 1;
}
.prof-since i { margin-right: 5px; font-size: 9px; opacity: .8; }

/* ── Stats ── */
.prof-stats {
  padding: 20px 20px 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.prof-stat-card {
  flex: 1; min-width: 110px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .15s;
}
.prof-stat-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); }
.prof-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.prof-stat-label {
  font-size: 10px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.4;
}
.prof-stat-label i { margin-right: 4px; color: var(--gold); }
.prof-stat-label strong { color: var(--navy); font-weight: 700; }
.prof-stat-countdown {
  background: linear-gradient(135deg, #fffaf0 0%, #fff 60%);
  border-color: rgba(201,168,76,.35);
}
.prof-stat-countdown .prof-stat-value {
  color: var(--gold-dark, #8a6f24);
  font-size: 42px;
}
.prof-stat-countdown .prof-stat-value i { font-size: 32px; }

/* ── Sections ── */
/* Cloche d'abonnement push à côté de chaque office (vue semaine + timeline) */
.wk-row-bell,
.tl-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: rgba(0,0,0,.32);
  font-size: 13px;
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  transition: all .15s;
  vertical-align: middle;
}
.wk-row-bell:hover,
.tl-bell:hover {
  color: var(--gold);
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.3);
}
.wk-row-bell.active,
.tl-bell.active {
  color: var(--gold);
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
}
.wk-row-bell.busy,
.tl-bell.busy { opacity: .55; }
.wk-row-bell.busy i,
.tl-bell.busy i {
  animation: bellPulse 0.8s ease-in-out infinite;
}
@keyframes bellPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.85); } }

.tl-bell {
  font-size: 14px;
  padding: 4px 9px;
  margin-left: 8px;
}

/* Toast notification push (feedback du toggle) */
.push-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e1c18;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease-out;
  z-index: 9999;
  border: 1px solid rgba(201,168,76,.4);
}
.push-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.push-toast.error { border-color: rgba(220,80,80,.6); }

/* Section Notifications push */
.prof-push-count-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(255,255,255,.04);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.prof-push-count-wrap strong { color: var(--gold); font-size: 18px; }
.prof-push-link {
  margin-left: auto;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.prof-push-link:hover { text-decoration: underline; }

.prof-push-desc {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
  margin-bottom: 12px;
}
.prof-push-status {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.04);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.prof-push-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.prof-push-chip {
  cursor: pointer;
  user-select: none;
}
.prof-push-chip input { display: none; }
.prof-push-chip > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
  transition: all .15s;
}
.prof-push-chip > span > i { font-size: 11px; }
.prof-push-chip:hover > span { border-color: var(--gold); color: #fff; }
.prof-push-chip input:checked + span {
  background: rgba(201,168,76,.15);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 500;
}
.prof-push-chip .src-flag { margin: 0; }

.prof-section {
  padding: 18px 20px 0;
}
.prof-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-soft);
  margin-bottom: 10px;
}
.prof-section-title > i { color: var(--gold); margin-right: 4px; }

/* Avatar avec icône (au lieu d'initiale) */
.prof-avatar.avatar-with-icon i,
.hm-pr-avatar.avatar-with-icon i,
.header-acct-avatar.avatar-with-icon i {
  font-size: 0.55em;        /* relatif à la taille de l'avatar */
}
.prof-avatar.avatar-with-icon i { font-size: 32px; }
.hm-pr-avatar.avatar-with-icon i { font-size: 18px; }
.header-acct-avatar.avatar-with-icon i { font-size: 14px; }

/* Bloc patron saint dans le hero */
.prof-patron {
  margin-top: 10px;
  font-size: 13px;
  color: var(--cream);
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.prof-patron > i { color: var(--gold); font-size: 12px; }
.prof-patron strong { color: var(--gold); }
.prof-patron-feast { opacity: .7; font-size: 11.5px; }

/* ══════════════════════════════════════════════
   PANNEAU ADMIN — Modération
══════════════════════════════════════════════ */
/* Carte présence temps réel */
.adm-presence-card {
  margin: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3a5c 100%);
  color: var(--cream);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(26,39,68,.18);
}
.adm-presence-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.adm-presence-icon {
  color: var(--gold);
  font-size: 18px;
}
.adm-presence-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.adm-presence-pulse {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: admPulse 1.8s infinite;
}
@keyframes admPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.adm-presence-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.adm-pres-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.adm-pres-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 3px;
}
.adm-pres-lbl {
  font-size: 10.5px;
  color: rgba(245,240,232,.65);
  letter-spacing: .02em;
}
.adm-presence-empty {
  font-size: 12px;
  color: rgba(245,240,232,.5);
  font-style: italic;
  text-align: center;
  padding: 8px;
}
.adm-presence-sublabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(245,240,232,.55);
  margin-bottom: 8px;
}
.adm-presence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.adm-pres-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 6px 8px;
}
.adm-pres-avatar-wrap .chat-msg-avatar,
.adm-pres-avatar-wrap span {
  width: 26px !important; height: 26px !important;
  font-size: 11px !important;
}
.adm-pres-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.adm-pres-info { min-width: 0; flex: 1; }
.adm-pres-name {
  font-size: 12px;
  color: var(--cream);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-pres-since {
  font-size: 10px;
  color: rgba(245,240,232,.5);
}


.mod-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 40px 16px;
  color: var(--text-soft);
  font-size: 13px;
}
.mod-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 20px;
}
.mod-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold);
}
.mod-hero-sub {
  font-size: 12px;
  color: rgba(245,240,232,.6);
  margin-top: 2px;
}
.mod-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 8px;
}
.mod-stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.mod-stat-card.mod-stat-blocked {
  background: rgba(220, 60, 60, .06);
  border-color: rgba(220, 60, 60, .25);
}
.mod-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
}
.mod-stat-blocked .mod-stat-val { color: #b04040; }
.mod-stat-lbl {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: .02em;
}
.mod-stat-sub { opacity: .65; font-size: 10.5px; }
.mod-stats-empty {
  padding: 14px;
  font-size: 12px;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
}
.mod-filters {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px 4px;
}
.mod-filter {
  background: white;
  border: 1px solid var(--border-mid);
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 18px;
  cursor: pointer;
}
.mod-filter:hover  { border-color: var(--navy-soft); color: var(--navy); }
.mod-filter.active { background: var(--navy); color: white; border-color: var(--navy); }
.mod-refresh {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-soft);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.mod-refresh:hover { background: rgba(0,0,0,.05); color: var(--navy); }

.mod-entries { padding: 6px 14px 24px; }
.mod-entry {
  background: white;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}
.mod-entry-blocked { border-left-color: #b04040; background: #fdf6f6; }
.mod-entry-ok      { border-left-color: #2d7a44; }
.mod-entry-head {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px;
  margin-bottom: 6px;
  font-size: 11.5px;
}
.mod-entry-user {
  font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 4px;
}
.mod-entry-user > i { color: var(--gold); font-size: 10px; }
.mod-entry-time {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 10.5px;
}
.mod-entry-message {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.mod-entry-reason {
  margin-top: 5px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-soft);
}
.mod-entry-reason > i { color: var(--gold); margin-right: 3px; }
.mod-entry-office {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-soft);
  opacity: .7;
}
.mod-empty {
  padding: 30px 16px;
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-soft);
}

/* Badges catégorie */
.mod-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.mod-cat-ok        { background: rgba(45, 122, 68, .15);  color: #2d7a44; }
.mod-cat-spam      { background: rgba(217, 119, 6, .18);  color: #c2410c; }
.mod-cat-haine     { background: rgba(176, 64, 64, .18);  color: #b04040; }
.mod-cat-blaspheme { background: rgba(176, 64, 64, .18);  color: #b04040; }
.mod-cat-sexuel    { background: rgba(168, 85, 247, .18); color: #7e3eb1; }
.mod-cat-violence  { background: rgba(176, 64, 64, .18);  color: #b04040; }
.mod-cat-horssujet { background: rgba(100, 116, 139, .18);color: #475569; }
.mod-cat-autre     { background: rgba(100, 116, 139, .15);color: #475569; }

/* Onglets admin */
.adm-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}
.adm-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.adm-tab:hover  { color: var(--navy); background: rgba(0,0,0,.02); }
.adm-tab.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.adm-tab i { font-size: 12px; }

/* Planning */
.adm-planning { padding: 12px 14px 24px; }
.adm-planning-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.adm-nav-btn {
  background: white;
  border: 1px solid var(--border-mid);
  color: var(--navy);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.adm-nav-btn:hover { background: rgba(0,0,0,.04); }
.adm-planning-date { text-align: center; flex: 1; }
.adm-planning-day {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--navy);
  text-transform: capitalize;
}
.adm-planning-today {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}
.adm-planning-date-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  margin-bottom: 10px;
  font-family: var(--font-ui);
}
.adm-planning-actions { margin-bottom: 10px; }
.adm-add-btn {
  width: 100%;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.adm-add-btn:hover { background: var(--navy-soft); }

.adm-disabled-section {
  background: rgba(220, 60, 60, .04);
  border: 1px dashed rgba(220, 60, 60, .35);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.adm-disabled-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #b04040;
  font-weight: 600;
  margin-bottom: 6px;
}
.adm-disabled-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0;
  font-size: 12px;
}
.adm-disabled-info { flex: 1; color: var(--text-soft); }
.adm-btn-mini {
  background: white;
  border: 1px solid var(--border-mid);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.adm-btn-mini:hover { background: rgba(0,0,0,.04); }

.adm-office-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.adm-office-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.adm-office-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--navy);
  min-width: 64px;
  display: flex; flex-direction: column;
}
.adm-office-dur {
  font-family: var(--font-ui);
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 400;
}
.adm-office-main { flex: 1; min-width: 0; }
.adm-office-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.adm-office-sources {
  font-size: 10.5px;
  color: var(--text-soft);
  margin-top: 2px;
}
.adm-office-badge {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 4px;
}
.adm-badge-added { background: rgba(45, 122, 68, .15); color: #2d7a44; }
.adm-office-actions { display: flex; gap: 4px; }
.adm-btn-icon {
  background: none;
  border: 1px solid var(--border-mid);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 11px;
}
.adm-btn-icon:hover { background: rgba(0,0,0,.04); color: var(--navy); }
.adm-btn-disable:hover { color: #b04040; border-color: rgba(220, 60, 60, .4); }
.adm-btn-restore:hover { color: #2d7a44; border-color: rgba(45, 122, 68, .4); }
.adm-planning-hint {
  font-size: 11.5px;
  color: var(--text-soft);
  font-style: italic;
  padding: 8px 10px;
  background: rgba(201,168,76,.06);
  border-radius: 6px;
  border-left: 2px solid rgba(201,168,76,.4);
}
.adm-planning-hint > i { color: var(--gold); margin-right: 4px; }

/* Modale d'édition */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 16px;
}
.adm-modal {
  background: white;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(0,0,0,.3);
}
.adm-modal-head {
  background: var(--navy);
  color: var(--cream);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.adm-modal-head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
}
.adm-modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.adm-modal-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.adm-field { margin-bottom: 12px; }
.adm-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 4px;
}
.adm-field input,
.adm-field select {
  width: 100%;
  padding: 9px 11px;
  font-size: 13px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  font-family: var(--font-ui);
  background: white;
}
.adm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.adm-check { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.adm-modal-info {
  background: rgba(0,0,0,.04);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.adm-modal-info-id { font-family: monospace; font-size: 10.5px; color: var(--text-soft); }
.adm-modal-feedback {
  font-size: 12px;
  color: #b04040;
  min-height: 14px;
}
.adm-btn-primary {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 9px 18px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.adm-btn-primary:hover { background: #d4af5a; }
.adm-btn-secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border-mid);
  padding: 9px 16px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 13px;
}
.adm-btn-secondary:hover { background: rgba(0,0,0,.04); color: var(--navy); }

/* Badges source */
.mod-src-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.mod-src-claude   { background: rgba(99, 102, 241, .14); color: #4338ca; }
.mod-src-local    { background: rgba(75, 85, 99, .14);   color: #374151; }
.mod-src-fallback { background: rgba(217, 119, 6, .14);  color: #9a3412; }

/* Badge de grade dans le hero du profil */
.prof-rank-badge {
  margin-top: 10px !important;
  display: inline-flex !important;
}

/* Biographie du saint patron (Nominis) */
.prof-patron-bio {
  margin: 10px 14px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(245,240,232,.85);
  background: rgba(255,255,255,.04);
  border-left: 2px solid rgba(201,168,76,.45);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  text-align: left;
}
.prof-patron-bio-loading {
  color: rgba(245,240,232,.6);
  font-size: 12px;
  display: flex; align-items: center; gap: 8px;
}
.prof-patron-desc { color: var(--cream); margin-bottom: 8px; }
.prof-patron-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); text-decoration: none;
  font-size: 12px; font-weight: 600;
}
.prof-patron-link:hover { text-decoration: underline; }
.prof-patron-src {
  margin-top: 6px;
  font-size: 10.5px;
  opacity: .55;
  font-style: italic;
}

/* Citation favorite dans le hero */
.prof-verse {
  margin: 10px 14px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,240,232,.85);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 12px;
  text-align: left;
}

/* Section Personnalisation */
.prof-perso-label {
  font-size: 11.5px;
  color: var(--text-soft);
  margin: 14px 0 8px;
  font-weight: 500;
}
.prof-perso-label:first-of-type { margin-top: 4px; }

/* Grille icônes */
.prof-ico-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.prof-ico-btn {
  aspect-ratio: 1;
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-mid);
  transition: all .15s;
}
.prof-ico-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.prof-ico-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
}
.prof-ico-initial {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
}

/* Grille palettes */
.prof-pal-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prof-pal-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.prof-pal-btn:hover { border-color: var(--gold); }
.prof-pal-btn.active {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}
.prof-pal-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.prof-pal-swatch.prof-pal-auto {
  background: linear-gradient(135deg, #534AB7, #993556, #c9a84c);
  color: white;
}
.prof-pal-name {
  font-size: 13px;
  color: var(--text-mid);
}

/* Saint patron select */
/* Combobox de recherche du saint patron */
.prof-saint-combobox {
  position: relative;
}
.prof-saint-input {
  padding-right: 36px;
}
.prof-saint-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.prof-saint-clear:hover { background: rgba(0,0,0,.12); }
.prof-saint-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
}
.prof-saint-results.hidden { display: none; }
.prof-saint-group-label {
  padding: 8px 12px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-soft);
  font-weight: 700;
  background: var(--cream);
  position: sticky; top: 0;
}
.prof-saint-result {
  width: 100%;
  background: none; border: none;
  text-align: left;
  padding: 9px 12px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  border-bottom: 1px solid var(--border-soft, #f0e8d8);
}
.prof-saint-result:last-child { border-bottom: none; }
.prof-saint-result:hover { background: rgba(201,168,76,.08); }
.prof-saint-result-name {
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}
.prof-saint-result-feast,
.prof-saint-result-bio {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
}
.prof-saint-result-bio {
  font-style: italic;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-saint-result-feast i { font-size: 9px; margin-right: 3px; opacity: .6; }
.prof-saint-empty {
  padding: 14px 12px;
  font-size: 12px;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
}
.prof-saint-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.4;
}

.prof-saint-select {
  padding-right: 28px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237a756e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Verse textarea */
.prof-verse-input {
  resize: vertical;
  min-height: 60px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
}

@media (max-width: 480px) {
  .prof-ico-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .prof-ico-btn { font-size: 16px; }
}

/* Formulaire prénom */
.prof-pseudo-hint {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.4;
}
.prof-name-form {
  display: flex;
  gap: 8px;
}
.prof-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.prof-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.08);
}

/* Bouton enregistrer */
.prof-save-btn {
  padding: 10px 16px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
  display: flex; align-items: center; gap: 6px;
}
.prof-save-btn:hover   { background: var(--navy-soft); }
.prof-save-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Feedback (succès / erreur) */
.prof-feedback {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  margin-top: 8px;
  display: flex; align-items: center; gap: 7px;
}
.prof-feedback.hidden   { display: none; }
.prof-feedback--success { background: #D1FAE5; color: #065F46; }
.prof-feedback--error   { background: #FEE2E2; color: #991B1B; }

/* Bouton action (mot de passe) */
.prof-action-btn {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: white;
  border: 1px solid var(--border-mid);
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px; color: var(--text);
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; gap: 10px;
}
.prof-action-btn:hover { background: var(--cream-mid); }
.prof-action-btn > i:first-child { color: var(--text-soft); }
.prof-action-chevron {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-soft);
  transition: transform .2s;
}
.prof-action-chevron.rotated { transform: rotate(180deg); }

/* Formulaire mot de passe (collapsible) */
.prof-pw-form {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.prof-pw-form.hidden { display: none; }


/* Zone danger */
.prof-section--danger {
  padding-top: 28px;
}
.prof-section--danger::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}
.prof-signout-btn {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: var(--r-md);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.prof-signout-btn:hover { background: #FEF2F2; border-color: #FCA5A5; }


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  padding: 48px 24px 32px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .logo-name { font-size: 16px; }
.footer-tagline {
  font-size: 12px;
  color: rgba(245,240,232,.4);
  margin-top: 8px;
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(245,240,232,.35);
  margin-bottom: 2px;
}

.footer-nav-link {
  background: none;
  border: none;
  color: rgba(245,240,232,.6);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
  transition: color .15s;
  text-align: center;
}
.footer-nav-link:hover { color: var(--gold); }

.footer-legal {
  text-align: right;
  font-size: 12px;
  color: rgba(245,240,232,.4);
  line-height: 2;
}
.footer-legal a { color: var(--gold); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

.footer-divider {
  max-width: 1320px;
  margin: 28px auto 0;
  border: none;
  border-top: 1px solid rgba(245,240,232,.08);
}

.footer-bottom {
  max-width: 1320px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(245,240,232,.3);
  gap: 16px;
  flex-wrap: wrap;
}

/* Prière quotidienne footer */
.footer-daily-prayer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
  color: rgba(245,240,232,.5);
  max-width: 420px;
  line-height: 1.5;
}
.footer-daily-prayer > i {
  color: var(--gold);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-prayer-author {
  display: block;
  font-style: normal;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: rgba(245,240,232,.3);
  margin-top: 3px;
  letter-spacing: .04em;
}


/* ══════════════════════════════════════════════
   BOTTOM NAV (mobile)
══════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  z-index: 100;
}

.bn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--text-soft);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .15s;
  min-width: 56px; /* cible tactile */
}
.bn.active { color: var(--navy); }
.bn-icon {
  font-size: 17px;
  transition: transform .15s;
}
.bn.active .bn-icon { transform: scale(1.1); }


/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   RESPONSIVE — DESKTOP LARGE (≥1100px)
══════════════════════════════════════════════ */
@media (min-width: 1100px) {
  .site-main { max-width: 1200px; margin: 0 auto; padding: 28px 40px; }
  /* Vue semaine : plus de colonnes visibles */
  .week-cards { gap: 12px; }
  .wc-day { min-width: 160px; }
}

/* ── Desktop sidebar filtres (≥900px) ── */
@media (min-width: 900px) {
  .prayer-filters {
    flex-direction: column;
    width: 160px;
    flex-wrap: nowrap;
    margin-bottom: 0;
    position: sticky;
    top: 76px;
    gap: 5px;
    align-self: flex-start;
  }
  .pf {
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    border-radius: var(--r-md);
    justify-content: flex-start;
    font-size: 13px;
  }
  /* Timeline : plus large sur desktop */
  .timeline { flex: 1; min-width: 0; }
}

@media (max-width: 899px) {
  .today-main { flex-direction: column; gap: 0; }
  /* Filtres en rangée scrollable horizontalement */
  .prayer-filters {
    width: 100%;          /* contraint au parent — évite le débordement */
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 1;       /* autorise le rétrécissement dans la colonne */
  }
  .prayer-filters::-webkit-scrollbar { display: none; }
  .pf { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .site-main { padding: 14px 12px; }
  .main-nav  { display: none; }
  .header-inner { justify-content: space-between; padding: 0 14px; }
  .user-name { display: none; }

  /* Mobile : boutons desktop cachés, burger toujours visible */
  .header-auth-desktop { display: none !important; }
  #hamburger-btn { display: flex !important; }

  /* ── Sur mobile : drawer glissant depuis le bas ── */
  .hamburger-menu {
    position: fixed;
    bottom: 70px;
    left: 8px; right: 8px;
    top: auto;
    min-width: unset;
    max-height: 76vh;
    overflow-y: auto;
    border-radius: 18px;
    transform: translateY(24px) scale(.96);
    box-shadow: 0 -4px 30px rgba(0,0,0,.18);
  }
  .hamburger-menu::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: var(--border-mid);
    border-radius: 2px;
    margin: 10px auto 2px;
  }
  .hamburger-menu:not(.hidden) { transform: translateY(0) scale(1); }

  .hm-nav-label, .hm-nav-item, .hm-nav-divider { display: flex; }
  .hm-nav-label { display: block; }

  .day-banner { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .day-feast  { font-size: 17px; }

  /* Timeline : compacte sur mobile */
  .tl-item { flex-wrap: wrap; padding: 11px 12px; gap: 6px 12px; }
  .tl-body { flex-basis: calc(100% - 50px - 12px); }
  .tl-prayer { font-size: 15px; }
  .tl-actions {
    flex-basis: 100%;
    flex-direction: row !important;
    align-items: flex-start; /* aligne le HAUT de Mystères et Intentions */
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    padding-left: 50px;
  }
  /* Le wrap Intentions ne doit pas décaler son bouton (timer en dessous) */
  .tl-actions .tl-chat-wrap { align-items: stretch; }
  .tl-actions .tl-badge { align-self: center; }
  .tl-src { font-size: 12px; padding: 5px 10px; min-height: 34px; }

  /* Week cards : scroll horizontal fluide */
  .week-cards { gap: 10px; padding-bottom: 8px; }
  .wc-day { width: 185px; min-width: 185px; }
  .wc-daynum { font-size: 20px; }
  .wc-src-btn { font-size: 10px; padding: 3px 6px; }
  .wc-etime { font-size: 11px; }

  /* Chapelet modal : plus de hauteur sur mobile */
  .ch-panel { padding: 18px 16px 20px; }
  .ch-prayer-txt { font-size: 22px; }
  .ch-prayer-full { max-height: 100px; font-size: 12px; }
  .ch-lang-btn { font-size: 14px; padding: 2px 4px; }

  /* Calendrier : cellules compactes */
  .cal-num { font-size: 12px; }

  /* Footer mobile */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-legal { text-align: center; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  /* Lecteur radio */
  .rp-vol { width: 56px; }
  .rp-name { font-size: 13px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — DESKTOP (≥641px)
══════════════════════════════════════════════ */
@media (min-width: 641px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }

  .radio-player { bottom: 0; }
  body.player-open { padding-bottom: 64px; }

  /* Desktop : le burger est TOUJOURS visible (connecté ou pas)
     → tout le monde peut accéder à À propos, Contact, Accueil…   */
  #hamburger-btn { display: flex; }

  /* Les anciens IDs login/signup sont des shims invisibles (compat handleDeepLink) */
  .hidden-auth-shim { display: none !important; }

  /* FAB chapelet */
  .chapelet-fab { bottom: 30px; }
  body.player-open .chapelet-fab { bottom: 88px; }

  /* Chapelet modal : centré, bien espacé */
  .ch-panel { max-width: 500px; padding: 28px 32px; }
  .ch-prayer-full { max-height: 140px; }
  .ch-lang-bar { gap: 5px; }
}


/* ══════════════════════════════════════════════
   BLOC BIENVENUE — première visite
══════════════════════════════════════════════ */
.welcome-banner {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 20px 22px 16px;
  margin-bottom: 20px;
  position: relative;
  animation: fadeIn .35s ease;
  transition: opacity .35s ease, transform .35s ease, max-height .4s ease;
  overflow: hidden;
}
.welcome-banner.wb-hiding {
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  max-height: 0 !important;
  padding: 0;
  margin: 0;
  border-width: 0;
}

/* Bouton fermer (×) en haut à droite */
.wb-close {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--cream-mid);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.wb-close:hover { background: var(--border-mid); color: var(--text); }

/* Corps principal */
.wb-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Petite croix décorative */
.wb-cross {
  width: 28px; height: 28px;
  flex-shrink: 0;
  margin-top: 3px;
}
.wb-cross .cross-v {
  background: var(--gold);
  width: 3px; height: 28px;
}
.wb-cross .cross-h {
  background: var(--gold);
  top: 8px;
  width: 28px; height: 3px;
}

.wb-content { flex: 1; min-width: 0; }

.wb-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 7px;
}

.wb-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

.wb-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 5px 16px;
  margin: 0;
  padding: 0;
}
.wb-features li {
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 7px;
}
.wb-features li i {
  color: var(--gold);
  font-size: 11px;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

/* Pied du bloc */
.wb-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wb-start {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--navy);
  color: var(--cream);
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.wb-start:hover { background: var(--navy-mid); transform: translateY(-1px); }

.wb-dismiss {
  font-size: 11px;
  color: var(--text-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.wb-dismiss:hover { color: var(--text); }

/* Mobile : croix déco masquée, layout empilé */
@media (max-width: 640px) {
  .wb-cross  { display: none; }
  .wb-title  { font-size: 17px; }
  .wb-features { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════
   WIDGET — PROCHAIN OFFICE
══════════════════════════════════════════════ */
.next-office-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.no-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .65;
  margin-bottom: 5px;
}
.no-prayer {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.15;
}
.no-srcs {
  font-size: 12px;
  opacity: .65;
  margin-top: 5px;
}
.no-right { text-align: right; flex-shrink: 0; }
.no-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.no-countdown {
  font-size: 12px;
  opacity: .75;
  margin-top: 4px;
}


/* ══════════════════════════════════════════════
   WIDGET — CHAPELET NUMÉRIQUE
══════════════════════════════════════════════ */

/* Bouton flottant (FAB) — marron chapelet, icône SVG perles */
.chapelet-fab {
  position: fixed;
  right: 20px;
  bottom: 28px;       /* desktop par défaut — mobile surcharge à bottom: calc(...) */
  width: 54px; height: 54px;
  background: #7B4F2E;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(123,79,46,.45);
  transition: transform .15s, box-shadow .15s;
  z-index: 95;
}
.chapelet-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(123,79,46,.55);
}
.ch-fab-icon {
  width: 30px; height: 30px;
}
body.player-open .chapelet-fab { bottom: 152px; } /* au-dessus du lecteur radio */

/* Modale */
.chapelet-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 450;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chapelet-modal.hidden { display: none; }

.ch-panel {
  background: white;
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 500px;
  padding: 8px 24px max(24px, env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
}
@media (min-width: 641px) {
  .chapelet-modal { align-items: center; }
  .ch-panel { border-radius: 20px; max-height: 92vh; }
}

.ch-panel::before {   /* poignée */
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--border-mid);
  border-radius: 2px;
  margin: 10px auto 16px;
}
@media (min-width: 641px) { .ch-panel::before { display: none; } }

.ch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.ch-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
}
.ch-close {
  background: var(--cream-mid);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--text-soft);
  transition: background .12s;
  flex-shrink: 0;
}
.ch-close:hover { background: var(--cream); }

.ch-mystery {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--chapelet);
  margin-bottom: 3px;
}
.ch-decade-info {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
}
.ch-myst-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--text);
  font-weight: 400;
}

/* ─── Chapelet en forme de chapelet (SVG) ─────────────── */
.ch-beads {
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}
.ch-rosary {
  width: 100%;
  max-width: 280px;
  height: auto;
  overflow: visible;
}
/* Cordon = ovale + ligne du pendentif */
.ch-rosary-thread {
  fill: none;
  stroke: rgba(123,79,46,.28);
  stroke-width: 1.4;
  stroke-dasharray: 1.5 3;
  stroke-linecap: round;
}
.ch-rosary-pendant-line {
  stroke-dasharray: 1.5 3;
}

/* Perles SVG (cercles) */
.ch-rosary .ch-bead {
  fill: var(--border-mid);
  stroke: rgba(255,255,255,.6);
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill .2s, transform .2s, filter .2s;
  transform-origin: center;
  transform-box: fill-box;
}
.ch-rosary .ch-bead.ch-bead-sp {
  fill: var(--text-soft);            /* légèrement plus foncé pour Pater & Gloria */
}
.ch-rosary .ch-bead.done {
  fill: rgba(153,53,86,.45);
}
.ch-rosary .ch-bead.current {
  fill: var(--chapelet);
  transform: scale(1.55);
  filter: drop-shadow(0 0 4px rgba(153,53,86,.55));
}
.ch-rosary .ch-bead:hover:not(.current) {
  fill: rgba(153,53,86,.7);
  transform: scale(1.3);
}
.ch-rosary .ch-bead:focus-visible {
  outline: 2px solid var(--chapelet);
  outline-offset: 2px;
}

/* Crucifix */
.ch-rosary-cross {
  fill: var(--gold);
  transition: fill .2s, transform .2s;
}
.ch-rosary-cross-group {
  cursor: pointer;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform .2s;
}
.ch-rosary-cross-group:hover .ch-rosary-cross {
  fill: #b08a35;
}
.ch-rosary-cross-group.current .ch-rosary-cross {
  fill: var(--chapelet);
  filter: drop-shadow(0 0 3px rgba(153,53,86,.55));
}
.ch-rosary-cross-group.done .ch-rosary-cross {
  fill: rgba(201,168,76,.55);
}

/* Mobile : SVG un peu plus grand pour confort de tap */
@media (max-width: 640px) {
  .ch-rosary { max-width: 260px; }
}

/* Sélecteur de langue — rangée de drapeaux */
.ch-lang-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ch-lang-btn {
  background: none;
  border: 1.5px solid transparent;
  border-radius: 7px;
  padding: 3px 5px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: border-color .15s, background .15s;
  color: var(--text-soft);
}
.ch-lang-btn[data-lang="la"] { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 6px; }
.ch-lang-btn:hover  { border-color: var(--chapelet); background: rgba(153,53,86,.07); }
.ch-lang-btn.active { border-color: var(--chapelet); background: rgba(153,53,86,.1); }

/* Texte complet de la prière en cours */
.ch-prayer-full {
  max-height: 120px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-mid);
  text-align: center;
  white-space: pre-line;
  background: var(--cream);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  scroll-behavior: smooth;
}
.ch-prayer-full:empty { display: none; }
/* Scrollbar discrète */
.ch-prayer-full::-webkit-scrollbar { width: 4px; }
.ch-prayer-full::-webkit-scrollbar-track { background: transparent; }
.ch-prayer-full::-webkit-scrollbar-thumb { background: rgba(153,53,86,.25); border-radius: 4px; }

/* Prière en cours */
.ch-prayer-txt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  text-align: center;
  color: var(--text);
  margin: 18px 0 20px;
  min-height: 34px;
  line-height: 1.2;
}

/* Bouton principal */
.ch-tap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--chapelet);
  color: white;
  border: none;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  margin-bottom: 14px;
}
.ch-tap:hover:not(:disabled)  { background: #7a2843; }
.ch-tap:disabled               { background: var(--text-soft); cursor: default; }

.ch-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ch-progress {
  font-size: 13px;
  color: var(--text-soft);
}
.ch-reset {
  font-size: 13px;
  color: var(--text-soft);
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 14px;
  min-height: 36px;
  transition: background .12s;
}


/* ═══════════════════════════════════════════════
   CHAT — INTENTIONS DE PRIÈRES
═══════════════════════════════════════════════ */

/* Bouton chat sur chaque item de la timeline */
.tl-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--text-soft);
  background: var(--cream);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  min-height: 32px;
}
.tl-chat-btn:hover {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.4);
  color: var(--gold);
}
.tl-chat-btn .fa-solid { font-size: 10px; }

/* Overlay */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  backdrop-filter: blur(3px);
  transition: opacity .2s;
}
.chat-overlay.hidden { display: none; }

/* Panneau latéral (slide depuis la droite) */
.chat-panel {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(380px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border-mid);
  z-index: 501;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.chat-panel:not(.hidden) {
  transform: translateX(0);
}
.chat-panel.hidden {
  display: flex; /* garde la structure pour l'animation */
  transform: translateX(100%);
  pointer-events: none;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--border-mid);
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-header-icon {
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
}
.chat-header-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  background: rgba(34,197,94,.14);
  color: #6ee7a4;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.chat-presence.hidden { display: none; }
.chat-presence-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,.8);
  animation: presencePulse 2s ease-in-out infinite;
}
@keyframes presencePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}
.chat-close {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color .15s;
}
.chat-close:hover { color: var(--cream); }

/* Zone messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  text-align: center;
  color: var(--text-soft);
  padding: 40px 20px;
}
.chat-empty .fa-solid {
  font-size: 36px;
  opacity: .3;
}
.chat-empty p {
  font-size: 13px;
  line-height: 1.6;
  opacity: .7;
}

/* Bulles */
.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: fadeIn .18s ease;
}
.chat-msg + .chat-msg { margin-top: 8px; }
.chat-msg.grouped + .chat-msg.grouped,
.chat-msg + .chat-msg.grouped { margin-top: 2px; }

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}
.chat-msg.own .chat-msg-row { flex-direction: row-reverse; }

.chat-msg-avatar {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  user-select: none;
  margin-top: 2px;
}
.chat-msg-avatar i { font-size: 12px; }
.chat-msg.grouped .chat-msg-avatar { visibility: hidden; height: 0; margin: 0; }

.chat-msg-body { flex: 1; min-width: 0; }
.chat-msg.grouped .chat-msg-meta { display: none; }

.chat-msg-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chat-msg-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--author-color, var(--gold));
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .01em;
  filter: brightness(1.4) saturate(.85);
  transition: opacity .15s;
}
.chat-msg-author:hover { opacity: .75; text-decoration: underline; }
.chat-msg-avatar { cursor: pointer; transition: transform .12s; }
.chat-msg-avatar:hover { transform: scale(1.08); }

/* Drapeau pays optionnel à côté du pseudo dans le chat */
.chat-msg-flag {
  flex-shrink: 0;
  margin: 0 2px 0 -3px;
  align-self: center;
  vertical-align: middle;
  border-radius: 1px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.15);
}

/* Mention "(facultatif)" + champ select pays */
.auth-optional {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,.45);
  margin-left: 4px;
}
.auth-hint {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
  line-height: 1.4;
}

/* Badge de grade à côté du pseudo */
.chat-msg-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 9px;
  flex-shrink: 0;
  cursor: help;
}
.chat-msg-rank i { font-size: 8px; }
.rk-disciple { background: rgba(34,139,34,.22);  color: #6cc16c; }
.rk-frere    { background: rgba(99,102,241,.22); color: #a5b4fc; }
.rk-fidele   { background: rgba(201,168,76,.22); color: var(--gold); }
.rk-ancien {
  background: linear-gradient(135deg, #f3c548, #c9a84c);
  color: #4a3a0c;
  box-shadow: 0 0 8px rgba(201,168,76,.55);
  animation: rankGlow 2.6s ease-in-out infinite alternate;
}
@keyframes rankGlow {
  from { box-shadow: 0 0 6px rgba(201,168,76,.45); }
  to   { box-shadow: 0 0 14px rgba(243,197,72,.85); }
}
.chat-msg-time {
  font-size: 10px;
  color: var(--text-soft);
}
.chat-msg-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 0 12px 12px 12px;
  padding: 9px 13px;
  word-break: break-word;
  /* Rail liturgique : barre colorée de 3px sur le côté */
  border-left: 3px solid var(--user-palette, rgba(255,255,255,.18));
  position: relative;
  transition: background .15s;
}
/* Message envoyé par l'utilisateur courant — fond teinté par la palette */
.chat-msg.own {
  align-items: flex-end;
}
.chat-msg.own .chat-msg-meta {
  flex-direction: row-reverse;
}
.chat-msg.own .chat-msg-author { color: rgba(201,168,76,.7); }
.chat-msg.own .chat-msg-text {
  background:
    linear-gradient(to right, rgba(0,0,0,0), color-mix(in srgb, var(--user-palette, #c9a84c) 22%, transparent));
  border-color: color-mix(in srgb, var(--user-palette, #c9a84c) 38%, transparent);
  border-radius: 12px 12px 0 12px;
  border-left: 1px solid color-mix(in srgb, var(--user-palette, #c9a84c) 18%, transparent);
  /* Rail à DROITE pour les propres messages (symétrie iMessage) */
  border-right: 3px solid var(--user-palette, var(--gold));
}
/* Fallback pour navigateurs sans color-mix : on garde au moins la barre latérale */
@supports not (background: color-mix(in srgb, red, blue)) {
  .chat-msg.own .chat-msg-text {
    background: rgba(201,168,76,.12);
    border-color: rgba(201,168,76,.22);
  }
}

/* ── Popover mini-profil tchat ── */
.chat-popover {
  position: fixed;
  z-index: 320;
  width: 280px;
  background: var(--cream, #f5f0e8);
  color: var(--navy);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
  animation: popIn .14s ease-out;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(4px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-pop-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--navy);
  color: var(--cream);
}
.chat-pop-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
}
.chat-pop-avatar i { font-size: 16px; }
.chat-pop-name {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-pop-close {
  background: rgba(255,255,255,.1);
  border: none; color: var(--cream);
  width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.chat-pop-close:hover { background: rgba(255,255,255,.22); }
.chat-pop-body {
  padding: 12px 14px 14px;
}
.chat-pop-rank {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.chat-pop-rank.rk-pelerin  { background: rgba(0,0,0,.06);          color: var(--text-soft); }
.chat-pop-rank.rk-disciple { background: rgba(34,139,34,.16);      color: #2d6a2d; }
.chat-pop-rank.rk-frere    { background: rgba(30,58,138,.14);      color: #1e3a8a; }
.chat-pop-rank.rk-fidele   { background: rgba(201,168,76,.18);     color: #8a6f24; }
.chat-pop-rank.rk-ancien {
  background: linear-gradient(135deg, #f3c548, #c9a84c);
  color: #4a3a0c;
  box-shadow: 0 0 10px rgba(201,168,76,.55);
}
.chat-pop-row {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; line-height: 1.5;
}
.chat-pop-row + .chat-pop-row, .chat-pop-row + .chat-pop-verse { margin-top: 8px; }
.chat-pop-row > i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.chat-pop-row strong { color: var(--navy); }
.chat-pop-row em { color: var(--text-soft); font-style: normal; font-size: 12px; }
.chat-pop-row--muted { color: var(--text-soft); font-style: italic; }
.chat-pop-verse {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--navy);
  background: color-mix(in srgb, var(--user-palette, #c9a84c) 9%, transparent);
  border-left: 3px solid var(--user-palette, var(--gold));
  border-radius: 0 8px 8px 0;
}
/* Teinte la barre d'en-tête du popover par la palette utilisateur */
.chat-popover .chat-pop-head {
  background:
    linear-gradient(135deg,
      var(--navy) 0%,
      color-mix(in srgb, var(--user-palette, var(--navy)) 60%, var(--navy)) 100%);
}

/* Modal récurrence (export calendrier) */
.rec-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .15s ease;
}
.rec-modal {
  background: var(--cream);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 14px 50px rgba(0,0,0,.32);
  animation: recPopIn .2s ease-out;
}
@keyframes recPopIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.rec-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(0,0,0,.05); border: none; border-radius: 50%;
  cursor: pointer; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
}
.rec-close:hover { background: rgba(0,0,0,.10); color: var(--navy); }
.rec-head {
  text-align: center;
  padding: 24px 20px 8px;
}
.rec-head > i {
  font-size: 30px; color: var(--gold);
  margin-bottom: 6px; display: block;
}
.rec-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 4px;
}
.rec-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
  font-style: italic;
}
.rec-body { padding: 8px 20px 4px; }
.rec-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
  font-weight: 600;
  margin: 18px 0 8px;
}
.rec-section-label--duration { margin-top: 20px; }
.rec-section-label--disabled { opacity: .4; }

/* #4 — Sélecteur d'offices pour l'export de la journée */
.rec-offices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
}
.rec-office {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s;
}
.rec-office:hover { background: rgba(201,168,76,.08); }
.rec-office input { accent-color: var(--gold); width: 17px; height: 17px; flex: 0 0 auto; }
.rec-office-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  min-width: 42px;
}
.rec-office-name { font-size: 13.5px; color: var(--text); }
.rec-office-all {
  border-bottom: 1px solid var(--border);
  border-radius: 7px 7px 0 0;
  margin-bottom: 2px;
}
.rec-office-all .rec-office-name strong { color: var(--navy); }
.rec-opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 13px;
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.rec-opt:hover { border-color: var(--gold); }
.rec-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}
.rec-opt input { margin-top: 3px; accent-color: var(--gold); }
.rec-opt > div { flex: 1; }
.rec-opt strong { display: block; font-size: 13.5px; color: var(--navy); }
.rec-opt small  { display: block; font-size: 12px; color: var(--text-soft); margin-top: 1px; }

.rec-duration {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.rec-pill {
  cursor: pointer;
}
.rec-pill input { display: none; }
.rec-pill span {
  display: inline-block;
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--text-mid);
  font-family: var(--font-ui);
  transition: all .12s;
}
.rec-pill:hover span { border-color: var(--gold); color: var(--navy); }
.rec-pill input:checked + span {
  background: var(--navy); border-color: var(--navy); color: white;
}
.rec-pill--disabled { opacity: .4; pointer-events: none; }
/* Pill "Autre…" légèrement distinct (subtilement) */
.rec-pill--custom span { font-style: italic; }
.rec-pill--custom span i { font-size: 11px; margin-right: 3px; }

/* Champ date personnalisé révélé sur sélection "Autre…" */
.rec-custom-wrap {
  margin-top: 4px;
  padding: 10px 12px 4px;
  background: rgba(201,168,76,.08);
  border-radius: 8px;
  border-left: 2px solid var(--gold);
  animation: fadeIn .15s ease;
}
.rec-custom-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 5px;
}
.rec-custom-date {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--border-mid);
  border-radius: 8px;
  background: white;
  color: var(--navy);
}
.rec-custom-date:focus {
  outline: none;
  border-color: var(--gold);
}
.rec-custom-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
}

.rec-foot {
  padding: 14px 20px 20px;
  display: flex; gap: 10px; justify-content: flex-end;
  border-top: 1px solid var(--border);
  margin-top: 14px;
}
.rec-btn-secondary, .rec-btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  border-radius: 22px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.rec-btn-secondary { background: transparent; color: var(--text-soft); border: 1px solid var(--border-mid); }
.rec-btn-secondary:hover { background: rgba(0,0,0,.04); color: var(--navy); }
.rec-btn-primary { background: var(--gold); color: var(--navy); font-weight: 600; }
.rec-btn-primary:hover { background: #d4af5a; }
.rec-btn-primary > i { font-size: 12px; }

/* Modal Office Monastique (Triors grégorien) */
.monastic-panel .monastic-icon-big {
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.mono-intro {
  padding: 8px 0 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.mono-intro p { margin: 0 0 10px; }
.mono-warning {
  background: rgba(201,168,76,.08);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: var(--text-mid);
}
.mono-warning > i { color: var(--gold); margin-right: 5px; }
.mono-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
  background: white;
}
.mono-section-title {
  margin: 0;
  padding: 11px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  transition: background .12s;
  user-select: none;
}
.mono-section-title:hover { background: rgba(201,168,76,.10); }
.mono-chev {
  font-size: 11px;
  color: var(--gold);
  transition: transform .2s ease;
}
.mono-section-open .mono-chev { transform: rotate(90deg); }
.mono-fixed-tag, .mono-var-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
}
.mono-fixed-tag { background: rgba(45, 122, 68, .14); color: #2d7a44; }
.mono-var-tag   { background: rgba(100, 116, 139, .14); color: #475569; }
.mono-section-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.mono-section-open .mono-section-body {
  padding: 12px 16px 14px;
  max-height: 1500px;
}
.mono-section-body p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.mono-latin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14.5px !important;
  color: var(--navy) !important;
  font-style: italic;
}
.mono-french {
  color: var(--text-mid) !important;
  font-size: 12.5px !important;
  padding-left: 12px;
  border-left: 2px solid var(--gold-pale, rgba(201,168,76,.4));
}
.mono-rubric {
  font-size: 11.5px !important;
  color: var(--text-soft) !important;
  font-style: italic;
}
.mono-list { padding-left: 20px; margin: 6px 0; font-size: 13px; line-height: 1.6; }
.mono-resources {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--cream);
  border-radius: 8px;
}
.mono-resources h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 8px;
}
.mono-resources h3 > i { color: var(--gold); margin-right: 5px; font-size: 13px; }
.mono-resources ul { padding-left: 18px; margin: 0; }
.mono-resources li { font-size: 12.5px; margin: 4px 0; line-height: 1.5; }
.mono-resources a { color: var(--navy); }
.mono-resources a:hover { color: var(--gold); }

/* Bouton "Office monastique" — distinct visuellement du bouton Bréviaire */
.tl-monastic-btn {
  background: rgba(201,168,76,.10) !important;
  border-color: rgba(201,168,76,.35) !important;
}
.tl-monastic-btn:hover {
  background: rgba(201,168,76,.20) !important;
  border-color: var(--gold) !important;
}

/* Bouton "Latin" — visuel discret, distinct du bouton Textes */
.tl-latin-btn {
  background: rgba(139, 92, 246, .08) !important;
  border-color: rgba(139, 92, 246, .30) !important;
  color: #6d28d9 !important;
}
.tl-latin-btn:hover {
  background: rgba(139, 92, 246, .18) !important;
  border-color: rgba(139, 92, 246, .50) !important;
}
.tl-latin-btn > i { color: #7c3aed !important; }

/* Modal installation PWA (séparée du À propos) */
.install-panel .install-icon-big {
  font-size: 56px;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.install-platform {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
  margin: 14px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.install-platform > i { color: var(--gold); }
.install-steps {
  margin: 8px 0 12px;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
}
.install-steps li { margin-bottom: 6px; }
.install-steps strong { color: var(--navy); }
.install-steps i { color: var(--gold); margin: 0 2px; }
.install-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(201,168,76,.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.5;
}
.install-success {
  text-align: center;
  padding: 12px;
  background: rgba(45, 122, 68, .07);
  border: 1px solid rgba(45, 122, 68, .25);
  border-radius: 10px;
  color: #2d7a44;
}
.install-success > i { font-size: 30px; color: #2d7a44; margin-bottom: 8px; }
.install-tip {
  background: rgba(45, 122, 68, .08);
  border: 1px solid rgba(45, 122, 68, .22);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.install-tip strong { color: #2d7a44; }
.install-tip i { color: var(--navy); }
.install-success strong { display: block; margin: 6px 0 4px; font-size: 14px; color: var(--navy); }
.install-success p { font-size: 12.5px; color: var(--text-soft); margin: 0; }

/* Bannière d'accueil contextuelle au-dessus des intentions */
.chat-welcome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin: 0;
  background: linear-gradient(180deg,
    rgba(201,168,76,.10) 0%,
    rgba(201,168,76,.04) 100%);
  border-bottom: 1px solid rgba(201,168,76,.18);
  flex-shrink: 0;
}
.chat-welcome-icon {
  color: var(--gold);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.chat-welcome-text { flex: 1; min-width: 0; }
.chat-welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: .01em;
  margin-bottom: 3px;
}
.chat-welcome-body {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(245,240,232,.75);
  font-style: italic;
}

/* Bandeau de modération (message bloqué) */
.chat-mod-bar {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 0 14px 8px;
  background: rgba(220, 60, 60, .12);
  border: 1px solid rgba(220, 60, 60, .35);
  border-radius: 10px;
  color: rgba(245,240,232,.92);
  font-size: 12.5px;
  line-height: 1.45;
  animation: modIn .2s ease;
}
.chat-mod-bar.visible { display: flex; }
.chat-mod-bar > i {
  color: #ff8a8a;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.chat-mod-text { flex: 1; }
.chat-mod-text strong { color: #ffb4b4; display: block; margin-bottom: 2px; }
.chat-mod-close {
  background: none;
  border: none;
  color: rgba(245,240,232,.5);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
}
.chat-mod-close:hover { color: var(--cream); }
@keyframes modIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Formulaire */
.chat-form-wrap {
  border-top: 1px solid var(--border-mid);
  padding: 12px 14px;
  flex-shrink: 0;
}
.chat-form-wrap form {
  display: flex;
  gap: 8px;
  align-items: center;
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border-mid);
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 13px;
  font-family: var(--font-ui);
  color: var(--cream);
  outline: none;
  transition: border-color .15s;
}
#chat-input::placeholder { color: var(--text-soft); }
#chat-input:focus { border-color: rgba(201,168,76,.5); }
.chat-send {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: #1a2744;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s, transform .1s;
}
.chat-send:hover { background: #d4af5a; }
.chat-send:active { transform: scale(.93); }

/* Invitation connexion */
.chat-login-prompt {
  border-top: 1px solid var(--border-mid);
  padding: 20px 16px;
  text-align: center;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.chat-login-prompt .fa-solid {
  font-size: 20px;
  color: var(--text-soft);
  opacity: .5;
}
.chat-login-prompt p {
  font-size: 12.5px;
  color: var(--text-soft);
}
.chat-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--navy);
  background: var(--gold);
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s;
}
.chat-login-btn:hover { background: #d4af5a; }
.ch-reset:hover { background: var(--cream-mid); color: var(--text); }

/* ── Vue visiteur (non connecté) : preuve sociale ── */
.chat-visitor {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 28px;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.chat-visitor-stats {
  width: 100%;
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,.02));
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 14px;
}
.chat-visitor-count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.chat-visitor-count i {
  color: var(--gold);
  font-size: 20px;
}
.chat-visitor-count span {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.chat-visitor-label {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(245,240,232,.7);
  letter-spacing: .02em;
}
.chat-visitor-mosaic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}
.chat-visitor-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.chat-visitor-avatar i { font-size: 13px; }
.chat-visitor-more {
  min-width: 32px; height: 32px;
  border-radius: 999px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  color: var(--cream);
  font-size: 12px; font-weight: 700;
  border: 1px dashed rgba(255,255,255,.18);
}
.chat-visitor-empty {
  font-size: 12px; font-style: italic;
  color: var(--text-soft);
  padding: 8px;
}
.chat-visitor-cta {
  padding: 18px 14px 4px;
  border-top: 1px dashed rgba(255,255,255,.10);
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.chat-visitor-cta .fa-lock {
  font-size: 18px;
  color: var(--text-soft);
  opacity: .5;
}
.chat-visitor-cta p {
  font-size: 12.5px;
  color: rgba(245,240,232,.75);
  line-height: 1.55;
  max-width: 320px;
}


/* ═══════════════════════════════════════════════
   CHAPELET — MODE AUDIO SOLO + SÉLECTEUR DE MYSTÈRES
═══════════════════════════════════════════════ */

/* Bascule Tactile / Audio */
/* Indice de découverte du mode audio guidé (1ère fois) */
.ch-audio-discover {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 0;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(201,168,76,.18), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text);
  position: relative;
  animation: discoverPulse 2.2s ease-in-out 2;
}
.ch-audio-discover[hidden] { display: none; }
.ch-audio-discover > i:first-child { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.ch-audio-discover span { flex: 1; padding-right: 12px; }
.ch-audio-discover-x {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: var(--text-soft);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.ch-audio-discover-x:hover { color: var(--text); }
@keyframes discoverPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%      { box-shadow: 0 0 0 4px rgba(201,168,76,.18); }
}

.ch-mode-toggle {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  margin: 0 0 12px;
  width: fit-content;
}
.ch-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 7px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.ch-mode-btn:hover { color: var(--text); }
.ch-mode-btn.active {
  background: var(--chapelet);
  color: white;
  box-shadow: 0 1px 4px rgba(153,53,86,.25);
}
.ch-mode-btn i { font-size: 11px; }

/* Sélecteur de mystères (avec jours en sous-titre) */
.ch-myst-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.ch-myst-pill {
  background: white;
  border: 1.5px solid var(--border-mid);
  border-radius: 12px;
  padding: 7px 8px 6px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 46px;
  position: relative;
}
.ch-myst-name-main {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.1;
}
.ch-myst-days {
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: .02em;
  line-height: 1.1;
}
.ch-myst-pill:hover {
  border-color: var(--chapelet);
}
.ch-myst-pill:hover .ch-myst-name-main { color: var(--chapelet); }
.ch-myst-pill.active {
  background: var(--chapelet);
  border-color: var(--chapelet);
  box-shadow: 0 2px 6px rgba(153,53,86,.25);
}
.ch-myst-pill.active .ch-myst-name-main,
.ch-myst-pill.active .ch-myst-days { color: white; }
.ch-myst-pill.active .ch-myst-days { opacity: .8; }
/* Point doré sur le mystère du jour */
.ch-myst-pill.day-default::before {
  content: '';
  position: absolute;
  top: 5px; right: 6px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(201,168,76,.6);
}

/* Contrôles audio (visibles en mode audio) */
.ch-audio-ctrls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(153,53,86,.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-mid);
}
.ch-audio-ctrls[hidden] { display: none; }
.ch-audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ch-audio-label {
  font-weight: 500;
  color: var(--text-soft);
  flex-shrink: 0;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ch-audio-label i { color: var(--chapelet); font-size: 11px; }

/* Select voix — design propre, agnostique navigateur */
.ch-voice-select {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%237a756e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.ch-voice-select:focus {
  outline: 2px solid var(--chapelet);
  outline-offset: 1px;
  border-color: var(--chapelet);
}
.ch-voice-select optgroup { font-style: normal; font-weight: 600; color: var(--chapelet); }

.ch-speed-pills {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: 10px;
  padding: 2px;
  border: 1px solid var(--border);
}
.ch-speed-pill {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ch-speed-pill:hover { color: var(--text); }
.ch-speed-pill.active {
  background: var(--chapelet);
  color: white;
}
.ch-audio-hint {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
  text-align: right;
}

/* Bouton principal en mode audio : pulsation + look "lecture" */
.ch-tap.audio-playing {
  background: linear-gradient(135deg, var(--chapelet), #7a2843);
  animation: chTapPulse 2s ease-in-out infinite;
}
@keyframes chTapPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(153,53,86,.3); }
  50%       { box-shadow: 0 4px 18px rgba(153,53,86,.55); }
}

/* Mobile : toggle/sélecteur compacts */
@media (max-width: 640px) {
  .ch-mode-toggle { width: 100%; }
  .ch-mode-btn { flex: 1; justify-content: center; padding: 7px 8px; font-size: 12px; }
  .ch-myst-selector { gap: 5px; }
  .ch-myst-pill {
    padding: 6px 4px 5px;
    border-radius: 10px;
    min-height: 42px;
  }
  .ch-myst-name-main { font-size: 11.5px; }
  .ch-myst-days { font-size: 9px; }
  .ch-audio-ctrls { padding: 8px 12px; gap: 7px; }
  .ch-audio-hint { display: none; }    /* masqué : la hint reste dans le bouton principal */
  .ch-audio-label { min-width: 0; font-size: 11.5px; }
  .ch-audio-label .fa-microphone,
  .ch-audio-label .fa-gauge-high { display: none; }   /* gain de place sur petit écran */
  .ch-voice-select { font-size: 11.5px; padding: 6px 26px 6px 8px; }
  .ch-myst-pill.day-default::before { top: 3px; right: 3px; width: 5px; height: 5px; }
}


/* ══════════════════════════════════════════════
   LOGO IMG (SVG remplaçant la croix CSS)
══════════════════════════════════════════════ */
.logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
}
/* Masquer l'ancienne croix CSS si elle reste dans le DOM */
.logo-cross { display: none; }


/* ══════════════════════════════════════════════
   SEMAINE — VUE TABULAIRE
══════════════════════════════════════════════ */

/* Filtres pays + type */
.wk-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf6;
}
.wk-filt-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.wk-filt-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6b6357;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wk-filt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #8a8275;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.wk-filt-pill:hover { border-color: var(--gold); color: #1e1c18; }
.wk-filt-pill.active {
  background: var(--gold-light, #fff4d6);
  border-color: var(--gold);
  color: #1e1c18;
  font-weight: 500;
}
.wk-filt-pill .src-flag { margin-left: 0; }
.wk-filt-hint {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: #8a8275;
  font-style: italic;
  margin-left: auto;
}

/* Logique de masquage par filtre */
.wk-panels.hide-fr        .wk-row.country-fr    { display: none; }
.wk-panels.hide-be        .wk-row.country-be    { display: none; }
.wk-panels.hide-ch        .wk-row.country-ch    { display: none; }
.wk-panels.hide-ca        .wk-row.country-ca    { display: none; }
.wk-panels.hide-ci        .wk-row.country-ci    { display: none; }
.wk-panels.hide-messes    .wk-row.type-messes   { display: none; }
.wk-panels.hide-offices   .wk-row.type-offices  { display: none; }
.wk-panels.hide-chapelets .wk-row.type-chapelets{ display: none; }
.wk-panels.hide-autres    .wk-row.type-autres   { display: none; }

/* Barre d'onglets jours */
.wk-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.wk-tabs::-webkit-scrollbar { display: none; }

.wk-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--r-md) var(--r-md) 0 0;
  cursor: pointer;
  transition: background .15s, color .15s;
  color: var(--text-mid);
  position: relative;
  bottom: -1px;
  border-bottom: 2px solid transparent;
}
.wk-tab-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wk-tab-num {
  font-size: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1;
}
.wk-tab:hover {
  background: rgba(201,168,76,.08);
  color: var(--text);
}
.wk-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  background: rgba(201,168,76,.06);
}
.wk-tab.active .wk-tab-name { color: var(--gold); }
.wk-tab.active .wk-tab-num  { color: var(--navy); font-weight: 600; }

/* Panneau du jour sélectionné */
.wk-panels { position: relative; }

.wk-panel { display: none; animation: fadeIn .18s ease; }
.wk-panel.active { display: block; }

.wk-panel-date {
  font-size: 13px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--text-soft);
  padding: 12px 16px 4px;
  letter-spacing: .02em;
  text-transform: capitalize;
}

/* Liste des offices */
.wk-rows {
  display: flex;
  flex-direction: column;
  padding: 4px 0 16px;
}

.wk-row {
  border-bottom: 1px solid var(--border);
}
.wk-row:last-child { border-bottom: none; }

.wk-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: default;
}
.wk-row-main[data-expandable] {
  cursor: pointer;
  transition: background .12s;
}
.wk-row-main[data-expandable]:hover {
  background: rgba(30,28,24,.04);
}

.wk-row-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  min-width: 52px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
/* Badge "XXhYY Paris" sous l'heure locale dans la vue semaine (user hors CET/CEST) */
.wk-row-paris {
  font-size: 9.5px;
  color: var(--text-soft);
  font-style: italic;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(0,0,0,.04);
  white-space: nowrap;
  letter-spacing: .01em;
  opacity: .85;
}
.wk-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
  background: rgba(30,28,24,.06);
  color: var(--text-mid);
}
.wk-row-label {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.3;
}
.wk-row-arrow {
  font-size: 10px;
  color: var(--text-soft);
  flex-shrink: 0;
  transition: transform .2s ease;
}

/* Couleur de l'icône selon le type d'office */
.wk-row.laudes   .wk-row-icon { background: rgba(83,74,183,.1);  color: var(--laudes); }
.wk-row.matin    .wk-row-icon { background: rgba(15,110,86,.1);  color: var(--matin); }
.wk-row.messe    .wk-row-icon { background: rgba(133,79,11,.1);  color: var(--messe); }
.wk-row.chapelet .wk-row-icon { background: rgba(153,53,86,.1);  color: var(--chapelet); }
.wk-row.vepres   .wk-row-icon { background: rgba(24,95,165,.1);  color: var(--vepres); }
.wk-row.soiree   .wk-row-icon { background: rgba(158,74,31,.1);  color: var(--soiree); }
.wk-row.complies .wk-row-icon { background: rgba(68,68,65,.1);   color: var(--complies); }

/* Panneau sources dépliable */
.wk-row-srcs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px 66px;
  animation: fadeIn .15s ease;
}
.wk-row-srcs.hidden { display: none; }

.wc-src-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: var(--cream-mid);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.wc-src-btn:hover {
  background: white;
  border-color: var(--gold);
}
.wc-radio { color: var(--messe); }
.wc-radio:hover { color: var(--messe); }
.wc-link  { color: var(--navy-soft); }


/* ══════════════════════════════════════════════
   MODAL À PROPOS
══════════════════════════════════════════════ */
.about-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.about-modal:not(.hidden) { pointer-events: auto; }

.about-panel {
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px 24px 40px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.about-modal:not(.hidden) .about-panel {
  transform: translateY(0);
}

/* Bouton fermer (réutilise .auth-close) */
.about-panel .auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--text-soft);
  background: rgba(30,28,24,.07);
}
.about-panel .auth-close:hover {
  color: var(--text);
  background: rgba(30,28,24,.13);
}

/* Zone logo + titre */
.about-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  margin-bottom: 24px;
  text-align: center;
}
.about-logo img {
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(26,39,68,.18);
}
.about-title {
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: .01em;
}
.about-tagline {
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
}

/* Corps */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
}
.about-body > p { color: var(--text); }

.about-section h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.about-section h3 .fa-solid { color: var(--gold); font-size: 12px; }
.about-section p { font-size: 13px; color: var(--text-mid); }
.about-section a { color: var(--navy); text-underline-offset: 3px; }

/* Bloc installation */
.about-install {
  margin-top: 4px;
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.about-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.about-install-btn:hover  { background: #d4af5a; }
.about-install-btn:active { transform: scale(.96); }
.about-install-note {
  font-size: 12px;
  color: rgba(245,240,232,.55);
  line-height: 1.5;
}

/* Pied de modal */
.about-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}
.about-footer a {
  color: var(--text-soft);
  text-decoration: none;
}
.about-footer a:hover { color: var(--navy); }

/* Responsive — desktop : modale centrée */
@media (min-width: 600px) {
  .about-modal {
    align-items: center;
  }
  .about-panel {
    border-radius: 20px;
    max-height: 85dvh;
    transform: translateY(20px) scale(.97);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .about-modal:not(.hidden) .about-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════
   MODAL CONTACT
═══════════════════════════════════════════ */
.contact-modal {
  position: fixed; inset: 0;
  z-index: 510;
  background: rgba(26,39,68,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow-y: auto;
}
.contact-modal.hidden { display: none; }

.contact-panel {
  position: relative;
  background: var(--cream);
  width: 100%;
  max-width: 520px;
  border-radius: 22px 22px 0 0;
  padding: 24px 22px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
  animation: contactSlideUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes contactSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.contact-header {
  text-align: center;
  margin-bottom: 18px;
}
.contact-icon {
  display: block;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 8px;
}
.contact-tagline {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

.contact-form { margin-top: 4px; }

/* (Anciens styles .contact-types / .contact-type-pill supprimés —
   les boutons de catégorie ont été retirés pour simplifier le formulaire.
   Le type est désormais détecté automatiquement côté serveur.) */

.contact-group { margin-bottom: 14px; }
.contact-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-optional {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 11.5px;
}
.contact-group input[type="email"],
.contact-group textarea {
  width: 100%;
  padding: 11px 13px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s;
  resize: vertical;
}
.contact-group input:focus,
.contact-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-group textarea { min-height: 110px; line-height: 1.5; }

.contact-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

.contact-feedback {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}
.contact-feedback.hidden { display: none; }
.contact-feedback.ok {
  background: #dcfce7;
  color: #166534;
}
.contact-feedback.err {
  background: #fee2e2;
  color: #991B1B;
}

.contact-submit {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .1s;
}
.contact-submit:hover:not(:disabled) {
  background: var(--navy-mid);
  transform: translateY(-1px);
}
.contact-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Desktop : modale centrée et flottante */
@media (min-width: 600px) {
  .contact-modal {
    align-items: center;
    padding: 20px;
  }
  .contact-panel {
    border-radius: 18px;
    max-height: 88dvh;
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  /* (ancien override .contact-types retiré) */
}


/* ════════════════════════════════════════════════════════════
   ═  REFONTE MOBILE COMPLÈTE — surcharge tout ce qui débordait
   ═  ou n'était pas optimisé pour les écrans tactiles.
   ═  Variables internes pour gérer la stack des éléments fixés.
   ════════════════════════════════════════════════════════════ */

:root {
  --bottom-nav-h: 64px;        /* hauteur réelle bottom-nav */
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-top:     env(safe-area-inset-top, 0px);
}

@media (max-width: 640px) {

  /* ── Body : padding bas = juste la hauteur de la bottom-nav (le footer
     global, navy, absorbe la zone des FAB → pas besoin de padding en plus,
     qui créait un gros gap beige sous le footer). ── */
  body {
    padding-bottom: calc(45px + max(10px, env(safe-area-inset-bottom, 0px)));
    font-size: 15px;
  }
  body.player-open {
    /* + hauteur du lecteur radio (~60px) quand il est ouvert */
    padding-bottom: calc(45px + 62px + max(10px, env(safe-area-inset-bottom, 0px)));
  }

  /* ── Header compact ── */
  .site-header { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
  .header-inner {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }
  .logo-img { width: 30px; height: 30px; }
  .logo-site-name { display: none; }   /* on garde uniquement l'icône ronde */

  /* Bouton burger : zone tactile + visuel */
  .hamburger-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
  }

  /* ── Main : padding latéral plus serré ── */
  .site-main { padding: 14px 14px 8px; }


  /* ════════════════════════════════════════════
     AUJOURD'HUI
     ════════════════════════════════════════════ */

  /* Welcome banner : layout vertical propre */
  .welcome-banner {
    padding: 18px 16px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
  }
  .wb-close {
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    font-size: 13px;
  }
  .wb-body { gap: 10px; }
  .wb-title { font-size: 17px; margin-bottom: 5px; padding-right: 32px; }
  .wb-desc  { font-size: 13.5px; line-height: 1.55; margin-bottom: 10px; }
  .wb-features { gap: 4px; }
  .wb-features li { font-size: 12.5px; line-height: 1.4; }
  .wb-footer {
    margin-top: 14px;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .wb-start { width: 100%; justify-content: center; padding: 12px; }
  .wb-dismiss { text-align: center; font-size: 12px; }

  /* Widget prochain office : empilé sur très petits, sinon serré */
  .next-office-widget {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    gap: 10px;
  }
  .no-prayer { font-size: 18px; }
  .no-time   { font-size: 26px; }
  .no-srcs, .no-countdown { font-size: 11px; }

  /* Bannière du jour : tu vois la date + fête sans rogner */
  .day-banner {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    gap: 10px;
  }
  .day-feast { font-size: 17px; line-height: 1.2; }
  .feast-pill {
    font-size: 10px;
    padding: 3px 10px;
    align-self: flex-start;
  }

  /* Filtres prières : scroll horizontal fluide */
  .prayer-filters {
    gap: 6px;
    margin-bottom: 14px;
    padding: 2px 14px 8px;       /* extension hors marge pour effet bord */
    margin-left: -14px;
    margin-right: -14px;
  }
  .pf {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 18px;
    flex-shrink: 0;
    min-height: 36px;
  }

  /* Timeline : items plus aérés, actions toujours visibles */
  .timeline { gap: 8px; margin-bottom: 16px; }
  .tl-item {
    padding: 12px 14px;
    border-radius: 12px;
    border-left-width: 3px;
    gap: 10px;
    align-items: flex-start;
  }
  .tl-item:hover { transform: none; }   /* pas de translate au tap */
  .tl-time {
    font-size: 13px;
    min-width: 42px;
    font-weight: 500;
  }
  .tl-marker { display: none; }         /* gain d'espace, la couleur reste sur le bord gauche */
  .tl-prayer { font-size: 14.5px; line-height: 1.3; margin-bottom: 5px; }
  .tl-sources { gap: 5px; }
  .tl-src {
    font-size: 11.5px;
    padding: 5px 10px;
    border-radius: 8px;
    min-height: 30px;
  }
  .tl-actions {
    flex-basis: 100%;
    flex-direction: row !important;
    justify-content: flex-end;
    align-items: flex-start; /* aligne le haut de Mystères et Intentions */
    gap: 6px;
    padding: 4px 0 0;
    margin-top: 4px;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
  }
  .tl-actions .tl-badge { align-self: center; }
  .tl-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
  }
  .tl-breviary-btn {
    font-size: 11.5px;
    padding: 5px 10px;
    min-height: 30px;
  }
  .tl-body { flex: 1; min-width: 0; }


  /* ════════════════════════════════════════════
     SEMAINE — scroll horizontal carte par carte
     ════════════════════════════════════════════ */
  .week-cards {
    gap: 12px;
    padding: 4px 14px 12px;
    margin-left: -14px;
    margin-right: -14px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    display: flex;
    -webkit-overflow-scrolling: touch;
  }
  .week-cards::-webkit-scrollbar { display: none; }
  .wc-day {
    width: 80vw;
    max-width: 320px;
    min-width: 240px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }


  /* ════════════════════════════════════════════
     MOIS — calendrier lisible et tappable
     ════════════════════════════════════════════ */
  .month-nav {
    margin-bottom: 14px;
    padding: 0;
  }
  .month-title { font-size: 19px; }
  .month-btn {
    font-size: 13px;
    padding: 6px 10px;
    min-height: 36px;
  }
  .cal-grid { gap: 3px; margin-bottom: 12px; }
  .cal-head { font-size: 10.5px; padding: 2px 0; }
  .cal-day {
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 8px;
  }
  .cal-num { font-size: 12.5px; }
  .cal-day.today .cal-num {
    width: 20px; height: 20px;
    font-size: 10.5px;
  }
  .cal-saint { display: none; }   /* trop petit pour être lisible — info disponible via tap */
  .month-legend { gap: 10px; font-size: 10px; }


  /* ════════════════════════════════════════════
     SOURCES — cartes une colonne sur mobile
     ════════════════════════════════════════════ */
  .sources-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sources-title { font-size: 17px; margin-bottom: 12px; margin-top: 18px; }
  .src-card {
    padding: 14px 16px;
    border-radius: 12px;
  }
  .src-name { font-size: 16px; }
  .src-info { font-size: 12px; }


  /* ════════════════════════════════════════════
     FOOTER — stacking propre, lisible
     ════════════════════════════════════════════ */
  .site-footer {
    padding: 28px 18px 24px;
    margin-top: 32px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .footer-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .footer-nav { align-items: center; gap: 6px; }
  .footer-legal { text-align: center; font-size: 11px; line-height: 1.7; }
  .footer-divider { margin-top: 22px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    font-size: 10.5px;
    margin-top: 14px;
  }
  .footer-daily-prayer {
    font-size: 12px;
    text-align: center;
    justify-content: center;
    line-height: 1.55;
    max-width: 100%;
  }


  /* ════════════════════════════════════════════
     ÉLÉMENTS FIXES — stack propre depuis le bas
     Ordre vertical (de bas en haut) :
       safe-area > bottom-nav > [radio-player] > FAB chapelet > greg-btn
     ════════════════════════════════════════════ */
  .bottom-nav {
    padding: 8px 0 max(8px, var(--safe-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  }
  .bn { font-size: 10.5px; gap: 2px; padding: 3px 6px; min-width: 52px; }
  .bn-icon { font-size: 16px; }

  /* Lecteur radio collé PILE au-dessus de la bottom-nav (hauteur réelle 55px
     = 45px contenu + padding bas dynamique). Évite le gap beige. */
  .radio-player {
    bottom: calc(45px + max(10px, env(safe-area-inset-bottom, 0px)));
    left: 0; right: 0;
    border-radius: 0;
    padding: 10px 14px;
    gap: 10px;
  }
  .rp-controls { gap: 8px; }
  .rp-btn-play {
    width: 38px; height: 38px;
    font-size: 14px;
  }
  /* Slider volume conservé (plus compact sur mobile) */
  .rp-vol-icon { font-size: 11px; }
  .rp-vol { width: 60px; }
  /* Bouton fermer : zone tactile élargie (≥40px) bien visible */
  .rp-btn-close {
    width: 40px; height: 40px;
    min-width: 40px;
    background: rgba(255,255,255,.14);
    color: var(--cream);
    font-size: 14px;
    z-index: 1;            /* sécurité contre tout overlap */
    position: relative;
  }
  .rp-btn-close:active { background: rgba(255,255,255,.28); transform: scale(.92); }
  .rp-name { max-width: 110px; font-size: 13.5px; }
  .rp-sub  { font-size: 11px; opacity: .65; }

  /* FAB chapelet : au-dessus de la nav (et du player si ouvert) */
  .chapelet-fab {
    width: 50px; height: 50px;
    right: 14px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 14px);
  }
  body.player-open .chapelet-fab {
    bottom: calc(var(--bottom-nav-h) + 64px + var(--safe-bottom) + 14px);
  }
  .ch-fab-icon { width: 28px; height: 28px; }

  /* Bouton grégorien : décalé uniquement si le FAB chapelet est présent */
  .greg-btn {
    height: 38px;
    padding: 0 12px 0 10px;
    font-size: 11.5px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px);
    right: 14px;
  }
  body:has(.chapelet-fab) .greg-btn { right: 76px; }
  body.player-open .greg-btn {
    bottom: calc(var(--bottom-nav-h) + 64px + var(--safe-bottom) + 18px);
  }


  /* ════════════════════════════════════════════
     PANELS LATÉRAUX — plein écran sur mobile
     ════════════════════════════════════════════ */
  .breviary-panel,
  .profile-panel {
    width: 100vw;
    max-width: 100vw;
  }
  .breviary-header,
  .profile-header {
    padding: 14px 16px;
    padding-top: max(14px, var(--safe-top));
  }
  .breviary-prayer-name { font-size: 18px; }
  .profile-header-title { font-size: 17px; }
  .breviary-body,
  .profile-body {
    padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 24px);
  }


  /* ════════════════════════════════════════════
     MODAL AUTH & ABOUT — bottom sheet propre
     ════════════════════════════════════════════ */
  .auth-modal {
    padding: 0;
    align-items: flex-end;
  }
  .auth-panel {
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    padding-bottom: max(20px, var(--safe-bottom));
  }


  /* ════════════════════════════════════════════
     CHAPELET MODAL — pleine largeur mobile
     ════════════════════════════════════════════ */
  .chapelet-modal { align-items: stretch; }
  .ch-panel {
    border-radius: 18px 18px 0 0;
    max-height: 100dvh;
    padding: 12px 18px max(20px, var(--safe-bottom));
  }


  /* ════════════════════════════════════════════
     CHAT PANEL — full screen, scroll OK
     ════════════════════════════════════════════ */
  .chat-panel {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }


  /* ════════════════════════════════════════════
     SAFE AREA — éviter notch / barre du bas iOS
     ════════════════════════════════════════════ */
  .site-header { padding-top: var(--safe-top); }
}


/* ════════════════════════════════════════════
   Très petits écrans (≤ 380 px) — encore plus serré
   ════════════════════════════════════════════ */
@media (max-width: 380px) {
  .site-main { padding: 12px 10px 6px; }
  .day-feast { font-size: 16px; }
  .no-prayer { font-size: 16px; }
  .no-time   { font-size: 22px; }
  .tl-prayer { font-size: 13.5px; }
  .tl-time   { font-size: 12px; min-width: 38px; }
  .tl-src    { font-size: 11px; padding: 4px 8px; }
  .month-title { font-size: 17px; }
  .cal-day { min-height: 44px; }
  .cal-num { font-size: 11.5px; }
  .greg-btn .greg-label { display: none; }   /* gain d'espace : juste l'icône */
  .greg-btn { padding: 0 10px; }
}


/* ════════════════════════════════════════════
   Adaptation paysage mobile (petite hauteur)
   ════════════════════════════════════════════ */
@media (max-height: 500px) and (max-width: 900px) {
  .welcome-banner { display: none; }    /* libère l'espace en paysage court */
  .next-office-widget { padding: 10px 14px; }
  .no-prayer { font-size: 16px; }
  .no-time   { font-size: 22px; }
}


/* ════════════════════════════════════════════════════════════
   ═  BIBLE INTERACTIVE
   ════════════════════════════════════════════════════════════ */

/* Header Bible */
.bible-header {
  margin-bottom: 18px;
}
.bible-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 12px;
}
.bible-title i { color: var(--gold); font-size: 24px; }
.bible-subtitle {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}

/* Toolbar : recherche + favoris */
.bible-toolbar {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 18px;
}
.bible-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.bible-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 14px;
  pointer-events: none;
}
.bible-search {
  width: 100%;
  padding: 12px 38px 12px 38px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.bible-search:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.bible-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cream-mid);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 11px;
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bible-search-clear:hover { background: var(--border-mid); color: var(--text); }

/* ── Dropdown de suggestions (apparaît sous la barre de recherche) ── */
.bible-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(26,39,68,.18);
  max-height: 480px;
  overflow-y: auto;
  animation: bibleDropdownSlide .2s ease;
}
@keyframes bibleDropdownSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bible-search-dropdown[hidden] { display: none; }

.bible-dd-section { padding: 4px 0; }
.bible-dd-section + .bible-dd-section { border-top: 1px solid var(--border); }
.bible-dd-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
  padding: 8px 14px 4px;
}
.bible-dd-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .12s;
  font-family: inherit;
  color: var(--text);
}
.bible-dd-item:hover {
  background: var(--cream);
}
.bible-dd-item:focus-visible {
  background: var(--cream-mid);
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* Référence directe */
.bible-dd-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bible-dd-ref-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--navy);
  font-weight: 500;
}
.bible-dd-ref > i { color: var(--gold); font-size: 12px; }

/* Passages célèbres */
.bible-dd-curated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bible-dd-curated-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--text);
  flex: 1;
}
.bible-dd-curated-ref {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Résultats plein texte */
.bible-dd-fulltext { padding: 10px 14px; }
.bible-dd-ft-ref {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 3px;
  letter-spacing: .02em;
}
.bible-dd-ft-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-mid);
  /* Tronque à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bible-dd-ft-text mark {
  background: rgba(201,168,76,.45);
  color: var(--text);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

.bible-dd-empty {
  padding: 18px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  font-style: italic;
}

@media (max-width: 640px) {
  .bible-search-dropdown {
    max-height: 60vh;
    border-radius: 12px;
  }
  .bible-dd-curated-title { font-size: 14px; }
  .bible-dd-ft-text { font-size: 12.5px; }
}
.bible-toolbar-actions { display: flex; gap: 8px; }
.bible-tool-btn {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: var(--text-mid);
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.bible-tool-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}
.bible-tool-btn i { color: var(--gold); }

/* Sélecteur de traduction (LSG/BDS/NBS) */
.bible-trans-selector {
  display: inline-flex;
  gap: 2px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}
.bible-trans-btn {
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .15s;
}
.bible-trans-btn:hover { color: var(--navy); }
.bible-trans-btn.active {
  background: var(--navy);
  color: white;
  box-shadow: 0 1px 4px rgba(26,39,68,.18);
}

/* Layout : sidebar + reader */
.bible-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: flex-start;
}

/* Sidebar livres */
.bible-sidebar {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.bible-section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  padding: 8px 8px 6px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.bible-section-title:first-child {
  border-top: none;
  margin-top: 0;
}
.bible-books {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bible-book-btn {
  background: transparent;
  border: none;
  padding: 7px 10px;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-mid);
  border-radius: 7px;
  cursor: pointer;
  transition: all .12s;
}
.bible-book-btn:hover {
  background: var(--cream);
  color: var(--navy);
}
.bible-book-btn.active {
  background: var(--navy);
  color: white;
  font-weight: 500;
}

/* Reader = zone de lecture */
.bible-reader {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  min-height: 400px;
}

/* Empêche tout débordement horizontal — cause majeure du décalage page sur mobile */
#tab-bible,
#tab-bible .bible-header,
#tab-bible .bible-toolbar,
#tab-bible .bible-layout,
#tab-bible .bible-reader,
#tab-bible .bible-welcome {
  max-width: 100%;
  overflow-x: hidden;
}
/* Le body lui-même : pas de scroll horizontal sur mobile, jamais */
@media (max-width: 640px) {
  body, html { overflow-x: hidden; max-width: 100vw; }
}

/* Welcome screen — étagère avec 3 Bibles */
.bible-welcome {
  text-align: center;
  padding: 30px 20px 24px;
}
.bible-welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
}
.bible-welcome-sub {
  color: var(--text-soft);
  font-size: 13.5px;
  margin: 0 0 30px;
}
.bible-welcome-trans-info {
  max-width: 580px;
  margin: 14px auto 28px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.bible-welcome-trans-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
}
.bible-welcome-trans-year {
  color: var(--text-soft);
  font-size: 16px;
  font-style: italic;
}
.bible-welcome-translation-desc {
  color: var(--text-mid);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* CTA "Ouvrir la Bible" */
.bible-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(26,39,68,.18);
}
.bible-open-btn strong {
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
}
.bible-open-btn:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(26,39,68,.28);
}
.bible-open-btn:hover .bible-open-arrow {
  transform: translateX(3px);
}
.bible-open-arrow {
  font-size: 12px;
  transition: transform .15s;
}

/* ─── Étagère + couvertures ─── */
.bible-shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
  perspective: 1200px;
  padding: 16px 0 24px;
}
.bible-cover {
  position: relative;
  width: 175px;
  height: 240px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  border-radius: 4px 8px 8px 4px;
}
.bible-cover:hover {
  transform: translateY(-8px) rotateY(-12deg) scale(1.04);
}
.bible-cover.is-active {
  transform: translateY(-12px) rotateY(-8deg) scale(1.06);
}
.bible-cover.is-active:hover {
  transform: translateY(-16px) rotateY(-12deg) scale(1.08);
}

/* Tranche du livre */
.bible-cover-spine {
  position: absolute;
  left: -3px; top: 4px;
  width: 6px;
  height: calc(100% - 8px);
  background: linear-gradient(to right, rgba(0,0,0,.4), rgba(0,0,0,.2));
  border-radius: 2px 0 0 2px;
}
/* Pages (tranche droite) */
.bible-cover-pages {
  position: absolute;
  right: -3px; top: 4px;
  width: 6px;
  height: calc(100% - 8px);
  background: repeating-linear-gradient(
    to bottom,
    #f5f0e8 0,
    #f5f0e8 1px,
    #ddd5c0 1px,
    #ddd5c0 2px
  );
  border-radius: 0 2px 2px 0;
  box-shadow: inset -1px 0 2px rgba(0,0,0,.15);
}

/* Front (couverture principale) */
.bible-cover-front {
  position: absolute;
  inset: 0;
  border-radius: 4px 8px 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 14px;
  box-shadow:
    0 8px 24px rgba(0,0,0,.25),
    inset 0 0 0 1px rgba(255,255,255,.08);
  font-family: 'Cormorant Garamond', serif;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Style "navy" (LSG) — bleu marine ornementé doré */
.bible-cover-navy .bible-cover-front {
  background:
    radial-gradient(circle at 30% 20%, rgba(201,168,76,.10), transparent 50%),
    linear-gradient(160deg, #1a2744 0%, #0d172e 100%);
}
.bible-cover-navy .bible-cover-cross span,
.bible-cover-navy .bible-cover-divider {
  background: var(--gold);
}
.bible-cover-navy .bible-cover-the,
.bible-cover-navy .bible-cover-bible,
.bible-cover-navy .bible-cover-version,
.bible-cover-navy .bible-cover-year {
  color: var(--gold);
}
.bible-cover-navy .bible-cover-ornament-top,
.bible-cover-navy .bible-cover-ornament-bottom {
  border-color: rgba(201,168,76,.45);
}

/* Style "leather" (BDS) — bordeaux cuir blanc */
.bible-cover-leather .bible-cover-front {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(160deg, #6b1f2a 0%, #3d0c14 100%);
}
.bible-cover-leather .bible-cover-cross span,
.bible-cover-leather .bible-cover-divider {
  background: rgba(255,255,255,.85);
}
.bible-cover-leather .bible-cover-the,
.bible-cover-leather .bible-cover-bible,
.bible-cover-leather .bible-cover-version,
.bible-cover-leather .bible-cover-year {
  color: rgba(255,255,255,.92);
}
.bible-cover-leather .bible-cover-ornament-top,
.bible-cover-leather .bible-cover-ornament-bottom {
  border-color: rgba(255,255,255,.35);
}

/* Style "minimal" (NBS) — crème minimaliste avec accents charbon */
.bible-cover-minimal .bible-cover-front {
  background:
    radial-gradient(circle at 30% 20%, rgba(0,0,0,.04), transparent 50%),
    linear-gradient(160deg, #f5f0e8 0%, #e0d8c5 100%);
  color: #1e1c18;
}
.bible-cover-minimal .bible-cover-cross span,
.bible-cover-minimal .bible-cover-divider {
  background: #1a2744;
}
.bible-cover-minimal .bible-cover-the,
.bible-cover-minimal .bible-cover-bible,
.bible-cover-minimal .bible-cover-version,
.bible-cover-minimal .bible-cover-year {
  color: #1a2744;
}
.bible-cover-minimal .bible-cover-ornament-top,
.bible-cover-minimal .bible-cover-ornament-bottom {
  border-color: rgba(26,39,68,.45);
}

/* Croix dorée centrale */
.bible-cover-cross {
  position: relative;
  width: 32px; height: 36px;
  margin-top: 10px;
}
.bible-cover-cross span:first-child {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 3px; height: 36px;
  border-radius: 1.5px;
}
.bible-cover-cross span:last-child {
  position: absolute;
  top: 9px; left: 0;
  width: 32px; height: 3px;
  border-radius: 1.5px;
}

/* Bloc titre */
.bible-cover-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.bible-cover-the {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  opacity: .8;
}
.bible-cover-bible {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .12em;
  line-height: 1;
  margin: 2px 0 4px;
}
.bible-cover-divider {
  width: 60px; height: 1.5px;
  margin: 4px 0;
  opacity: .7;
}
.bible-cover-version {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1;
}
.bible-cover-year {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  opacity: .8;
  margin-top: 2px;
}

/* Ornements décoratifs */
.bible-cover-ornament-top,
.bible-cover-ornament-bottom {
  width: 80px;
  height: 6px;
  border-top: 1px solid;
  border-bottom: 1px solid;
  position: relative;
}
.bible-cover-ornament-top::before,
.bible-cover-ornament-bottom::before {
  content: '';
  position: absolute;
  inset: 2px 30%;
  border-top: 0.5px solid;
  border-color: inherit;
  opacity: .7;
}

/* Badge "Sélectionnée" */
.bible-cover-active-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(201,168,76,.35);
}

/* Boutons "quick refs" */
.bible-quick-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.bible-quick-ref-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-right: 4px;
}
.bible-quick-ref {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .15s;
}
.bible-quick-ref:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* Mot cliquable individuellement (surlignage granulaire) */
.bible-word {
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
  transition: background .15s;
}
.bible-word:hover {
  background: rgba(201,168,76,.18);
}
.bible-word.word-highlighted {
  background: rgba(255,235,100,.55);
  box-shadow: inset 0 -2px 0 rgba(201,168,76,.65);
}

/* Loading translation indicator */
.bible-loading-trans {
  font-size: 11.5px !important;
  color: var(--text-soft);
  margin-top: 4px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
}

/* ─── Mode invité (pas connecté) : bannière + cadenas ─── */
.bible-guest-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(26,39,68,.05));
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.bible-guest-banner > i {
  color: var(--gold);
  font-size: 16px;
  flex-shrink: 0;
}
.bible-guest-banner > span { flex: 1; min-width: 0; }
.bible-guest-banner strong { color: var(--navy); font-weight: 600; }
.bible-guest-banner-cta {
  flex-shrink: 0;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.bible-guest-banner-cta:hover { background: var(--navy-mid); transform: translateY(-1px); }

/* En mode invité, les boutons highlight & fav (pas share) ont un cadenas + opacité */
.bible-chapter.guest-mode .bible-hi-btn,
.bible-chapter.guest-mode .bible-fav-btn {
  opacity: .55;
  position: relative;
}
.bible-chapter.guest-mode .bible-hi-btn::after,
.bible-chapter.guest-mode .bible-fav-btn::after {
  content: '\f023';                /* fa-lock */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 7px;
  position: absolute;
  bottom: 1px; right: 1px;
  background: var(--cream);
  color: var(--gold);
  border-radius: 50%;
  width: 11px; height: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px var(--border);
}

/* Toast de connexion requise (apparaît en bas de l'écran) */
.bible-login-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  z-index: 999;
  background: var(--navy);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  max-width: 92vw;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.bible-login-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bible-login-toast > i {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
}
.bible-login-toast > span { flex: 1; }
.bible-login-toast-cta {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.bible-login-toast-cta:hover { background: var(--gold-pale); }

/* Mobile : bannière empilée */
@media (max-width: 640px) {
  .bible-guest-banner {
    flex-wrap: wrap;
    padding: 10px 14px;
    font-size: 12.5px;
    gap: 8px;
  }
  .bible-guest-banner-cta { width: 100%; padding: 9px 12px; }
  .bible-login-toast {
    left: 12px; right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));   /* au-dessus de la bottom-nav */
    transform: translateY(20px);
    max-width: none;
    flex-wrap: wrap;
    font-size: 12.5px;
  }
  .bible-login-toast.show { transform: translateY(0); }
  .bible-login-toast > span { flex: 1 1 100%; min-width: 0; }
  .bible-login-toast-cta { width: 100%; padding: 9px 12px; }
}

/* Liste des chapitres (grille de numéros) */
.bible-chapter-list-wrap {
  padding: 8px 0;
}
.bible-current-book {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 6px;
}
.bible-chapter-list-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0 0 18px;
}
.bible-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
}
.bible-chapter-btn {
  aspect-ratio: 1;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all .12s;
  display: flex; align-items: center; justify-content: center;
}
.bible-chapter-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  transform: scale(1.05);
}

/* Chapitre affiché */
.bible-chapter { padding: 4px 0; }

/* Top row : bouton "Choisir une autre Bible" + badge traduction active */
.bible-chapter-toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.bible-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .15s;
}
.bible-home-btn i { color: var(--gold); font-size: 12px; }
.bible-home-btn:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.bible-home-btn:hover i { color: var(--gold); }
.bible-current-trans-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

.bible-chapter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.bible-back-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.bible-back-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.bible-chapter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
  flex: 1;
  margin: 0;
}
.bible-chapter-num {
  color: var(--gold);
  font-weight: 600;
  margin-left: 6px;
}
.bible-chapter-nav {
  display: flex;
  gap: 4px;
}
.bible-nav-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.bible-nav-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }

/* Versets */
.bible-verses {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.bible-verse {
  position: relative;
  padding: 6px 8px 6px 36px;
  margin-bottom: 4px;
  border-radius: 6px;
  transition: background .2s;
}
.bible-verse:hover {
  background: var(--cream);
}
.bible-verse:hover .bible-verse-actions {
  opacity: 1;
  pointer-events: auto;
}
.bible-verse.highlighted {
  background: rgba(201,168,76,.18);
}
.bible-verse.highlighted:hover {
  background: rgba(201,168,76,.28);
}
.bible-verse.flash {
  animation: bibleFlash 1.5s ease;
}
@keyframes bibleFlash {
  0%,100% { background: var(--cream); }
  30%     { background: rgba(201,168,76,.5); }
}
.bible-verse-num {
  position: absolute;
  left: 4px; top: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  width: 26px;
  text-align: right;
}
.bible-verse-text {
  display: block;
}
.bible-verse-actions {
  position: absolute;
  right: 6px; top: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  background: white;
  border-radius: 6px;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.bible-verse-action {
  background: transparent;
  border: none;
  width: 28px; height: 28px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
  font-family: 'Outfit', sans-serif;
}
.bible-verse-action:hover { background: var(--cream-mid); color: var(--navy); }
.bible-verse-action.active { color: var(--gold); }
.bible-verse-action.flashed {
  background: var(--gold);
  color: white;
  width: auto;
  padding: 0 8px;
  font-size: 10.5px;
}

/* Loading & erreur */
.bible-loading,
.bible-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft);
}
.bible-spinner {
  width: 32px; height: 32px;
  margin: 0 auto 12px;
  border: 3px solid var(--cream);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bibleSpin 0.8s linear infinite;
}
@keyframes bibleSpin { to { transform: rotate(360deg); } }
.bible-error i { color: #c44; font-size: 24px; margin-bottom: 8px; }
.bible-error-detail {
  font-size: 11px !important;
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, monospace;
  margin-top: 8px !important;
  opacity: .7;
}
.bible-retry {
  background: var(--navy); color: white;
  border: none; border-radius: 8px;
  padding: 8px 16px; margin-top: 10px;
  cursor: pointer; font-family: 'Outfit', sans-serif;
}

/* Overlay derrière le panel favoris (clic = fermeture) */
.bible-fav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.bible-fav-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Panel favoris (slide-in) */
.bible-fav-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--cream);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(0);
  transition: transform .25s ease;
}
.bible-fav-panel.hidden { transform: translateX(100%); pointer-events: none; }
.bible-fav-header {
  background: var(--navy);
  color: var(--cream);
  padding: 18px 20px;
  padding-top: max(18px, env(safe-area-inset-top));
  display: flex; justify-content: space-between; align-items: center;
}
.bible-fav-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  margin: 0;
  color: var(--gold);
  font-weight: 400;
  display: flex; align-items: center; gap: 10px;
}
.bible-fav-close {
  background: rgba(255,255,255,.1);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bible-fav-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}
.bible-fav-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 13.5px;
  padding: 40px 20px;
  line-height: 1.6;
}
.bible-fav-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  transition: all .12s;
}
.bible-fav-item:hover {
  border-color: var(--gold);
  transform: translateX(-2px);
}
.bible-fav-ref {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--navy);
}
.bible-fav-ref i { color: var(--gold); margin-right: 8px; font-size: 13px; }
.bible-fav-remove {
  background: transparent;
  border: none;
  color: var(--text-soft);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.bible-fav-remove:hover { background: #fee; color: #c44; }


/* ── Mobile : sidebar masquée, reader plein écran ── */
@media (max-width: 899px) {
  .bible-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  /* Mobile : on inverse l'ordre — le reader (avec les 3 belles
     Bibles ou le chapitre en cours) passe AU-DESSUS de la sidebar
     des livres → l'utilisateur voit immédiatement les Bibles
     en arrivant, sans scroller pour passer la liste des 66 livres */
  .bible-reader  { order: 1; }
  .bible-sidebar { order: 2; }
  .bible-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .bible-books {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px;
  }
  .bible-book-btn { padding: 9px 10px; }
}
@media (max-width: 640px) {
  .bible-title { font-size: 22px; }
  .bible-title i { font-size: 19px; }
  .bible-subtitle { font-size: 12.5px; }
  .bible-toolbar { flex-direction: column; gap: 8px; }
  .bible-search { padding: 10px 36px 10px 36px; font-size: 13.5px; }
  .bible-trans-selector { width: 100%; }
  .bible-trans-btn { flex: 1; padding: 9px 8px; font-size: 12px; }
  .bible-tool-btn { width: 100%; justify-content: center; padding: 10px 14px; }
  /* Couvertures : 3 côte à côte qui rentrent toutes sur l'écran (pas de scroll) */
  .bible-shelf {
    gap: 8px;
    padding: 22px 8px 18px;  /* padding-top généreux pour ne pas couper le badge "Sélectionnée" */
    justify-content: center;
    overflow: visible;
    flex-wrap: nowrap;
  }
  .bible-cover {
    /* Largeur fluide : 3 covers prennent ~95% de la largeur dispo, gap inclus */
    width: calc((100% - 16px) / 3);
    max-width: 110px;
    min-width: 0;
    aspect-ratio: 130 / 180;   /* préserve les proportions iniciales */
    height: auto;
    flex: 1 1 auto;
  }
  .bible-cover:hover { transform: translateY(-4px) rotateY(-8deg); }
  .bible-cover-bible { font-size: 18px; }
  .bible-cover-version { font-size: 10.5px; }
  .bible-cover-the,
  .bible-cover-year { font-size: 7.5px; }
  /* Badge "Sélectionnée" plus petit sur mobile pour ne pas dépasser */
  .bible-cover-active-badge {
    font-size: 8.5px;
    padding: 3px 7px;
    top: -6px;
    right: -4px;
  }
  .bible-welcome { padding: 16px 8px; }
  .bible-welcome-title { font-size: 21px; }
  .bible-welcome-trans-info { padding: 14px 16px; }
  .bible-welcome-trans-name { font-size: 18px; }
  .bible-welcome-trans-year { font-size: 14px; }
  .bible-welcome-translation-desc { font-size: 12.5px; }
  .bible-open-btn { padding: 11px 18px; font-size: 13.5px; width: 100%; justify-content: center; }
  /* Bouton home : compact (icône + court "Bibles") */
  .bible-home-btn span {
    font-size: 0;             /* cache le texte original */
  }
  .bible-home-btn span::before {
    content: 'Bibles';
    font-size: 12px;
  }
  .bible-home-btn { padding: 8px 12px; }
  .bible-reader { padding: 18px 16px; border-radius: 12px; }
  .bible-chapter-title { font-size: 22px; }
  .bible-verses { font-size: 16px; line-height: 1.75; }
  .bible-verse { padding: 6px 6px 6px 32px; }
  .bible-verse-num { font-size: 10.5px; width: 24px; }
  /* Sur mobile : actions toujours visibles, alignées à droite avec icônes plus petites */
  .bible-verse-actions {
    position: static;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    padding: 4px 0 0;
    justify-content: flex-end;
  }
  .bible-chapter-grid {
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  }
}
