/* Bible Contexte — mêmes couleurs que l'écran d'étude de l'application (thèmes clair et sombre) */
:root {
  --fond: #FBF9F5;
  --fond-2: #F3EEE5;
  --surface: #FFFFFF;
  --bord: #E4DED3;
  --titre: #8B5E34;
  --texte: #3B2F24;
  --discret: #8A7B6A;
  --accent: #B5502A;
  --or: #C9962E;
  --note: #2F6DB5;
  --section: #B8462E;
  --citation-fond: #E7EDF5;
  --citation-barre: #2F6DB5;
  --citation-texte: #26364A;
  --ref-fond: #EEF4E6;
  --ref-bord: #C7DBB5;
  --ref-etiquette: #4F7A2C;
  --ref-texte: #33402A;
  --encadre-fond: #FBF1D9;
  --encadre-bord: #E6CB86;
  --verset-fond: #F3F0EA;
  --numero-fond: #EFE2C6;
  --bouton-fond: #8B5E34;
  --bouton-texte: #FFFFFF;
  --entete: rgba(251, 249, 245, .88);
  --ombre: 0 1px 2px rgba(59, 47, 36, .06), 0 8px 24px rgba(59, 47, 36, .08);
  --ombre-forte: 0 18px 40px rgba(59, 47, 36, .18);
  --large: 1400px;
  color-scheme: light;
}
:root[data-theme="sombre"] {
  --fond: #0b151f;
  --fond-2: #0e1b28;
  --surface: #12202d;
  --bord: rgba(255, 255, 255, .12);
  --titre: #FFEB3B;
  --texte: rgba(255, 255, 255, .92);
  --discret: rgba(255, 255, 255, .6);
  --accent: #FFB38A;
  --or: #F2C14E;
  --note: #9EC5FF;
  --citation-fond: rgba(158, 197, 255, .12);
  --citation-barre: #9EC5FF;
  --citation-texte: #FFFFFF;
  --ref-fond: rgba(76, 175, 80, .1);
  --ref-bord: rgba(76, 175, 80, .35);
  --ref-etiquette: #3E7D1E;
  --ref-texte: rgba(255, 255, 255, .92);
  --encadre-fond: rgba(255, 235, 59, .1);
  --encadre-bord: rgba(255, 235, 59, .35);
  --verset-fond: rgba(255, 255, 255, .07);
  --numero-fond: rgba(255, 235, 59, .2);
  --bouton-fond: #FFEB3B;
  --bouton-texte: #1A1A1A;
  --entete: rgba(11, 21, 31, .85);
  --ombre: 0 1px 2px rgba(0, 0, 0, .3);
  --ombre-forte: 0 18px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
a { color: var(--titre); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; }
.conteneur { max-width: var(--large); margin: 0 auto; padding: 0 32px; }

/* Logo : l'icône de l'app, recadrée sur sa carte bleue */
.logo {
  display: inline-block; flex: none; width: var(--taille); height: var(--taille);
  border-radius: 24%; overflow: hidden; background: #0B1424; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.logo img { width: 100%; height: 100%; transform: scale(1.5); display: block; }
.logo-brille { box-shadow: 0 0 0 1px rgba(242, 193, 78, .35), 0 20px 60px rgba(242, 193, 78, .25), 0 10px 30px rgba(0, 0, 0, .5); }

/* Boutons */
.bouton-play {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px;
  text-decoration: none; line-height: 1.1; font-weight: 700; font-size: 1.15rem; transition: transform .15s, box-shadow .15s;
}
.bouton-play:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.bouton-play svg { width: 28px; height: 28px; color: #3DDC84; }
.bouton-play small { display: block; font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.bouton-play.grand { padding: 14px 28px 14px 22px; font-size: 1.35rem; }
.bouton-play.grand svg { width: 34px; height: 34px; }
.bouton-play.petit { font-size: 1rem; padding: 8px 16px 8px 14px; }
.bouton-contour {
  display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 14px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .45); color: #fff; text-decoration: none; transition: background .15s;
}
.bouton-contour:hover { background: rgba(255, 255, 255, .12); }
.recherche button, .bouton-secondaire {
  background: var(--bouton-fond); color: var(--bouton-texte); border: 0; border-radius: 30px;
  padding: 12px 24px; font: inherit; font-weight: 600; cursor: pointer;
}

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: var(--entete); backdrop-filter: blur(12px); border-bottom: 1px solid var(--bord); }
.entete-dedans { max-width: var(--large); margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 24px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--titre); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--texte); font-weight: 600; font-size: .98rem; }
.menu a:hover, .menu a[aria-current] { background: var(--fond-2); color: var(--titre); }
.actions { display: flex; align-items: center; gap: 8px; }
.icone-bouton {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bord);
  background: none; color: var(--texte); font-size: 17px; cursor: pointer; text-decoration: none;
}
.bouton-app {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 30px; font-weight: 700;
  background: linear-gradient(135deg, #F2C14E, #C9962E); color: #1a1205; text-decoration: none; box-shadow: 0 4px 14px rgba(201, 150, 46, .35);
}
.bouton-app:hover { filter: brightness(1.08); }

/* Accueil */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(5, 12, 22, .95) 0%, rgba(5, 12, 22, .82) 45%, rgba(5, 12, 22, .35) 100%), var(--image-fond) center / cover no-repeat;
}
.hero-dedans {
  max-width: var(--large); margin: 0 auto; padding: 56px 32px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.hero .pastille { background: rgba(242, 193, 78, .15); color: #F2C14E; border: 1px solid rgba(242, 193, 78, .4); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); margin: 18px 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: #F2C14E; }
.hero-texte > p { font-size: 1.2rem; color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 0 26px; }
.hero .recherche { max-width: 640px; margin: 0 0 22px; }
.hero .recherche input { background: rgba(255, 255, 255, .95); color: #222; border: 0; }
.hero-boutons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo .logo { width: min(var(--taille), 32vw); height: min(var(--taille), 32vw); animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-logo .logo { animation: none; } }
.chiffres {
  max-width: var(--large); margin: 0 auto; padding: 0 32px 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.chiffres div { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 10px 16px; backdrop-filter: blur(6px); }
.chiffres strong { flex: none; font-size: 1.35rem; color: #F2C14E; line-height: 1.1; }
.chiffres span { color: rgba(255, 255, 255, .78); font-size: .86rem; line-height: 1.3; }
.pastille { display: inline-block; padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: .9rem; }

.titre-section { text-align: center; margin: 70px 0 30px; }
.titre-section h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--titre); margin: 0 0 6px; }
.titre-section p { color: var(--discret); margin: 0; font-size: 1.1rem; }
.recherche { display: flex; gap: 8px; }
.recherche input { flex: 1; min-width: 0; padding: 14px 22px; border-radius: 30px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); font: inherit; }

.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.categorie {
  position: relative; display: block; min-height: 300px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none;
  background: #0B1424; box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s;
}
.categorie:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.categorie-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.categorie:hover .categorie-image img { transform: scale(1.05); }
.categorie-texte {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(180deg, rgba(5, 12, 22, 0) 25%, rgba(5, 12, 22, .92) 100%);
}
.categorie .icone { font-size: 2rem; }
.categorie strong { font-size: 1.4rem; margin: 6px 0 4px; line-height: 1.2; }
.categorie small { color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.4; }
.categorie em { font-style: normal; margin-top: 12px; color: #F2C14E; font-weight: 700; }

/* Grille d'enseignements */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 0 0 20px; }
.carte {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bord);
  border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--texte); box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--verset-fond); }
