*, *::before, *::after { box-sizing: border-box; }

:root {
  --or:       #d4891a;
  --bleu:     #0d2340;
  --bleu2:    #1a5fa8;
  --violet:   #5a2d9a;
  --vert:     #1a5c1a;
  --sidebar-w: 260px;
  --top-offset: 100px;
}

html, body {
  margin: 0; padding: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  background-image:
    linear-gradient(to bottom right, rgba(255,102,0,0.55), rgba(255,255,255,0.55), rgba(0,204,102,0.55)),
    url('assets/img/croix.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'EB Garamond', serif;
}

/* ════ HEADER ════ */
.top-banner {
  position: fixed; top: 0; left: 0; width: 100%;
  min-height: 52px;
  background: linear-gradient(90deg, #081628 0%, #0e2d58 50%, #081628 100%);
  border-bottom: 2px solid rgba(212,137,26,0.65);
  color: #fff; padding: 6px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  font-family: 'Cinzel', serif; font-size: 0.85em; letter-spacing: 0.05em;
  z-index: 10000; box-shadow: 0 3px 20px rgba(0,0,0,0.5);
}
.top-banner .brand { color: #e8a020; font-weight: 700; white-space: nowrap; }

.yt-banner-card {
  display: flex; align-items: center; gap: 9px;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,50,20,0.35);
  border-radius: 10px; padding: 4px 10px 4px 5px;
  text-decoration: none; transition: background 0.18s; flex-shrink: 0;
}
.yt-banner-card:hover { background: rgba(255,30,0,0.18); }
.yt-banner-thumb { position: relative; width: 64px; height: 36px; border-radius: 5px; overflow: hidden; background: #1a0505; flex-shrink: 0; }
.yt-banner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-banner-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.3); }
.yt-banner-play-btn { width: 20px; height: 20px; background: #f00; border-radius: 5px; display: flex; align-items: center; justify-content: center; }
.yt-banner-play-btn svg { width: 9px; height: 9px; fill: #fff; margin-left: 1px; }
.yt-banner-title { font-family: 'Cinzel', serif; font-size: 0.72em; font-weight: 700; color: #fff; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-banner-sub { font-size: 0.6em; color: rgba(255,210,120,0.8); font-style: italic; }

/* ════ BANDEAU LIVRE ════ */
.livre-banner {
  position: fixed; left: 0; width: 100%; z-index: 8999;
  background: linear-gradient(90deg, #0a1a0a, #1a3a1a, #0a1a0a);
  border-bottom: 2px solid rgba(212,137,26,0.55);
  padding: 6px 40px 6px 16px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  text-decoration: none;
  animation: livreFondu 3.5s ease-in-out infinite;
}
@keyframes livreFondu { 0%,100%{opacity:1} 50%{opacity:0.7} }
.livre-banner img { height: 54px; width: auto; border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,0.5); flex-shrink: 0; }
.livre-banner-text { display: flex; flex-direction: column; gap: 1px; }
.livre-banner-label { font-family: 'Cinzel', serif; font-size: 0.6em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #d4891a; }
.livre-banner-titre { font-family: 'EB Garamond', serif; font-size: 1em; font-weight: 700; color: #fff; }
.livre-banner-sub { font-family: 'EB Garamond', serif; font-size: 0.78em; color: rgba(255,255,255,0.5); font-style: italic; }
.livre-banner-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1em; cursor: pointer; padding: 6px; }
.livre-banner-close:hover { color: #fff; }

/* ════ LAYOUT 2 COLONNES ════ */
.app-layout {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--top-offset);
  display: flex;
  overflow: hidden;
}

/* ════ SIDEBAR GAUCHE ════ */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100%;
  overflow-y: auto;
  background: rgba(8,22,40,0.96);
  border-right: 1px solid rgba(212,137,26,0.3);
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}

/* Scrollbar sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(212,137,26,0.3); border-radius: 4px; }

/* Bloc date dans sidebar */
.sidebar-date-bloc {
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(212,137,26,0.2);
}
.sidebar-date-info { margin-bottom: 8px; }
.d-nom { font-family: 'Cinzel', serif; font-size: 0.62em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #d4891a; }
.d-date { font-family: 'Cinzel', serif; font-size: 0.88em; font-weight: 800; color: #fff; }

.date-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.btn-nav {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px; border-radius: 12px;
  font-size: 0.68em; font-weight: 700; cursor: pointer;
  transition: background 0.15s; white-space: nowrap;
  font-family: 'Cinzel', serif;
}
.btn-nav:hover { background: rgba(255,255,255,0.22); }
.btn-nav.or { background: var(--or); border-color: var(--or); }
.btn-nav.or:hover { background: #a05c00; }
.btn-nav.ghost { background: transparent; }

#picker-wrap { display: none; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
#picker-wrap.visible { display: flex; }
#picker-wrap input[type="date"] {
  padding: 3px 8px; border: 1.5px solid var(--bleu2);
  border-radius: 8px; font-size: 0.78em; background: #fff; flex: 1;
}
#picker-wrap button {
  background: var(--bleu2); color: #fff; border: none;
  padding: 4px 10px; border-radius: 8px; font-size: 0.75em; font-weight: 700; cursor: pointer;
}

/* Sections sidebar */
.sidebar-section {
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6em; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(212,137,26,0.8);
  padding: 0 14px 6px;
}

/* Boutons sidebar */
.sidebar-btn {
  display: block; width: 100%;
  text-align: left;
  padding: 8px 14px;
  background: transparent;
  border: none; border-left: 3px solid transparent;
  color: rgba(255,255,255,0.72);
  font-family: 'EB Garamond', serif;
  font-size: 0.96em; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
}
.sidebar-btn:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-left-color: rgba(212,137,26,0.5);
}
.sidebar-btn.actif {
  background: rgba(212,137,26,0.15);
  color: #e8a020;
  border-left-color: #d4891a;
  font-weight: 700;
}

/* Recherche partition — mise en avant */
.sidebar-search-wrap {
  margin: 8px 10px 10px;
  background: rgba(212,137,26,0.18);
  border: 1.5px solid rgba(212,137,26,0.55);
  border-radius: 10px;
  padding: 10px 10px 8px;
}
.sidebar-search-label {
  font-family: 'Cinzel', serif;
  font-size: 0.62em; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #e8a020;
  margin-bottom: 6px;
}

/* Recherche partition — dans sidebar */
.sidebar-search {
  display: flex; gap: 0;
}
.sidebar-search input[type="text"] {
  flex: 1; min-width: 0;
  padding: 7px 10px;
  border: 1.5px solid rgba(212,137,26,0.6);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.82em;
  font-family: 'EB Garamond', serif;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}
.sidebar-search input::placeholder { color: rgba(255,255,255,0.5); font-style: italic; }
.sidebar-search input:focus { background: rgba(255,255,255,0.2); border-color: var(--or); }
.sidebar-search button {
  background: var(--or); color: #fff; border: none;
  padding: 7px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.82em; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.sidebar-search button:hover { background: #a05c00; }

/* ════ ZONE CONTENU DROITE ════ */
.content-area {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 40px;
  background: transparent;
}
.content-area::-webkit-scrollbar { width: 6px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 4px; }

.bloc { display: none; }
.bloc.actif { display: block; }

/* Header de section */
.content-header { margin-bottom: 1em; }
.content-title {
  font-family: 'Cinzel', serif;
  color: #050e1c;
  font-size: 1em; font-weight: 700;
  margin: 0 0 0.2em;
  text-shadow: 0 1px 6px rgba(255,255,255,0.8);
  display: flex; align-items: center; gap: 0.5em;
}
.content-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 0.9em; color: #333;
  margin: 0;
  text-shadow: 0 1px 4px rgba(255,255,255,0.7);
}
.reset-search {
  font-size: 0.75em; color: #999;
  text-decoration: none; margin-left: auto;
  background: rgba(0,0,0,0.08); border-radius: 50%;
  width: 20px; height: 20px; display: inline-flex;
  align-items: center; justify-content: center;
}
.reset-search:hover { background: rgba(0,0,0,0.18); color: #333; }

.empty-msg {
  font-style: italic; color: #555;
  font-family: 'EB Garamond', serif;
  background: rgba(255,255,255,0.85);
  border-radius: 10px; padding: 1em 1.2em;
}

/* ════ BLOC INTRO SEO ════ */
.seo-intro {
  background: rgba(255,255,255,0.93);
  border-radius: 12px;
  border: 1px solid rgba(212,137,26,0.3);
  padding: 1em 1.4em;
  margin-bottom: 1em;
  box-shadow: 0 3px 14px rgba(0,0,0,0.09);
}
.seo-intro h1 {
  font-family: 'Cinzel', serif;
  color: #0d2340; font-size: 1em; font-weight: 700;
  margin: 0 0 0.4em; text-align: left;
}
.seo-intro p { font-size: 0.91em; color: #333; margin: 0; line-height: 1.65; }
.seo-intro strong { color: #0d2340; }

/* ════ LISTE PARTITIONS ════ */
.liste-partitions { list-style: none; padding: 0; margin: 0; }
.liste-partitions li {
  background: rgba(255,255,255,0.94);
  border-radius: 10px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.12);
  padding: 0.75em 1em;
  margin-bottom: 0.45em;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 0.4em;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.12s;
}
.liste-partitions li:hover { transform: translateY(-1px); }
.liste-partitions li strong {
  color: #1a3a5c;
  font-family: 'EB Garamond', serif;
  font-size: 1.02em; font-weight: 700;
}
.partition-actions { display: flex; gap: 0.4em; flex-wrap: wrap; }
.btn-action {
  background: rgba(26,95,168,0.12); color: #1a5fa8;
  padding: 0.22em 0.65em; border-radius: 14px;
  font-size: 0.76em; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.12s;
}
.btn-action:hover { background: #1a5fa8; color: #fff; }

/* ════ SOMMAIRE ════ */
.sommaire {
  background: rgba(253,247,235,0.97);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 1em 1.3em; margin-bottom: 1em;
  border: 1px solid rgba(212,137,26,0.4);
}
.sommaire h3 { font-family: 'Cinzel', serif; color: #050e1c; font-size: 0.88em; margin-bottom: 0.6em; }
.sommaire ul { list-style: none; padding: 0; margin: 0; }
.sommaire li {
  padding: 0.38em 0; border-bottom: 1px solid rgba(0,0,0,0.07);
  font-family: 'EB Garamond', serif; font-size: 0.95em; color: #050e1c;
  cursor: pointer; transition: color 0.13s;
  display: flex; gap: 0.5em; align-items: baseline;
}
.sommaire li:last-child { border-bottom: none; }
.sommaire li:hover { color: var(--or); }
.s-type { font-family: 'Cinzel', serif; font-size: 0.7em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.s-type.sl  { color: #0d400d; }
.s-type.sl2 { color: #0d2d52; }
.s-type.sp  { color: #6a3c00; }
.s-type.se  { color: var(--violet); }

/* ════ CARTES LECTURES ════ */
.lecture-card {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  box-shadow: 0 5px 28px rgba(0,0,0,0.13);
  padding: 1.2em 1.4em; margin-bottom: 1em;
  border: 1px solid rgba(0,0,0,0.06);
}
.lecture-card.lc-lecture  { border-left: 5px solid #1a5c1a; }
.lecture-card.lc-lecture2 { border-left: 5px solid #1a5a8a; }
.lecture-card.lc-psaume   { border-left: 5px solid #c9780a; }
.lecture-card.lc-evangile { border-left: 5px solid #5a2d9a; }

.lc-type-label { font-family: 'Cinzel', serif; font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.3em; }
.lc-lecture  .lc-type-label { color: #0d400d; }
.lc-lecture2 .lc-type-label { color: #0d2d52; }
.lc-psaume   .lc-type-label { color: #6a3c00; }
.lc-evangile .lc-type-label { color: #30146e; }

.lc-ref { font-family: 'EB Garamond', serif; font-weight: 700; font-size: 1.08em; color: #050e1c; margin-bottom: 0.8em; line-height: 1.4; }
.lc-texte { font-family: 'EB Garamond', serif; line-height: 2; font-size: 1.05em; color: #111; font-weight: 500; }
.psaume-refrain { font-style: italic; font-weight: 700; color: #500a0a; margin-bottom: 0.5em; line-height: 1.85; font-size: 1.04em; font-family: 'EB Garamond', serif; }
.psaume-verset { margin-bottom: 0.4em; line-height: 1.95; color: #111; font-family: 'EB Garamond', serif; font-size: 1.04em; font-weight: 500; }
.lc-inter { font-family: 'Cinzel', serif; font-size: 0.72em; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6a3c00; margin: 0.8em 0 0.4em; }

.liturgie-loading { text-align: center; font-style: italic; color: #555; padding: 2em 0; }
.liturgie-error { text-align: center; color: #c00; padding: 1em; }

/* ════ PARTAGE ════ */
.share-bar { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 1em; padding-top: 0.75em; border-top: 1px dashed rgba(0,0,0,0.13); align-items: center; }
.share-label { font-size: 0.74em; color: #999; }
.share-bar a, .share-bar button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 1.05em; text-decoration: none; position: relative;
  transition: transform 0.13s; box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.share-bar a:hover, .share-bar button:hover { transform: scale(1.15); }
.share-bar a::after, .share-bar button::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%); background: #222; color: #fff;
  font-size: 0.62em; white-space: nowrap; padding: 3px 7px; border-radius: 5px;
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.share-bar a:hover::after, .share-bar button:hover::after { opacity: 1; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-facebook { background: #1877F2; color: #fff; }
.btn-sms      { background: #444;    color: #fff; }
.btn-copy     { background: #e0e0e0; color: #333; }
.btn-email    { background: #d06018; color: #fff; }
.btn-notif    { background: #e8b820; color: #222; }

/* ════ MODALES ════ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.52); z-index: 99999; align-items: center; justify-content: center; padding: 1em; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 12px; box-shadow: 0 12px 50px rgba(0,0,0,.28); padding: 1.8em; max-width: 340px; width: 100%; position: relative; animation: popIn .17s ease; }
@keyframes popIn { from{transform:scale(.93);opacity:0} to{transform:scale(1);opacity:1} }
.modal h3 { font-family: 'Cinzel', serif; color: var(--bleu); margin-bottom: 1em; font-size: 0.93em; }
.modal label { font-size: 0.84em; font-weight: 700; color: #444; display: block; margin: 0.6em 0 0.2em; }
.modal input[type="email"], .modal select { width: 100%; padding: 0.5em 0.7em; border: 1.5px solid #ccc; border-radius: 8px; font-size: 0.92em; }
.modal input:focus, .modal select:focus { border-color: var(--or); outline: none; }
.modal .btn-ok { width: 100%; margin-top: 1em; padding: 0.6em; border: none; border-radius: 30px; font-size: 0.94em; font-weight: 700; cursor: pointer; color: #fff; background: var(--or); }
.modal .btn-ok:hover { background: #a05c00; }
.btn-desact { width: 100%; margin-top: 0.4em; padding: 0.5em; border: none; border-radius: 30px; background: #b02020; color: #fff; font-weight: 700; cursor: pointer; display: none; font-size: 0.87em; }
.modal .close-x { position: absolute; top: 0.7em; right: 0.9em; background: none; border: none; font-size: 1.35em; cursor: pointer; color: #bbb; padding: 0; }
.modal .close-x:hover { color: #333; }
.modal-status { font-size: 0.84em; margin-top: 0.6em; font-style: italic; }

/* ════ PWA INSTALL ════ */
#pwa-install-bar {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  background: linear-gradient(90deg, #081628, #0e2d58);
  border-top: 2px solid rgba(212,137,26,0.6);
  color: #fff; padding: 10px 16px; z-index: 99998;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 0.82em;
}
#pwa-install-bar.visible { display: flex; }
#pwa-install-bar .pwa-text strong { color: #e8a020; }
#btn-pwa-install { background: #d4891a; color: #fff; border: none; padding: 7px 18px; border-radius: 20px; font-weight: 700; font-size: 0.88em; cursor: pointer; }
#btn-pwa-dismiss { background: transparent; color: rgba(255,255,255,0.5); border: none; font-size: 1.1em; cursor: pointer; }

/* ════ OFFLINE BADGE ════ */
#offline-badge {
  display: none; position: fixed; top: 58px; left: 50%; transform: translateX(-50%);
  background: #8B0000; color: #fff; padding: 5px 16px; border-radius: 20px;
  font-size: 0.78em; font-weight: 700; z-index: 9999;
}

/* ════ ANIMATIONS ════ */
.notes-musicales, .noms-sacres { position: fixed; bottom: 0; left: 0; width: 100%; pointer-events: none; z-index: 999; }
.note, .mot-sacre { position: absolute; bottom: 0; color: #fff; font-weight: bold; opacity: 0; }
.note { animation: montee 6s linear forwards, scintille 3s ease-in-out infinite; }
.mot-sacre { animation: monteeSacree 7s ease-in forwards, scintilleSacree 3s ease-in-out infinite; }
@keyframes montee { 0%{transform:translateY(0);opacity:0} 15%{opacity:1} 100%{transform:translateY(-300px);opacity:0} }
@keyframes scintille { 0%,100%{text-shadow:0 0 3px #fff} 50%{text-shadow:0 0 8px #ffd700} }
@keyframes monteeSacree { 0%{transform:translateY(0);opacity:0} 20%{opacity:1} 100%{transform:translateY(-400px);opacity:0} }
@keyframes scintilleSacree { 0%,100%{text-shadow:0 0 3px #fff,0 0 6px #faf0dc} 50%{text-shadow:0 0 10px #ffd700,0 0 20px #ff8800} }

/* ════ RESPONSIVE — TABLETTE ════ */
@media (max-width: 900px) {
  :root { --sidebar-w: 220px; }
  .content-area { padding: 14px 16px 32px; }
}

/* ════ RESPONSIVE — MOBILE ════ */
@media (max-width: 768px) {
  :root { --sidebar-w: 100%; }

  /* Taille de base augmentée sur mobile */
  html { font-size: 18px; }

  .app-layout { flex-direction: column; overflow: hidden; }

  /* Sur mobile : sidebar devient un drawer en haut, caché par défaut */
  .sidebar {
    position: fixed; left: 0; right: 0;
    top: var(--top-offset); bottom: 0;
    width: 100%; z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }

  /* Bouton menu mobile */
  .mobile-menu-btn {
    display: flex !important;
    width: 58px; height: 58px;
    font-size: 1.6em;
  }

  .content-area {
    position: fixed; left: 0; right: 0;
    top: var(--top-offset); bottom: 0;
    padding: 14px 14px 40px;
  }

  /* Sidebar — textes plus grands */
  .sidebar-btn { font-size: 1.1em; padding: 12px 16px; }
  .sidebar-section-label { font-size: 0.75em; }
  .d-nom { font-size: 0.75em; }
  .d-date { font-size: 1em; }
  .btn-nav { font-size: 0.82em; padding: 5px 10px; }

  /* Recherche */
  .sidebar-search input[type="text"] { font-size: 1em; padding: 9px 12px; }
  .sidebar-search button { font-size: 1em; padding: 9px 14px; }
  .sidebar-search-label { font-size: 0.75em; }

  /* Contenu — lectures */
  .lecture-card { padding: 1.1em; }
  .lc-texte, .psaume-verset { font-size: 1.08em; line-height: 2; }
  .lc-type-label { font-size: 0.85em; }
  .lc-ref { font-size: 1.15em; }
  .psaume-refrain { font-size: 1.08em; }
  .lc-inter { font-size: 0.85em; }

  /* Sommaire */
  .sommaire h3 { font-size: 1em; }
  .sommaire li { font-size: 1.05em; padding: 0.5em 0; }
  .s-type { font-size: 0.82em; }

  /* Partitions */
  .liste-partitions li { flex-direction: column; align-items: flex-start; }
  .liste-partitions li strong { font-size: 1.1em; }
  .btn-action { font-size: 0.9em; padding: 0.35em 0.9em; }

  /* SEO intro */
  .seo-intro h1 { font-size: 1.1em; }
  .seo-intro p { font-size: 1em; }

  /* Titres sections */
  .content-title { font-size: 1.1em; }
  .content-subtitle { font-size: 1em; }

  /* Boutons partage */
  .share-bar a, .share-bar button { width: 42px; height: 42px; font-size: 1.2em; }

  .livre-banner img { height: 44px; }
  .livre-banner-titre { font-size: 0.9em; }
  .yt-banner-title { max-width: 100px; }
}

/* Bouton menu mobile (caché sur desktop) */
.mobile-menu-btn {
  display: none;
  position: fixed;
  bottom: 20px; right: 16px;
  z-index: 600;
  background: var(--or); color: #fff;
  border: none; border-radius: 50%;
  width: 50px; height: 50px;
  font-size: 1.4em; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.35);
  align-items: center; justify-content: center;
}

/* ════ GRAND ÉCRAN ════ */
@media (min-width: 1200px) {
  :root { --sidebar-w: 280px; }
  .lc-texte, .psaume-verset { font-size: 1.08em; line-height: 2.1; }
}

/* ════ FIXES MOBILE — images et pubs ════ */
ins.adsbygoogle {
  max-width: 100% !important;
  max-height: 120px !important;
  display: block !important;
}

.yt-banner-thumb {
  width: 64px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
}
.yt-banner-thumb img {
  width: 64px !important;
  height: 36px !important;
  object-fit: cover !important;
}

.livre-banner {
  overflow: hidden;
}
.livre-banner img {
  max-height: 50px !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  /* Empêche tout élément de dépasser la largeur de l'écran */
  img, video, iframe { max-width: 100% !important; }

  /* Header compact sur mobile */
  .top-banner {
    flex-wrap: nowrap;
    overflow: hidden;
    min-height: 44px;
    padding: 4px 10px;
    gap: 6px;
  }

  .top-banner .brand {
    font-size: 0.75em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
  }

  /* Vignette YouTube — ultra compacte sur mobile */
  .yt-banner-card {
    flex-shrink: 0;
    max-width: 160px;
    padding: 3px 6px 3px 4px;
    gap: 6px;
  }

  /* Vignette miniature — taille réduite */
  .yt-banner-thumb {
    width: 44px !important;
    height: 26px !important;
    border-radius: 4px;
  }
  .yt-banner-thumb img {
    width: 44px !important;
    height: 26px !important;
  }

  /* Bouton play — plus petit */
  .yt-banner-play-btn {
    width: 14px !important;
    height: 14px !important;
  }
  .yt-banner-play-btn svg {
    width: 6px !important;
    height: 6px !important;
  }

  .yt-banner-title {
    font-size: 0.62em;
    max-width: 80px;
  }
  .yt-banner-sub {
    font-size: 0.55em;
  }

  /* Bandeau livre — hauteur limitée */
  .livre-banner {
    max-height: 62px;
    padding: 4px 36px 4px 10px;
    gap: 8px;
  }
  .livre-banner img {
    max-height: 40px !important;
  }
  .livre-banner-label { display: none; }
  .livre-banner-titre { font-size: 0.82em; }
  .livre-banner-sub { display: none; }
}
