/* Portal shell only. Original Fable NT rules are appended byte-for-byte. */
:root { color-scheme: light; --paper:#f7f2ea; --paper-deep:#eee5d9; --ink:#071522; --muted:#5d5b58; --line:#d2c4b2; --night:#03111c; --gold:#b7793e; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px Georgia,'Times New Roman',serif; }
a { color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible { outline:3px solid #b7793e; outline-offset:4px; }
.nt .eyebrow { font:700 11px Arial,Helvetica,sans-serif; letter-spacing:.24em; margin:0 0 22px; }
.nt .button { border:1px solid var(--ink); cursor:pointer; display:inline-flex; font:700 12px Arial,Helvetica,sans-serif; justify-content:center; letter-spacing:.08em; min-width:160px; min-height:44px; padding:16px 22px; }
.nt .button.primary { background:var(--ink); color:var(--paper); }
.nt .button.secondary { background:transparent; }
.nt-portal-header { align-items:center; background:#03111c; border-bottom:1px solid #b7793e; color:#faf5eb; display:grid; grid-template-columns:auto 1fr; gap:0 24px; padding:12px max(18px,calc((100vw - 1100px)/2)); }
.nt-portal-brand { display:block; width:208px; }
.nt-portal-brand img { display:block; width:100%; height:auto; object-fit:contain; }
.nt-portal-header-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.nt-portal-header nav { display:flex; flex-wrap:wrap; gap:8px 18px; }
.nt-portal-header a,.nt-portal-footer a { text-decoration:none; }
.nt-portal-header nav a { align-items:center; display:inline-flex; min-height:44px; font:13px Arial,Helvetica,sans-serif; }
.nt-portal-header a:hover,.nt-portal-footer a:hover { text-decoration:underline; }
.nt-portal-header .nt-portal-sections { grid-column:1/-1; border-top:1px solid #ffffff29; justify-content:center; padding-top:8px; margin-top:8px; }
.nt-theme-toggle { background:transparent; border:1px solid #d2c4b2; border-radius:5px; color:inherit; cursor:pointer; font:13px Arial,Helvetica,sans-serif; min-height:44px; padding:8px 14px; }
.nt-portal-footer { background:#03111c; border-top:1px solid #b7793e; color:#faf5eb; margin-top:44px; padding:28px max(20px,calc((100vw - 1100px)/2)); }
.nt-portal-footer strong { font-size:20px; font-weight:400; }
.nt-portal-footer nav { display:flex; flex-wrap:wrap; gap:4px 22px; margin-top:12px; }
.nt-portal-footer nav a { display:inline-flex; align-items:center; font:12px Arial,Helvetica,sans-serif; min-height:44px; }
.nt-portal-footer p { font:11px Arial,Helvetica,sans-serif; color:#d2c4b2; margin:20px 0 0; }
.nt-skip { position:fixed; left:12px; top:-100px; z-index:10; background:#fff; color:#071522; padding:12px 16px; }
.nt-skip:focus { top:12px; }
.nt a { overflow-wrap:anywhere; }
.nt [id] { scroll-margin-top:16px; }
@media(max-width:600px) { .nt-portal-header{gap:4px 12px;padding:12px 16px}.nt-portal-brand{width:160px}.nt-portal-header-links{gap:4px 8px}.nt-portal-header-links nav{justify-content:flex-end;gap:4px 10px}.nt-portal-header nav a{font-size:12px}.nt-portal-sections{gap:2px 18px!important}.nt-portal-footer{padding-inline:20px}.nt .nt-nav{flex-wrap:wrap;justify-content:center}.nt .nt-nav>span{order:3;width:100%}.nt .nt-lettres a{min-width:44px;min-height:44px;display:grid;place-items:center}.nt .nt-photos{grid-template-columns:minmax(0,1fr)} }
@media(prefers-reduced-motion:reduce) { html{scroll-behavior:auto} }
@media print { .nt-portal-header,.nt-portal-footer,.nt-skip{display:none!important} }

/* Le Nouveau Testament, édition expliquée — lecteur web, fait d'abord pour le téléphone.
   Couleurs de la charte du livre : bleu nuit (comprendre), vermillon (les mots), rose (la question), vert sapin (repères). */
.nt {
  --nt-bleu: #005497; --nt-bleu-fond: #e1e9f7; --nt-vert: #105834; --nt-vert-fond: #e9f2e5;
  --nt-vermillon: #ec6023; --nt-vermillon-fond: #fee9dc; --nt-rose: #d476ac; --nt-rose-fond: #f8eaf3;
  --nt-ciel-fond: #e2f2fd; --nt-gris: #575757; --nt-max: 760px;
  color: var(--ink); background: var(--paper);
}
.nt main { padding-bottom: 90px; }
.nt .nt-page { margin: 0 auto; max-width: var(--nt-max); padding: 28px 20px 40px; }
.nt .nt-page.large { max-width: 1100px; }
.nt .eyebrow { margin-bottom: 14px; }
.nt h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 400; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 14px; }
.nt h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; margin: 34px 0 10px; }
.nt h3 { font-size: 20px; font-weight: 400; margin: 26px 0 8px; }
.nt p { line-height: 1.6; }
.nt a { color: inherit; }
.nt .nt-lead { color: var(--muted); font-size: 19px; line-height: 1.55; margin: 0 0 22px; }
.nt .nt-fil { color: var(--muted); font: 11px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .08em; margin: 0 0 18px; text-transform: uppercase; }
.nt .nt-fil a { text-decoration: none; }
.nt .nt-fil a:hover { text-decoration: underline; }

/* bandeau de la période gratuite */
.nt .nt-bandeau { background: var(--night); border-radius: 6px; color: #fff; display: grid; gap: 6px; margin: 0 0 26px; padding: 16px 18px; }
.nt .nt-bandeau strong { font-size: 15px; }
.nt .nt-bandeau span { color: #d9e2ec; font-size: 14px; line-height: 1.5; }
.nt .nt-bandeau a { color: #fff; }

/* grilles de volumes et de livres */
.nt .nt-volumes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 10px 0 30px; }
.nt .nt-volume { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 14px; }
.nt .nt-volume h2 { font-size: 22px; margin: 4px 0 10px; }
.nt .nt-volume ul { list-style: none; margin: 0; padding: 0; }
.nt .nt-volume li { border-top: 1px solid var(--line); padding: 7px 0; }
.nt .nt-volume li a { display: flex; justify-content: space-between; text-decoration: none; }
.nt .nt-volume li a:hover { text-decoration: underline; }
.nt .nt-volume li small { color: var(--muted); font: 11px Arial, Helvetica, sans-serif; }
.nt .nt-dedicace { font-size: 20px; font-style: italic; line-height: 1.5; margin: 28px 0; }
.nt .nt-telecharger { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 24px; }
.nt .nt-telecharger .button { text-decoration: none; }

/* chapitres d'un livre */
.nt .nt-chapitres { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); margin: 12px 0 30px; }
.nt .nt-chapitres a { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: grid; font: 700 14px Arial, Helvetica, sans-serif; place-items: center; text-decoration: none; }
.nt .nt-chapitres a:hover, .nt .nt-chapitres a:focus-visible { background: var(--ink); color: #fff; }
.nt .nt-chapitres a[aria-current='page'] { background: var(--ink); color: #fff; }

/* navigation de chapitre */
.nt .nt-nav { align-items: center; display: flex; font: 700 12px Arial, Helvetica, sans-serif; gap: 10px; justify-content: space-between; letter-spacing: .06em; margin: 18px 0; }
.nt .nt-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; text-decoration: none; }
.nt .nt-nav a:hover { background: var(--ink); color: #fff; }
.nt .nt-nav span { color: var(--muted); text-align: center; }

/* le texte biblique */
.nt .nt-passage { margin: 0 0 34px; }
.nt .nt-passage > h2 { margin-top: 30px; }
.nt .nt-ref { color: var(--nt-vert); font: 700 12px Arial, Helvetica, sans-serif; letter-spacing: .08em; margin: 0 0 12px; }
.nt .nt-bible { font-size: 19px; line-height: 1.65; margin: 0 0 14px; text-align: left; }
.nt .nt-bible sup { color: var(--nt-gris); font: 11px Arial, Helvetica, sans-serif; margin-right: 3px; vertical-align: super; }
.nt .nt-bible sup::after { content: '\00a0'; }

/* la couche augmentée */
.nt .nt-augmente { display: grid; gap: 14px; margin: 18px 0 0; }
.nt .nt-bloc { border-left: 4px solid var(--line); padding: 10px 14px; }
.nt .nt-bloc .nt-etiquette { display: block; font: 700 11px Arial, Helvetica, sans-serif; letter-spacing: .2em; margin: 0 0 8px; text-transform: uppercase; }
.nt .nt-bloc p { margin: 0 0 8px; }
.nt .nt-bloc p:last-child { margin-bottom: 0; }
.nt .nt-mots { background: var(--nt-vermillon-fond); border-color: var(--nt-vermillon); }
.nt .nt-mots .nt-etiquette { color: #b4461a; }
.nt .nt-mots dl { display: grid; gap: 6px; margin: 0; }
.nt .nt-mots dt { display: inline; font-weight: 700; }
.nt .nt-mots dt small { color: var(--nt-gris); font: 11px Arial, Helvetica, sans-serif; margin-left: 4px; }
.nt .nt-mots dd { display: inline; margin: 0; }
.nt .nt-mots dd::before { content: ' — '; }
.nt .nt-mots div { line-height: 1.5; }
.nt .nt-comprendre { background: var(--nt-bleu-fond); border-color: var(--nt-bleu); }
.nt .nt-comprendre .nt-etiquette { color: var(--nt-bleu); }
.nt .nt-rubrique { font-weight: 700; }
.nt .nt-rubrique::after { content: '. '; }
.nt .nt-question { background: var(--nt-rose-fond); border-color: var(--nt-rose); }
.nt .nt-question .nt-etiquette { color: #9a3f78; }
.nt .nt-question .nt-q { font-size: 18px; font-style: italic; margin: 0 0 8px; }
.nt .nt-sources-codes { color: var(--nt-gris); font: 10px Arial, Helvetica, sans-serif; letter-spacing: .06em; margin: 6px 0 0; }

/* schémas */
.nt .nt-schema { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 4px 0 0; padding: 14px 16px; }
.nt .nt-schema.voix-livre { background: var(--nt-vert-fond); }
.nt .nt-schema.voix-comprendre { background: var(--nt-bleu-fond); }
.nt .nt-schema h4 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.nt .nt-schema .nt-note { color: var(--nt-gris); font-size: 14px; font-style: italic; line-height: 1.5; margin: 10px 0 0; }
.nt .nt-colonnes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.nt .nt-col { background: rgba(255, 255, 255, .7); border-radius: 6px; padding: 10px 12px; }
.nt .nt-col strong { display: block; margin: 0 0 6px; }
.nt .nt-col p { font-size: 15px; line-height: 1.45; margin: 0 0 6px; }
.nt .nt-grille { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nt .nt-case { background: rgba(255, 255, 255, .7); border-radius: 6px; font-size: 15px; line-height: 1.45; padding: 9px 11px; }
.nt .nt-case strong { display: block; }
.nt .nt-chaine { list-style: none; margin: 0; padding: 0; }
.nt .nt-chaine li { border-left: 2px solid var(--ink); font-size: 15px; line-height: 1.45; margin: 0 0 0 6px; padding: 4px 0 10px 14px; position: relative; }
.nt .nt-chaine li::before { background: var(--ink); border-radius: 50%; content: ''; height: 9px; left: -5.5px; position: absolute; top: 9px; width: 9px; }
.nt .nt-chaine li strong { display: block; }
.nt .nt-barres { display: grid; gap: 8px; }
.nt .nt-barre { align-items: center; display: grid; gap: 10px; grid-template-columns: 90px 1fr 70px; font: 13px Arial, Helvetica, sans-serif; }
.nt .nt-barre i { background: var(--nt-bleu); border-radius: 3px; display: block; height: 14px; }
.nt .nt-barre.relief i { background: var(--nt-vermillon); }
.nt .nt-barre b { text-align: right; }

/* porte d'entrée du livre */
.nt .nt-porte { display: grid; gap: 14px; margin: 10px 0 26px; }
.nt .nt-enbref { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.nt .nt-enbref h3 { margin: 0 0 10px; }
.nt .nt-enbref p { margin: 0 0 8px; }
.nt .nt-plan { background: var(--nt-ciel-fond); border-radius: 8px; padding: 14px 16px; }
.nt .nt-plan .nt-etiquette { display: block; font: 700 11px Arial, Helvetica, sans-serif; letter-spacing: .2em; margin: 0 0 8px; }
.nt .nt-plan p { font-size: 15px; margin: 0 0 6px; }

/* sources */
.nt .nt-sources { border-top: 1px solid var(--line); margin: 40px 0 0; padding-top: 18px; }
.nt .nt-sources summary { cursor: pointer; font: 700 12px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.nt .nt-sources ol { margin: 14px 0 0; padding-left: 0; list-style: none; }
.nt .nt-sources li { border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; padding: 8px 0; }
.nt .nt-sources li code { color: var(--nt-vert); font: 700 11px Arial, Helvetica, sans-serif; margin-right: 8px; }
.nt .nt-sources li a { word-break: break-all; }

/* index, questions */
.nt .nt-lettres { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.nt .nt-lettres a { border: 1px solid var(--line); border-radius: 6px; font: 700 13px Arial, Helvetica, sans-serif; min-width: 34px; padding: 7px 0; text-align: center; text-decoration: none; }
.nt .nt-lettres a[aria-current='page'], .nt .nt-lettres a:hover { background: var(--ink); color: #fff; }
.nt .nt-index { list-style: none; margin: 0; padding: 0; }
.nt .nt-index li { border-top: 1px solid var(--line); line-height: 1.5; padding: 8px 0; }
.nt .nt-index li b { margin-right: 6px; }
.nt .nt-index li a { color: var(--nt-vert); font: 700 11px Arial, Helvetica, sans-serif; margin-left: 8px; text-decoration: none; white-space: nowrap; }
.nt .nt-index li a:hover { text-decoration: underline; }
.nt .nt-qlist { display: grid; gap: 12px; }
.nt .nt-qlist .nt-question { border-radius: 6px; }
.nt .nt-qlist .nt-question a { color: var(--nt-gris); font: 700 11px Arial, Helvetica, sans-serif; letter-spacing: .06em; text-decoration: none; }

/* photos */
.nt .nt-photos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 16px 0 28px; }
.nt .nt-photo { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.nt .nt-photo img { aspect-ratio: 4 / 3; display: block; height: auto; object-fit: cover; width: 100%; }
.nt .nt-photo figcaption { padding: 12px 14px 14px; }
.nt .nt-photo figcaption strong { display: block; margin: 0 0 6px; }
.nt .nt-photo figcaption p { font-size: 14px; line-height: 1.5; margin: 0 0 8px; }
.nt .nt-photo .nt-credit { color: var(--nt-gris); font: 11px/1.5 Arial, Helvetica, sans-serif; margin: 0; }
.nt .nt-photo .nt-credit a { color: inherit; }
.nt .nt-photo .nt-liens a { color: var(--nt-vert); font: 700 11px Arial, Helvetica, sans-serif; margin-right: 8px; text-decoration: none; }
.nt .nt-photo-passage { margin: 14px 0 0; }

/* a-propos et pages de texte */
.nt .nt-texte h2 { font-size: 26px; margin-top: 34px; }
.nt .nt-texte table { border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; width: 100%; }
.nt .nt-texte td, .nt .nt-texte th { border-top: 1px solid var(--line); padding: 7px 8px 7px 0; text-align: left; vertical-align: top; }
.nt .nt-texte ul { padding-left: 20px; }
.nt .nt-texte li { line-height: 1.55; margin: 0 0 6px; }
.nt .nt-encadre { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 18px 0; padding: 14px 16px; }
.nt .nt-mention { color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 640px) {
  .nt .nt-page { padding: 20px 16px 36px; }
  .nt .nt-bible { font-size: 18px; }
  .nt .nt-nav a { padding: 8px 11px; }
  .nt .nt-barre { grid-template-columns: 70px 1fr 60px; }
}
@media print {
  .nt .nt-bandeau, .nt .nt-nav, .nt .nt-telecharger { display: none; }
}

/* Appended after the unchanged source rules so contrast stays explicit. */
html[data-nt-theme='dark'] { color-scheme:dark; --paper:#101b25; --paper-deep:#172532; --ink:#f4ede1; --muted:#c8c2b9; --line:#53616e; --night:#03111c; }
html[data-nt-theme='dark'] .nt { --nt-bleu:#acd1f4; --nt-bleu-fond:#182d43; --nt-vert:#9ed1ac; --nt-vert-fond:#193426; --nt-vermillon:#ef9369; --nt-vermillon-fond:#39271e; --nt-rose:#e8a5cd; --nt-rose-fond:#352235; --nt-ciel-fond:#183343; --nt-gris:#c1c6cc; }
html[data-nt-theme='dark'] .nt :is(.nt-volume,.nt-chapitres a,.nt-schema,.nt-enbref,.nt-photo,.nt-encadre) { background:#172532; }
html[data-nt-theme='dark'] .nt .nt-schema.voix-livre { background:var(--nt-vert-fond); }
html[data-nt-theme='dark'] .nt .nt-schema.voix-comprendre { background:var(--nt-bleu-fond); }
html[data-nt-theme='dark'] .nt :is(.nt-col,.nt-case) { background:#ffffff0b; }
html[data-nt-theme='dark'] .nt .nt-mots .nt-etiquette { color:#efb08d; }
html[data-nt-theme='dark'] .nt .nt-question .nt-etiquette { color:#e8a5cd; }
html[data-nt-theme='dark'] .nt .nt-chapitres a:hover { background:var(--ink); color:var(--paper); }
html[data-nt-theme='dark'] .nt .nt-lettres a:is([aria-current='page'],:hover) { color:var(--paper); }