.carte-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.carte:hover .carte-image img { transform: scale(1.05); }
.carte-vide { display: grid; place-items: center; height: 100%; font-size: 2.8rem; }
.carte-titre { padding: 14px 16px 16px; font-weight: 700; line-height: 1.35; font-size: 1.02rem; }
.carte small { display: block; padding: 0 16px 14px; color: var(--discret); font-size: .85rem; margin-top: -8px; }

/* Bandeau des catégories */
.bandeau {
  position: relative; text-align: center; color: #fff; margin-bottom: 44px;
  background: linear-gradient(180deg, rgba(5, 12, 22, .78), rgba(5, 12, 22, .92)), var(--image-fond, linear-gradient(135deg, #12243a, #0B1424)) center / cover no-repeat;
}
.bandeau-dedans { max-width: 900px; margin: 0 auto; padding: 56px 32px 50px; }
.bandeau .fil, .bandeau .fil a { color: rgba(255, 255, 255, .7); }
.bandeau-icone { font-size: 3rem; display: block; }
.bandeau h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: 8px 0 10px; color: #fff; }
.bandeau p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; margin: 0 0 18px; }
.bandeau .pastille { background: #F2C14E; color: #1a1205; }
.bandeau a { color: #F2C14E; }
.bandeau-court .bandeau-dedans { padding: 44px 32px 40px; }
.bandeau .recherche { max-width: 640px; margin: 18px auto 0; }
.bandeau .recherche input { background: #fff; color: #222; border: 0; }
.intro { color: var(--discret); text-align: center; font-size: 1.05rem; }
.fil { font-size: .9rem; color: var(--discret); margin: 0 0 10px; }
.fil a { color: inherit; }

/* Livres et chapitres */
.livres { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 22px; }
.livre { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; padding: 20px 22px 22px; box-shadow: var(--ombre); }
.livre h2 { color: var(--titre); font-size: 1.35rem; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; }
.livre h2 small { color: var(--discret); font-size: .85rem; font-weight: 500; }
.chapitres { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.chapitres a {
  padding: 10px 0; text-align: center; border-radius: 12px; text-decoration: none; font-weight: 700;
  background: var(--fond-2); color: var(--texte); transition: background .15s, color .15s;
}
.chapitres a:hover { background: var(--bouton-fond); color: var(--bouton-texte); }
.chapitres a.a-venir { opacity: .45; }
.livres.un-seul { grid-template-columns: 1fr; }
.un-seul .livre { padding: 30px; }
.un-seul .chapitres { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px; }
.un-seul .chapitres a { padding: 22px 0; font-size: 1.4rem; border-radius: 16px; }
.legende-chapitres { text-align: center; color: var(--discret); font-size: .9rem; margin: 18px 0 0; }

/* Bloc application */
.bloc-app { margin-top: 80px; background: radial-gradient(ellipse at 20% 30%, #1d3557 0%, #0B1424 60%); color: #fff; }
.bloc-app-dedans { max-width: 1100px; margin: 0 auto; padding: 70px 32px; display: flex; gap: 56px; align-items: center; justify-content: center; }
.bloc-app h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0 0 10px; color: #F2C14E; }
.bloc-app p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; margin: 0 0 12px; }
.bloc-app ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.bloc-app li { font-size: 1.05rem; }
.petit-texte { font-size: .9rem !important; color: rgba(255, 255, 255, .6) !important; margin-top: 12px !important; }

/* Pied de page */
.pied { background: #070e17; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.pied-dedans { max-width: var(--large); margin: 0 auto; padding: 50px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pied .marque { color: #F2C14E; margin-bottom: 12px; }
.pied h3 { color: #fff; font-size: 1.05rem; margin: 6px 0 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 6px; }
.pied a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.pied a:hover { color: #F2C14E; }
.pied .bouton-play { color: #fff; }

/* Page d'une étude */
.page-etude { max-width: var(--large); margin: 0 auto; padding: 28px 32px 0; }
.tete-etude { position: relative; border-radius: 26px; overflow: hidden; margin-bottom: 32px; text-align: center; }
.tete-etude.avec-image { color: #fff; min-height: 380px; display: flex; align-items: flex-end; justify-content: center; background: #0B1424; }
.tete-etude .couverture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tete-etude.avec-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 22, 0) 30%, rgba(5, 12, 22, .9) 100%); }
.tete-texte { position: relative; z-index: 1; padding: 36px 32px 30px; max-width: 980px; }
.tete-etude:not(.avec-image) { background: var(--fond-2); border: 1px solid var(--bord); }
.tete-etude h1 { color: var(--titre); font-size: clamp(1.9rem, 4vw, 3rem); margin: 4px 0 8px; }
.tete-etude.avec-image h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.tete-etude.avec-image .fil, .tete-etude.avec-image .fil a, .tete-etude.avec-image .meta { color: rgba(255, 255, 255, .8); }
.tete-etude.avec-image .sous-titre { color: #F2C14E; }
.sous-titre { margin: 0; font-size: 1.15rem; font-weight: 600; }
.meta { color: var(--discret); font-size: .92rem; margin: 8px 0 0; }

.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.cote { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 8px; }
.carte-cote { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; padding: 20px; box-shadow: var(--ombre); }
.carte-cote > strong { display: block; color: var(--titre); font-size: 1.05rem; margin-bottom: 6px; }
.carte-cote p { margin: 0 0 14px; color: var(--discret); font-size: .95rem; line-height: 1.5; }
.carte-cote.sommaire ol { margin: 4px 0 0; padding-left: 22px; font-size: .95rem; }
.carte-cote.sommaire li { margin-bottom: 6px; }
.carte-cote.sommaire a { color: var(--texte); text-decoration: none; }
.carte-cote.sommaire a:hover { color: var(--titre); }
.carte-app { text-align: center; background: radial-gradient(ellipse at 50% 0%, #1d3557 0%, #0B1424 75%); border: 0; color: #fff; }
.carte-app .logo { margin: 0 auto 12px; }
.carte-app > strong { color: #F2C14E; }
.carte-app p { color: rgba(255, 255, 255, .8); }
.retour { text-decoration: none; font-weight: 600; color: var(--titre); }
.sommaire-mobile { display: none; }

/* Contenu d'une étude (identique à l'application) */
.etude { min-width: 0; font-size: 1.08rem; }
.onglets { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--bord); border-radius: 26px; background: var(--verset-fond); margin: 0 0 24px; }
.onglets a { flex: 1; text-align: center; padding: 10px; border-radius: 22px; text-decoration: none; color: var(--texte); font-weight: 600; }
.onglets a.actif { background: var(--bouton-fond); color: var(--bouton-texte); }
.sommaire { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; padding: 14px 18px; margin-bottom: 20px; }
.sommaire ol { margin: 6px 0 0; padding-left: 22px; }
.etude section h2 {
  background: var(--section); color: #fff; font-size: 1.2rem; line-height: 1.35;
  padding: 12px 18px; border-radius: 14px; margin: 38px 0 16px; scroll-margin-top: 90px;
  display: flex; align-items: center; gap: 10px;
}
.etude section:first-child h2 { margin-top: 0; }
.numero { background: rgba(255, 255, 255, .25); border-radius: 50%; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: .9rem; }
.etude h3 { color: var(--titre); font-size: 1.3rem; margin: 28px 0 8px; line-height: 1.35; }
.etude h4 { font-size: 1.12rem; margin: 20px 0 6px; line-height: 1.4; }
.etude p { margin: 0 0 14px; }
.etude ul, .etude ol { padding-left: 24px; }
.etude li { margin-bottom: 6px; }
.etude li::marker { color: var(--titre); font-weight: 700; }
mark { background: none; color: var(--accent); font-weight: 600; }
.note { color: var(--note); font-style: italic; font-size: .88em; }
.cite { color: var(--ref-etiquette); font-weight: 600; white-space: nowrap; }
:root[data-theme="sombre"] .cite { color: #8fd18c; }
.citation {
  margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid var(--citation-barre); border-radius: 14px;
  background: var(--citation-fond); color: var(--citation-texte); font: italic 1.06rem/1.6 Georgia, "Times New Roman", serif;
}
.carte-ref { background: var(--ref-fond); border: 1px solid var(--ref-bord); border-radius: 16px; padding: 14px 18px; margin: 0 0 14px; }
.carte-ref .etiquette { display: inline-block; background: var(--ref-etiquette); color: #fff; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.carte-ref p { margin: 10px 0 0; color: var(--ref-texte); font: 1.03rem/1.6 Georgia, "Times New Roman", serif; }
.encadre { background: var(--encadre-fond); border: 1px solid var(--encadre-bord); border-radius: 16px; padding: 14px 18px; margin: 0 0 14px; }
figure { margin: 0 0 18px; }
figure img { border-radius: 16px; display: block; margin: 0 auto; }
figcaption { text-align: center; font: italic .82rem Georgia, serif; color: var(--discret); margin-top: 6px; }
.texte-biblique { margin-top: 40px; }
.texte-biblique h2 { background: none !important; color: var(--titre) !important; justify-content: center; font-size: 1.6rem !important; }
.texte-biblique ol { list-style: none; padding: 0; counter-reset: v; }
.texte-biblique li {
  counter-increment: v; display: flex; gap: 12px; background: var(--verset-fond); border-radius: 14px;
  padding: 12px 16px 12px 12px; margin-bottom: 8px; font: 1.06rem/1.6 Georgia, "Times New Roman", serif;
}
.texte-biblique li::before {
  content: counter(v); flex: 0 0 32px; height: 26px; display: grid; place-items: center;
  background: var(--numero-fond); color: var(--titre); border-radius: 12px; font: 700 .8rem system-ui, sans-serif;
}
.voisins { display: flex; gap: 12px; margin: 30px 0 0; }
.voisins > * { flex: 1; }
.voisins a { text-align: center; padding: 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--bord); text-decoration: none; color: var(--texte); font-weight: 600; }

/* Écrans moyens */
@media (max-width: 1100px) {
  .menu { display: none; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .colonnes { grid-template-columns: 1fr; }
  .cote { position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .cote .sommaire { display: none; }
  .sommaire-mobile { display: block; }
}

/* Téléphones */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .conteneur, .page-etude { padding-left: 16px; padding-right: 16px; }
  .entete-dedans { padding: 8px 16px; gap: 10px; }
  .marque { font-size: 1.1rem; gap: 10px; }
  .marque .logo { --taille: 40px !important; }
  .bouton-app span { display: none; }
  .bouton-app { padding: 9px 12px; }
  .icone-bouton { width: 38px; height: 38px; }
  .hero-dedans { grid-template-columns: 1fr; padding: 40px 16px 30px; gap: 24px; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo .logo { --taille: 150px !important; width: 150px; height: 150px; }
  .hero-texte > p, .hero .recherche { margin-left: auto; margin-right: auto; }
  .hero-boutons { justify-content: center; }
  .chiffres { grid-template-columns: 1fr 1fr; padding: 0 16px 30px; gap: 10px; }
  .chiffres strong { font-size: 1.15rem; }
  .chiffres div { flex-direction: column; align-items: flex-start; padding: 8px 12px; gap: 2px; }
  .chiffres span { font-size: .8rem; }
  .recherche { flex-direction: column; }
  .categories { grid-template-columns: 1fr; gap: 14px; }
  .categorie { min-height: 220px; }
  .titre-section { margin: 46px 0 20px; }
  .grille { grid-template-columns: 1fr 1fr; gap: 12px; }
  .carte-titre { font-size: .92rem; padding: 10px 12px 12px; }
  .livres { grid-template-columns: 1fr; }
  .un-seul .chapitres { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; }
  .un-seul .chapitres a { padding: 16px 0; font-size: 1.2rem; }
  .bandeau-dedans { padding: 36px 16px 32px; }
  .bloc-app-dedans { flex-direction: column; text-align: center; padding: 50px 16px; gap: 28px; }
  .bloc-app .logo { --taille: 110px !important; }
  .bloc-app ul { grid-template-columns: 1fr; text-align: left; display: inline-grid; }
  .pied-dedans { grid-template-columns: 1fr; padding: 36px 16px; gap: 24px; }
  .tete-etude.avec-image { min-height: 260px; border-radius: 18px; }
  .tete-texte { padding: 24px 16px 20px; }
  .cote { grid-template-columns: 1fr; }
  .etude { font-size: 1rem; }
}

/* Bannières qui portent déjà leur titre (fêtes) : affichées en entier, comme dans l'app */
.tete-etude.banniere { background: #0B1424; border: 0; }
.tete-etude.banniere .couverture { position: static; display: block; height: auto; max-height: 520px; object-fit: contain; margin: 0 auto; }
.tete-etude.banniere .tete-texte { margin: 0 auto; color: #fff; }
.tete-etude.banniere h1 { color: #fff; }
.tete-etude.banniere .sous-titre { color: #F2C14E; }
.tete-etude.banniere .fil, .tete-etude.banniere .fil a, .tete-etude.banniere .meta { color: rgba(255, 255, 255, .75); }
.carte-banniere .carte-image { background: #0B1424; }
.carte-banniere .carte-image img { object-fit: contain; }

/* Page Torah et Yeshoua : les trois groupes de l'app */
.groupes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -10px 0 10px; }
.groupes a { padding: 10px 20px; border-radius: 30px; background: var(--surface); border: 1px solid var(--bord); color: var(--texte); text-decoration: none; font-weight: 600; }
.groupes a:hover { background: var(--bouton-fond); color: var(--bouton-texte); }
.groupe { scroll-margin-top: 80px; }
.groupe .titre-section { margin-top: 50px; }

/* Couleurs de légende (ex. Juges 3) : bleu = le passé, violet = le temps de Yeshoua, orange = Yeshoua et nous aujourd'hui */
.etude .c-bleu { color: #1F4FA8; }
.etude .c-violet { color: #8E2C9E; }
.etude .c-orange { color: #C8541A; }
:root[data-theme="sombre"] .etude .c-bleu { color: #8AB4FF; }
:root[data-theme="sombre"] .etude .c-violet { color: #D79BFF; }
:root[data-theme="sombre"] .etude .c-orange { color: #FFA25C; }

/* Versets du livre étudié : cadre bleu clair (les versets des autres livres restent en vert) */
.carte-ref.du-livre { background: #E6F1FB; border-color: #B5D3F0; }
.carte-ref.du-livre .etiquette { background: #2F6DB5; }
.carte-ref.du-livre p { color: #1F3550; }
:root[data-theme="sombre"] .carte-ref.du-livre { background: rgba(100, 170, 255, .12); border-color: rgba(100, 170, 255, .4); }
:root[data-theme="sombre"] .carte-ref.du-livre .etiquette { background: #2A6CB8; }
:root[data-theme="sombre"] .carte-ref.du-livre p { color: rgba(255, 255, 255, .92); }

/* Bouton clair / sombre : bien visible, avec son nom */
.bouton-theme {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 30px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; white-space: nowrap;
  background: #1d2b3a; color: #fff; border: 2px solid #1d2b3a; box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  transition: transform .15s, filter .15s;
}
.bouton-theme:hover { transform: translateY(-1px); filter: brightness(1.15); }
:root[data-theme="sombre"] .bouton-theme { background: #FFF6D6; color: #3B2F24; border-color: #F2C14E; }
@media (max-width: 720px) {
  .bouton-theme { padding: 8px 11px; font-size: 1.05rem; }
  .bouton-theme span { display: none; }
}

/* Accueil : la Bible chapitre par chapitre, en tête et sur un fond à part */
.section-bible { background: var(--fond-2); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); padding: 10px 0 60px; }
.section-bible .titre-section { margin-top: 56px; }
.section-bible .categorie { min-height: 340px; }
@media (max-width: 720px) { .section-bible { padding-bottom: 40px; } .section-bible .categorie { min-height: 240px; } }

/* Chaîne YouTube et dernières vidéos */
.bouton-youtube svg { display: block; }
.section-videos { padding: 10px 0 60px; }
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.video-principale {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 20px;
  overflow: hidden; background: #000; cursor: pointer; box-shadow: var(--ombre-forte);
}
.video-principale img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.video-principale:hover img { transform: scale(1.03); }
.video-principale iframe, .video-gauche iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; display: block; }
.lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 56px; border-radius: 16px;
  background: #FF0000; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.lecture.petite { width: 44px; height: 32px; border-radius: 10px; font-size: .95rem; }
.video-titre { margin: 14px 4px 0; }
.video-titre strong { display: block; font-size: 1.25rem; color: var(--titre); line-height: 1.3; }
.video-titre small { color: var(--discret); }
.video-droite { display: flex; flex-direction: column; gap: 12px; }
.vignette-video {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--texte);
  background: var(--surface); border: 1px solid var(--bord); border-radius: 14px; padding: 8px; transition: transform .15s;
}
.vignette-video:hover { transform: translateX(3px); }
.vignette-image { position: relative; flex: 0 0 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.vignette-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vignette-texte strong { display: block; font-size: .95rem; line-height: 1.3; }
.vignette-texte small { color: var(--discret); font-size: .82rem; }
.boutons-chaine { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.bouton-youtube-grand, .bouton-abonner {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 30px; font-weight: 700; text-decoration: none;
}
.bouton-youtube-grand { background: var(--surface); color: var(--texte); border: 2px solid #FF0000; }
.bouton-abonner { background: #FF0000; color: #fff; }
.pied .titre-chaine { margin-top: 22px; }
.lien-youtube { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .vignette-image { flex-basis: 120px; }
  .bouton-youtube { display: none; }
}

/* En-tête : rien ne passe à la ligne ; le menu se replie plus tôt */
.marque span, .menu a, .bouton-app, .bouton-theme { white-space: nowrap; }
.entete-dedans { gap: 16px; }
@media (max-width: 1320px) { .menu a { padding: 8px 10px; font-size: .92rem; } }
@media (max-width: 1220px) { .menu { display: none; } .actions { margin-left: auto; } }

/* Verset étudié + son explication, regroupés */
.groupe-verset { margin: 22px 0 26px; }
.groupe-verset .carte-ref.du-livre { position: relative; margin-bottom: 0; border-width: 2px; border-bottom-left-radius: 0; }
.groupe-verset .carte-ref.du-livre + .carte-ref.du-livre { margin-top: 8px; border-radius: 16px 16px 16px 0; }
.verset-etudie {
  float: right; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #2F6DB5; background: #fff; border: 1px solid #B5D3F0; border-radius: 20px; padding: 2px 10px;
}
.explication {
  border-left: 4px solid #2F6DB5; margin-left: 0; padding: 14px 0 4px 20px;
  background: linear-gradient(90deg, rgba(47, 109, 181, .06), transparent 60%); border-radius: 0 0 0 12px;
}
.etiquette-explication {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #2F6DB5; margin-bottom: 8px;
}
.explication > :last-child { margin-bottom: 8px; }
:root[data-theme="sombre"] .verset-etudie { background: rgba(255, 255, 255, .08); color: #8AB4FF; border-color: rgba(100, 170, 255, .4); }
:root[data-theme="sombre"] .explication { border-left-color: #64AAFF; background: linear-gradient(90deg, rgba(100, 170, 255, .08), transparent 60%); }
:root[data-theme="sombre"] .etiquette-explication { color: #8AB4FF; }
@media (max-width: 720px) { .explication { padding-left: 14px; } .verset-etudie { float: none; display: inline-block; margin-left: 6px; } }

/* Chapitres du livre dans la colonne de droite */
.carte-chapitres .chapitres-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.carte-chapitres .chapitres-tete strong { color: var(--titre); font-size: 1.05rem; text-align: center; }
.fleche-chapitre {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; text-decoration: none;
  background: var(--bouton-fond); color: var(--bouton-texte); font-size: 1.5rem; line-height: 1; font-weight: 700;
}
.fleche-chapitre.vide { background: var(--fond-2); color: var(--discret); opacity: .5; }
.carte-chapitres .chapitres { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.carte-chapitres .chapitres a { padding: 7px 0; border-radius: 10px; font-size: .92rem; }
.carte-chapitres .chapitres a.actuel { background: var(--bouton-fond); color: var(--bouton-texte); box-shadow: 0 0 0 2px var(--titre); }

/* Grandes flèches sur les côtés : chapitre précédent / suivant */
.fleche-cote {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 8px; border-radius: 16px; text-decoration: none; color: var(--bouton-texte); background: var(--bouton-fond);
  box-shadow: var(--ombre-forte); opacity: .85; transition: opacity .15s, transform .15s;
}
.fleche-cote:hover { opacity: 1; }
.fleche-cote span { font-size: 2.2rem; line-height: 1; font-weight: 700; }
.fleche-cote small { font-size: .72rem; font-weight: 700; writing-mode: vertical-rl; transform: rotate(180deg); }
.fleche-cote.droite small { transform: none; }
.fleche-cote.gauche { left: 10px; }
.fleche-cote.droite { right: 10px; }
.fleche-cote.gauche:hover { transform: translate(-2px, -50%); }
.fleche-cote.droite:hover { transform: translate(2px, -50%); }
/* Écran d'ordinateur trop étroit pour les flèches en marge, et téléphone : flèches rondes en bas */
@media (max-width: 1500px) {
  .fleche-cote { top: auto; bottom: 16px; transform: none; padding: 0; width: 52px; height: 52px; border-radius: 50%; justify-content: center; }
  .fleche-cote small { display: none; }
  .fleche-cote span { font-size: 2rem; margin-top: -3px; }
  .fleche-cote.gauche:hover, .fleche-cote.droite:hover { transform: none; }
}

/* Téléphone et écran étroit : les chapitres en bandeau défilant en haut de l'étude */
.chapitres-mobile { display: none; }
@media (max-width: 1100px) {
  .chapitres-mobile {
    display: flex; gap: 6px; align-items: center; overflow-x: auto; margin: 0 0 16px; padding: 4px 2px 10px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .chapitres-mobile span { flex: none; font-weight: 700; color: var(--titre); margin-right: 4px; }
  .chapitres-mobile a {
    flex: none; min-width: 38px; padding: 7px 0; text-align: center; border-radius: 10px; text-decoration: none; font-weight: 700;
    background: var(--fond-2); color: var(--texte); border: 1px solid var(--bord);
  }
  .chapitres-mobile a.a-venir { opacity: .45; }
  .chapitres-mobile a.actuel { background: var(--bouton-fond); color: var(--bouton-texte); border-color: var(--bouton-fond); }
  .page-etude { padding-bottom: 70px; }
}

/* ------------------------------------------------------------------ Page « Écouter » */
.categories-4 { grid-template-columns: repeat(4, 1fr); }
.page-ecouter section { scroll-margin-top: 90px; }
.radios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.radio {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 22px; border-radius: 20px; cursor: pointer;
  border: 0; font: inherit; color: #fff; background: radial-gradient(ellipse at 15% 20%, #1d3557 0%, #0B1424 70%); box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s;
}
.radio:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
.radio-icone { font-size: 2.2rem; }
.radio strong { font-size: 1.25rem; }
.radio small { color: rgba(255, 255, 255, .78); line-height: 1.4; flex: 1; }
.radio em { font-style: normal; margin-top: 10px; color: #F2C14E; font-weight: 700; }
.radio.active { outline: 3px solid #F2C14E; }
.radio.active em::after { content: " · en cours"; }

.testament { display: flex; align-items: center; gap: 16px; margin: 40px 0 6px; color: var(--titre); font-size: 1.6rem; }
.testament img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.testament small { display: block; font-size: .95rem; color: var(--discret); font-weight: 500; }
.groupe-audio { margin: 24px 0 12px; color: var(--discret); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.livres-audio { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.livre-audio { background: var(--surface); border: 1px solid var(--bord); border-radius: 16px; box-shadow: var(--ombre); }
.livre-audio[open] { grid-column: 1 / -1; }
.livre-audio summary { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.livre-audio summary::-webkit-details-marker, .collection summary::-webkit-details-marker { display: none; }
.livre-audio summary strong { color: var(--titre); font-size: 1.08rem; }
.livre-audio summary strong::before { content: "▸ "; color: var(--discret); }
.livre-audio[open] summary strong::before { content: "▾ "; }
.livre-audio summary small { color: var(--discret); }
.livre-audio .chapitres { padding: 0 18px 18px; }
.chapitres .piste {
  padding: 10px 0; text-align: center; border-radius: 12px; border: 0; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--fond-2); color: var(--texte); transition: background .15s, color .15s;
}
.chapitres .piste:hover, .chapitres .piste.en-cours { background: var(--bouton-fond); color: var(--bouton-texte); }

.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.collection { background: var(--surface); border: 1px solid var(--bord); border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.collection summary { display: flex; gap: 16px; align-items: center; padding: 16px; cursor: pointer; list-style: none; }
.collection-image { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--fond-2); font-size: 2rem; }
.collection-image img { width: 100%; height: 100%; object-fit: cover; }
.collection-texte { display: flex; flex-direction: column; min-width: 0; }
.collection-texte strong { color: var(--titre); font-size: 1.15rem; line-height: 1.25; }
.collection-texte small { color: var(--discret); line-height: 1.35; }
.collection-texte em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 4px; font-size: .9rem; }
.collection-actions { display: flex; gap: 8px; padding: 0 16px 12px; }
.bouton-lire-tout {
  padding: 9px 16px; border-radius: 30px; border: 1px solid var(--bouton-fond); background: var(--bouton-fond); color: var(--bouton-texte);
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.bouton-lire-tout.contour { background: transparent; color: var(--titre); border-color: var(--bord); }
.pistes { list-style: none; margin: 0; padding: 0 8px 12px; max-height: 420px; overflow-y: auto; }
.pistes .piste {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none;
  font: inherit; color: var(--texte); text-align: left; cursor: pointer;
}
.pistes .piste:hover { background: var(--fond-2); }
.pistes .piste.en-cours { background: var(--citation-fond); color: var(--citation-texte); font-weight: 700; }
.numero-piste { flex: none; width: 28px; text-align: center; color: var(--discret); font-size: .85rem; }
.titre-piste { flex: 1; min-width: 0; }
.icone-piste { flex: none; color: var(--titre); }
.piste.en-cours .icone-piste::before { content: "🔊 "; }
.piste.indisponible { opacity: .45; }

/* Lecteur fixé en bas de l'écran */
.lecteur {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; color: #fff;
  background: rgba(11, 20, 36, .97); border-top: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lecteur[hidden] { display: none; }
body.avec-lecteur { padding-bottom: 110px; }
.lecteur-dedans { max-width: var(--large); margin: 0 auto; padding: 10px 32px 2px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1.4fr) auto; gap: 18px; align-items: center; }
.lecteur-image { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: #1d3557; }
.lecteur-image[hidden] { display: none; }
.lecteur-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lecteur-infos { display: flex; flex-direction: column; min-width: 0; }
.lecteur-infos strong, .lecteur-infos small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur-infos small { color: rgba(255, 255, 255, .65); }
.lecteur-boutons { display: flex; gap: 8px; align-items: center; }
.lecteur-boutons button, .lecteur-fermer {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.05rem; cursor: pointer;
}
.lecteur-boutons .lecteur-lecture { width: 54px; height: 54px; background: #F2C14E; color: #1a1205; font-size: 1.35rem; }
.lecteur-temps { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.lecteur-temps input { flex: 1; min-width: 0; accent-color: #F2C14E; }
.lecteur-mode { max-width: var(--large); margin: 0 auto; padding: 0 32px 8px; font-size: .8rem; color: #F2C14E; }

@media (max-width: 1100px) {
  .radios { grid-template-columns: repeat(2, 1fr); }
  .categories-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .radios { grid-template-columns: 1fr 1fr; gap: 10px; }
  .radio { padding: 16px; }
  .radio small { font-size: .85rem; }
  .categories-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .categories-4 .categorie { min-height: 180px; }
  .categories-4 .categorie small { display: none; }
  .collections { grid-template-columns: 1fr; }
  .livres-audio { grid-template-columns: 1fr 1fr; gap: 8px; }
  .livre-audio summary { flex-direction: column; gap: 0; padding: 12px 14px; }
  .livre-audio .chapitres { padding: 0 12px 14px; }
  .lecteur-dedans { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 8px 16px 0; }
  .lecteur-temps { grid-column: 1 / -1; order: 5; }
  .lecteur-fermer { display: none; }
  .lecteur-boutons button { width: 38px; height: 38px; }
  .lecteur-boutons .lecteur-lecture { width: 48px; height: 48px; }
  .lecteur-image { width: 44px; height: 44px; }
  .lecteur-mode { padding: 0 16px 8px; }
  body.avec-lecteur { padding-bottom: 150px; }
}
/* Petits téléphones : l'en-tête garde le 🎧 et le bouton de l'app sans déborder */
@media (max-width: 420px) {
  .entete-dedans { gap: 6px; }
  .actions { gap: 6px; }
  .icone-bouton { width: 34px !important; height: 34px !important; font-size: 15px; }
  .marque span { font-size: 1rem; }
  .marque .logo { --taille: 34px !important; }
}
.visites { font-size: .85rem; opacity: .6; margin-top: 18px; }
