@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Manrope:wght@400;500;700&display=swap');

:root {
    --base-font-size: 16px;
    --ref-font-size: 14px;
    --hebrew-font-size: 18px;
    --citation-hebrew-font-size: 34px;
    --phrase-hover-wine: #7b1e2b;
    --article-bg-start: #efe4d2;
    --article-bg-mid: #e4ecf5;
    --article-bg-end: #f7f2ea;
    --article-surface: rgba(255, 252, 247, 0.9);
    --article-border: rgba(122, 92, 59, 0.18);
    --article-shadow: rgba(69, 53, 33, 0.14);
    --article-accent: #8d6136;
    --article-accent-strong: #603d1c;
}

body {
    background:
        radial-gradient(circle at 10% 14%, rgba(80, 185, 178, 0.24), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(234, 123, 71, 0.18), transparent 34%),
        linear-gradient(155deg, #eff6fa, #e6f0f8);
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: var(--base-font-size);
}

body :is(p, li, .paragraph, .citation, .citation-hebrew, .hebreu, .verse-item, .verse-line) {
    transition: color 0.2s ease;
}

body :is(p, li, .paragraph, .citation, .citation-hebrew, .hebreu, .verse-item, .verse-line):hover {
    color: var(--phrase-hover-wine);
}

label {
    background-color: rgb(228, 222, 222);
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}
button {
    color: blue;
    font-family: Helvetica, sans-serif;
    font-size: 12px;
}
iframe {
    background-color: rgb(228, 222, 222);
    color: rgb(34, 34, 31);
    font-size: var(--base-font-size);
}
pre {
    background-color: rgb(228, 222, 222);
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 16px;
}
b {
    color: rgb(0, 102, 204); /* Blue color for bold text */
    font-weight: bold;
    font-family: Helvetica, sans-serif;
    font-size: var(--base-font-size);
    background-color: rgb(255, 255, 255); /* White background for contrast */
    padding: 2px 4px;
    border-radius: 3px;
}
.chapitre {
    background: linear-gradient(120deg, rgba(244, 230, 206, 0.94) 0%, rgba(218, 232, 246, 0.94) 55%, rgba(235, 243, 252, 0.94) 100%);
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 1.2rem;
    padding: 8px;
    border-left: 4px solid rgb(34, 34, 31);
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}
a {
    color: rgb(34, 34, 31);
    text-decoration: none; /* Remove underline */
    font-family: Helvetica, sans-serif;
    font-size: var(--base-font-size);
    transition: color 0.3s ease; /* Smooth transition for color change */
}
a:hover {
    color: rgb(83, 35, 11);
}
.lien  {
    color: rgb(0, 102, 204); /* Blue color for bold text */
    font-family: Helvetica, sans-serif;
    font-size: 16px;
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth transition for color change */
}
.lien:hover {
    color: rgb(219, 84, 16);
    text-decoration: underline; /* Underline on hover */
    font-weight: bold; /* Bold on hover */
}
.menu {
    background: linear-gradient(120deg, rgba(244, 230, 206, 0.94) 0%, rgba(218, 232, 246, 0.94) 55%, rgba(235, 243, 252, 0.94) 100%) !important;
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    padding: 10px;
    border-bottom: 2px solid rgb(34, 34, 31);
}
.menu a {
    color: rgb(0, 102, 204);
    text-decoration: none; /* Remove underline */
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    transition: color 0.3s ease; /* Smooth transition for color change */
}
.menu a:hover {
    color: rgb(219, 84, 16);
    text-decoration: underline; /* Underline on hover */
    font-weight: bold; /* Bold on hover */
}
.hebreu {
    font-family: 'David Libre', serif;
    font-size: var(--hebrew-font-size);
    color: rgb(34, 34, 31);
    text-align: right;
    direction: rtl;
}

a.hebreu,
a.hebreu:link,
a.hebreu:visited,
a.hebreu:hover,
a.hebreu:active,
a.hebreu:focus {
    text-decoration: none !important;
}

.paragraph {
    background-color: rgb(245, 245, 245); /* Light grey background */
    color: rgb(34, 34, 31); /* Dark text color */
    font-family: Helvetica, sans-serif; /* Sans-serif font */
    font-size: var(--base-font-size); /* Medium font size */
    line-height: 1.6; /* Line height for readability */
    padding: 10px 15px; /* Padding for spacing */
    border-left: 3px solid rgb(83, 35, 11); /* Dark brown left border */
    margin: 10px 0; /* Margin for spacing between paragraphs */
    border-radius: 3px; /* Slightly rounded corners */
    box-sizing: border-box; /* Include padding in width calculation */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

h1 {
    background-color: rgb(255, 255, 255); /* White background */
    color: rgb(0, 102, 204); /* Blue text color */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: 32px; /* Larger font size */
    font-weight: bold; /* Bold text */
    text-align: center; /* Centered text */
    padding: 20px; /* Padding for spacing */
    border-bottom: 3px solid rgb(0, 102, 204); /* Blue bottom border */
    margin: 20px 0; /* Margin for spacing */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}
h2 {
    background: transparent;
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 1.5rem;
    padding: 0;
    border: 0;
    text-align: center;
    margin: 15px 0;
    border-radius: 0;
    box-shadow: none;
}
h3 {
    background-color: rgb(255, 255, 240); /* Light yellow background */
    color: rgb(34, 34, 31); /* Dark text color */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: 20px; /* Medium font size */
    font-weight: bold; /* Bold text */
    text-align: left; /* Left-aligned text */
    padding: 10px; /* Padding for spacing */
    border-bottom: 1px solid rgb(0, 102, 204); /* Blue bottom border */
    margin: 10px 0; /* Margin for spacing */
    border-radius: 5px; /* Rounded corners */
}
h4 {
    background-color: rgb(255, 255, 240); /* Light yellow background */
    color: rgb(34, 34, 31); /* Dark text color */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: 18px; /* Medium font size */
    font-weight: bold; /* Bold text */
    text-align: left; /* Left-aligned text */
    padding: 8px; /* Padding for spacing */
    border-bottom: 1px solid rgb(0, 102, 204); /* Blue bottom border */
    margin: 8px 0; /* Margin for spacing */
    border-radius: 5px; /* Rounded corners */
}
.citation {
    background-color: rgb(255, 255, 240); /* Light yellow background */
    color: rgb(34, 34, 31); /* Dark text color */
    font-family: 'Georgia', serif; /* Elegant serif font */
    font-size: var(--hebrew-font-size); /* Medium font size */
    font-style: italic; /* Italic text */
    padding: 10px 15px; /* Padding for spacing */
    border-left: 4px solid rgb(0, 102, 204); /* Blue left border */
    margin: 15px 0; /* Margin for spacing between citations */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.citation-hebrew {
    font-family: 'David Libre', serif;
    font-size: var(--citation-hebrew-font-size);
    color: rgb(34, 34, 31);
    text-align: right;
    direction: rtl;
    background-color: rgb(255, 255, 240); /* Light yellow background */
    padding: 10px 15px; /* Padding for spacing */
    border-left: 4px solid rgb(0, 102, 204); /* Blue left border */
    margin: 15px 0; /* Margin for spacing between citations */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.img-fluid {
    border-radius: 10px; /* Rounded corners */
    width: auto; 
    height:350px;
    margin-right: 20px;
}
.dailyVerses.bibleVerse
{
margin-top: .5em;
}
.dailyVerses.bibleVerse a
{
font-weight: bold;
}
.rss-feed {
    background-color: rgb(245, 245, 245); /* Very light grey background */
    color: rgb(34, 34, 31); /* Dark text color */
    font-family: Helvetica, sans-serif; /* Sans-serif font */
    font-size: 12px; /* Smaller font size */
    line-height: 1.4; /* Line height for compact readability */
    padding: 10px; /* Less padding for compact spacing */
    border: 1px solid rgb(220, 220, 220); /* Light grey border */
    border-radius: 3px; /* Slightly rounded corners */
    margin: 10px 0; /* Less margin for compact spacing */
}

.rss-feed h3 {
    font-size: 12px; /* Smaller font size for titles */
    font-weight: bold; /* Bold text */
    color: rgb(0, 102, 204); /* Blue text color */
}

.rss-feed a {
    color: rgb(0, 102, 204); /* Blue color for links */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.rss-feed a:hover {
    color: rgb(219, 84, 16); /* Darker color on hover */
    text-decoration: underline; /* Underline on hover */
}
#loadingIndicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
html[data-theme="dark"] #loadingIndicator {
    background-color: rgba(20, 24, 28, 0.82);
}

html[data-theme="dark"] .spinner {
    border-color: rgba(217, 214, 205, 0.18);
    border-top-color: #7fb3f0;
}

.ref {
    color: rgb(0, 102, 204); /* Blue color for reference links */
    font-family: Helvetica, sans-serif; /* Sans-serif font */
    font-size: var(--ref-font-size); /* Slightly smaller font size */
    text-decoration: none; /* Remove underline */
    padding: 2px 4px; /* Padding for spacing */
    border-radius: 3px; /* Slightly rounded corners */
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.result {
    font-size: var(--ref-font-size); /* Medium font size */
}

.ref:hover {
    color: rgb(219, 84, 16); /* Darker color on hover */
    text-decoration: underline; /* Underline on hover */
    font-weight: bold; /* Bold on hover */
}

.colonne-gauche {
    width: 50%;
    float: left;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px; /* Rounded corners */
}

.colonne-droite {
    width: 50%;
    float: right;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px; /* Rounded corners */
}

.row {
    clear: both;
}

.foot {
    background-color: rgb(228, 222, 222);
    color: rgb(34, 34, 31);
    font-family: Helvetica, sans-serif;
    font-size: 10px;
    padding: 10px;
    border-top: 2px solid rgb(34, 34, 31);
    text-align: center;
}

.notes {
    font-family: Helvetica, sans-serif; /* Sans-serif font */
    font-size: var(--ref-font-size); /* Slightly smaller font size */
    color: rgb(83, 35, 11); /* Dark brown text color */
    text-align: right; /* Align text to the right */
    margin-top: 10px; /* Space above the note */
    padding: 5px 10px; /* Padding for spacing */
    border-top: 1px solid rgb(220, 220, 220); /* Light grey top border */
    font-style: italic; /* Italic text for emphasis */
}

.notes a {
    font-family: Helvetica, sans-serif; /* Sans-serif font */
    font-size: var(--ref-font-size); /* Slightly smaller font size */
    color: rgb(83, 35, 11); /* Dark brown text color */
    text-align: right; /* Align text to the right */
    margin-top: 10px; /* Space above the note */
    padding: 5px 10px; /* Padding for spacing */
    border-top: 1px solid rgb(220, 220, 220); /* Light grey top border */
    font-style: italic; /* Italic text for emphasis */
}

div.notes {
    font-family: Helvetica, sans-serif !important; /* Sans-serif font */
    font-size: var(--ref-font-size) !important; /* Slightly smaller font size */
    color: rgb(83, 35, 11) !important; /* Dark brown text color */
    text-align: right !important; /* Align text to the right */
    margin-top: 10px !important; /* Space above the note */
    padding: 5px 10px !important; /* Padding for spacing */
    border-top: 1px solid rgb(220, 220, 220) !important; /* Light grey top border */
    font-style: italic !important; /* Italic text for emphasis */
}
p.notes {
    font-family: Helvetica, sans-serif !important; /* Sans-serif font */
    font-size: var(--ref-font-size) !important; /* Slightly smaller font size */
    color: rgb(83, 35, 11) !important; /* Dark brown text color */
    text-align: right !important; /* Align text to the right */
    margin-top: 10px !important; /* Space above the note */
    padding: 5px 10px !important; /* Padding for spacing */
    border-top: 1px solid rgb(220, 220, 220) !important; /* Light grey top border */
    font-style: italic !important; /* Italic text for emphasis */
}
.poeme {
    font-style: italic;
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #ccc;
}
.poeme p {
    margin: 10px 0;
}

.table-of-contents {
    background-color: #f5f7fa;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    font-family: Helvetica, sans-serif;
    font-size: 16px;
    box-shadow: 1px 2px 6px rgba(0,0,0,0.07);
}

.table-of-contents a:hover {
    color: #d95a10;
    text-decoration: underline;
}

/* --- Mise en forme auto des pages de lecture (Tanakh / Deuterocanoniques / PacteNeuf) --- */
.site-page.scripture-page {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 239, 213, 0.42), transparent 32%),
        radial-gradient(circle at 90% 90%, rgba(173, 216, 230, 0.38), transparent 36%),
        linear-gradient(155deg, #e9eef6, #d9e7f3);
    color: #1f2b34;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.62;
}

.site-page.scripture-page .menu {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(30, 53, 72, 0.18);
    box-shadow: 0 8px 18px rgba(18, 35, 50, 0.1);
    backdrop-filter: blur(4px);
    background: linear-gradient(118deg, rgba(247, 235, 214, 0.95) 0%, rgba(224, 236, 247, 0.95) 52%, rgba(238, 246, 252, 0.95) 100%) !important;
}

.site-page.scripture-page .reading-content {
    background: var(--article-surface);
    border: 1px solid var(--article-border);
    border-radius: 14px;
    box-shadow: 0 12px 26px var(--article-shadow);
    padding: 14px 18px;
    margin: 0 auto;
    width: min(1380px, 96%);
    text-align: left;
}

.site-page.scripture-page .reading-content a {
    color: #2a3641;
    font-size: inherit;
}

.site-page.scripture-page .reading-content .hebreu {
    font-size: 1.15em;
}

.site-page.scripture-page .reading-content a:hover {
    color: #6b2f16;
}

/* --- Styles des pages intertestamentaires --- */
.site-page.intertestamentaires-page {
    background:
        radial-gradient(circle at 12% 16%, rgba(244, 207, 161, 0.34), transparent 34%),
        radial-gradient(circle at 86% 84%, rgba(160, 203, 222, 0.3), transparent 38%),
        linear-gradient(160deg, #edf2f8, #dde9f4);
    color: #1f2f3a;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.62;
}

.site-page.intertestamentaires-page .menu {
    position: sticky;
    top: 0;
    width: min(1380px, calc(100% - 1.2rem));
    z-index: 1000;
    padding: 10px 14px;
    margin: 0.75rem auto 0;
    border: 1px solid rgba(30, 53, 72, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(18, 35, 50, 0.09);
    backdrop-filter: blur(4px);
    background: linear-gradient(118deg, rgba(248, 232, 210, 0.95) 0%, rgba(222, 236, 248, 0.95) 52%, rgba(236, 244, 250, 0.95) 100%) !important;
    white-space: normal;
    line-height: 1.8;
}

.site-page.intertestamentaires-page .menu a {
    display: inline-block;
    padding: 0.2rem 0.1rem;
}

.intertestamentaires-content {
    background: rgba(255, 252, 247, 0.93);
    border: 1px solid rgba(122, 92, 59, 0.18);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(69, 53, 33, 0.12);
    padding: clamp(1.4rem, 2vw, 2.2rem);
    margin: 1rem auto 2.5rem;
    width: min(1380px, 96%);
    text-align: left;
    line-height: 1.8;
    font-size: 1.05rem;
}

.intertestamentaires-content a[id^="chapter"],
.intertestamentaires-content a[id^="appendix-"] {
    scroll-margin-top: 96px;
    display: inline-block;
    margin-top: 0.3rem;
}

.intertestamentaires-content .chapitre {
    display: inline-block;
    margin: 1.6rem 0 0.8rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.intertestamentaires-content .section-heading {
    margin: 1.8rem 0 0.7rem;
    padding: 0.55rem 0.85rem;
    border-left: 4px solid rgba(96, 61, 28, 0.9);
    background: linear-gradient(135deg, rgba(245, 232, 211, 0.7), rgba(224, 235, 247, 0.7));
    color: rgb(34, 34, 31);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 8px 10px 10px 8px;
    box-shadow: inset 0 0 0 1px rgba(122, 92, 59, 0.08);
}

.intertestamentaires-plain {
    white-space: pre-line;
    hyphens: auto;
}

.intertestamentaires-plain > h1,
.intertestamentaires-plain > h2,
.intertestamentaires-plain > .intertestamentaires-header {
    margin: 0 0 1.2rem;
}

.chapter-verse {
    display: block;
    margin: 0.45rem 0 0.8rem;
    padding-left: 0.2rem;
}

.chapter-verse .verse-number {
    display: inline-block;
    min-width: 2rem;
    margin-right: 0.5rem;
    color: #6e4d2d;
    font-weight: 800;
    font-family: 'Fraunces', Georgia, serif;
}

.chapter-verse .verse-he,
.verse-he {
    display: block;
    direction: rtl;
    text-align: right;
    font-family: 'SBL Hebrew', 'David', 'Frank Ruehl CLM', 'Times New Roman', serif;
    font-size: var(--hebrew-font-size, 1.15rem);
    line-height: 1.6;
    color: #2b4c7e;
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.6rem;
    background: rgba(232, 241, 248, 0.4);
    border-right: 3px solid #8d6136;
    border-radius: 4px;
}

html[data-theme="dark"] .chapter-verse .verse-he {
    color: #9bbcdb;
    background: rgba(30, 45, 65, 0.5);
    border-right-color: #d4a373;
}

.intertestamentaires-content blockquote {
    margin: 1rem 0 1.2rem 2.2rem;
    padding: 0.95rem 1.1rem 0.95rem 1.25rem;
    border-left: 5px solid #8d6136;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.95), rgba(232, 241, 248, 0.86));
    color: #2f2a24;
    font-family: Georgia, serif;
    font-size: 1.08rem;
    line-height: 1.75;
    box-shadow: inset 0 0 0 1px rgba(122, 92, 59, 0.08), 0 8px 18px rgba(69, 53, 33, 0.08);
}

.intertestamentaires-content blockquote cite {
    display: block;
    margin-top: 0.45rem;
    color: #6e4d2d;
    font-family: Manrope, Helvetica, sans-serif;
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
}

.divine-names {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 248, 237, 0.6), rgba(232, 241, 248, 0.5));
    border-radius: 8px;
    border-left: 4px solid #8d6136;
}

.divine-name {
    padding: 0.6rem 0.9rem;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    color: #2f2a24;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.divine-name:hover {
    background: rgba(141, 97, 54, 0.08);
    transform: translateX(2px);
}

.intertestamentaires-header {
    padding: 1.1rem 1.25rem 1.4rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 227, 209, 0.75), rgba(224, 233, 247, 0.8));
    border: 1px solid rgba(122, 92, 59, 0.12);
    margin-bottom: 1.5rem;
}

.intertestamentaires-header .eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5f4a2f;
    font-weight: 700;
}

.intertestamentaires-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.1;
    color: #2e312d;
    font-family: 'Fraunces', Georgia, serif;
}

.intertestamentaires-header .subtitle {
    margin: 0.55rem 0 0;
    color: #4d5d67;
    font-size: 1.05rem;
    font-style: italic;
}

.no-js {
    visibility: visible;
}

/* --- Styles pour les formulaires (Textarea, etc.) --- */
textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #f8fafc;
}
textarea:focus {
    border-color: #0ea5e9;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* --- Styles pour l'interface d'administration et conteneurs --- */
.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 40px auto;
    box-sizing: border-box;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    font-size: 13px;
}
tr:last-child td { border-bottom: none; }
tr:hover { background-color: #f1f5f9; }

/* --- Styles pour les pages de connexion et d'inscription --- */
.auth-body {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.auth-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}
.auth-container h1 {
    margin-top: 0;
    color: #333333;
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    /* Réinitialisation des styles globaux pour h1 */
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.auth-container .form-group {
    margin-bottom: 20px;
}
.auth-container .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 500;
    font-size: 14px;
    /* Réinitialisation des styles globaux pour label */
    background: none;
    padding: 0;
    text-align: left;
}
.auth-container .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    transition: border-color 0.3s;
}
.auth-container .form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.auth-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

/* --- Styles partages pour les pages Articles --- */
body.article-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, var(--article-bg-start) 0%, var(--article-bg-mid) 44%, var(--article-bg-end) 100%);
    color: #24313d;
    font-family: 'Manrope', Helvetica, sans-serif;
}

.article-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 40px) 16px 56px;
    position: relative;
}

.article-frame {
    padding: clamp(14px, 2vw, 24px);
    border-radius: 32px;
    border: 1px solid rgba(141, 97, 54, 0.12);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 28px 60px var(--article-shadow);
}

body.article-page .container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: none;
    margin: 0 auto;
}

.article-content,
.article-reading {
    background: var(--article-surface);
    border: 1px solid var(--article-border);
    border-radius: 26px;
    box-shadow: 0 18px 44px rgba(69, 53, 33, 0.12);
}

.article-content {
    max-width: 980px;
    margin: 0 auto;
}

.article-reading {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 40px);
}

body.article-page .article-content > header,
body.article-page .article-frame > header {
    margin-bottom: 24px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(141, 97, 54, 0.09), rgba(92, 126, 169, 0.09));
    border: 1px solid rgba(141, 97, 54, 0.1);
}

body.article-page p,
body.article-page li,
body.article-page td,
body.article-page th {
    line-height: 1.75;
}

body.article-page p {
    margin-bottom: 1.1rem;
}

body.article-page ul,
body.article-page ol {
    padding-left: 1.35rem;
}

body.article-page a {
    color: var(--article-accent-strong);
}

body.article-page a:hover {
    color: #b56a2a;
}

body.article-page h1 {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 228, 0.9));
    color: #234869;
    border-bottom-color: rgba(141, 97, 54, 0.35);
}

body.article-page h2,
body.article-page h3,
body.article-page h4 {
    scroll-margin-top: 24px;
}

body.article-page blockquote,
body.article-page .citation,
body.article-page figure.citation {
    background: linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(243, 247, 252, 0.92));
    border-left-color: var(--article-accent);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(69, 53, 33, 0.08);
}

body.article-page table {
    border-radius: 18px;
    overflow: hidden;
}

body.article-page .table-of-contents {
    background: linear-gradient(135deg, rgba(255, 251, 245, 0.97), rgba(239, 245, 251, 0.95));
    border: 1px solid rgba(141, 97, 54, 0.18);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(69, 53, 33, 0.08);
}

body.article-page .table-of-contents h2 {
    margin-top: 0;
    margin-bottom: 12px;
    padding: 0 0 12px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(141, 97, 54, 0.2);
    box-shadow: none;
    color: #234869;
}

body.article-page .text-reader-controls {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(141, 97, 54, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
}

body.article-page .text-reader-title {
    color: #234869;
}

body.article-page .text-reader-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.article-page .text-reader-actions button,
body.article-page .text-reader-actions select {
    min-height: 36px;
    padding: 6px 10px;
}

body.article-page .text-reader-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

body.article-page .text-reader-status {
    margin: 0;
    color: #5f6670;
    font-size: 0.9rem;
}

body.article-page [data-reading-root] .is-reading {
    outline: 2px solid rgba(141, 97, 54, 0.5);
    outline-offset: 4px;
    background-color: rgba(255, 244, 204, 0.5);
}

@media (max-width: 768px) {
    .article-shell {
        padding: 12px 12px 36px;
    }

    .article-frame {
        padding: 10px;
        border-radius: 22px;
    }

    .article-content,
    .article-reading {
        border-radius: 18px;
    }

    body.article-page .text-reader-actions {
        align-items: stretch;
    }

    body.article-page .text-reader-actions button,
    body.article-page .text-reader-actions label {
        flex: 1 1 120px;
    }
}

/* --- about.php (page "Fils de Noah") --- */
/* .about-content porte aussi les variables: le mode onglet n'extrait que .article-frame,
   qui ne contient pas le wrapper .about-page (perdu lors de l'injection). */
.about-page,
.about-content {
    --about-ink: #1e2f3f;
    --about-accent: #1f6d62;
    --about-accent-soft: #dff3ec;
    --about-border: rgba(31, 109, 98, 0.2);
    --about-shadow: rgba(23, 57, 78, 0.12);
    --about-warm: #f8f4ec;
}

.about-content {
    padding: clamp(18px, 2.6vw, 34px);
}

.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -70px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 109, 98, 0.18) 0%, rgba(31, 109, 98, 0) 72%);
    pointer-events: none;
}

.about-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--about-accent-soft);
    color: #10584f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 26px;
    padding: 14px;
    border: 1px solid var(--about-border);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, var(--about-warm) 100%);
}

.about-toc a {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(31, 109, 98, 0.25);
    color: var(--about-ink);
    font-weight: 600;
    font-size: 0.94rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-toc a:hover {
    transform: translateY(-1px);
    background-color: var(--about-accent-soft);
    color: #0e4c45;
    text-decoration: none;
}

.about-section {
    margin-top: 20px;
    padding-top: 8px;
}

.about-note {
    background: linear-gradient(135deg, rgba(31, 109, 98, 0.12), rgba(31, 109, 98, 0.05));
    border-left: 4px solid var(--about-accent);
    padding: 12px 14px;
    border-radius: 10px;
}

.about-intro {
    margin-bottom: 14px;
}

.law-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.law-card {
    position: relative;
    padding: 16px 14px 14px;
    border: 1px solid var(--about-border);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f7faf8 100%);
    box-shadow: 0 8px 24px var(--about-shadow);
}

.law-index {
    margin: 0 0 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--about-accent);
    color: #ffffff;
    font-weight: 700;
}

.law-card h3 {
    margin-top: 0;
    font-size: 1.08rem;
    color: #0f4d46;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pillars p {
    margin: 0;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--about-border);
    background: #fbfffd;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.practice-grid article {
    border: 1px solid var(--about-border);
    border-radius: 14px;
    background: #fffdfa;
    padding: 14px;
}

.practice-grid h3 {
    margin-top: 0;
}

.about-checklist {
    margin: 0;
    padding-left: 18px;
}

.about-page,
.about-page body,
body.article-page {
    scroll-behavior: smooth;
}

@media (max-width: 900px) {
    .law-grid,
    .pillars,
    .practice-grid {
        grid-template-columns: 1fr;
    }
}

.auth-container button[type="submit"]:hover {
    background-color: #0056b3;
}
.auth-container .message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #bee5eb;
}
.auth-container .login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666666;
}
.auth-container .login-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.auth-container .login-link a:hover {
    text-decoration: underline;
}
/* Ajoutez d'autres styles en utilisant les variables CSS */

.main-container {
    display: flex;
}

.side-menu {
    width: 10%;
    padding: 10px;
}

.content-wrapper {
    width: 90%;
    height: calc(100vh - 90px);
    border: none;
}

.responsive-video {
    width: 100%;
    height: auto;
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }
    
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }
    
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
    }
    
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    
    table td:last-child {
        border-bottom: 0;
    }

    .main-container {
        flex-direction: column;
    }

    .side-menu {
        width: 100%;
        padding: 10px;
    }

    .content-wrapper {
        width: 100%;
        height: calc(100vh - 200px); /* Adjust height for mobile */
    }

    .colonne-gauche,
    .colonne-droite {
        width: 100%;
        float: none;
    }
}

/* --- Styles pour la case à cocher "Se souvenir de moi" --- */
.auth-container .remember-me-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    /* On retire le margin-bottom du form-group de base pour le gérer ici */
    margin-bottom: 15px;
}

.auth-container .remember-me-group input[type="checkbox"] {
    /* On s'assure que la checkbox n'occupe pas toute la largeur */
    width: auto;
    margin-right: 10px;
    /* On enlève l'ombre au focus pour la checkbox, c'est souvent superflu */
    box-shadow: none;
}

.auth-container .remember-me-group label {
    /* On repasse le label en inline pour qu'il se place à côté de la checkbox */
    display: inline;
    /* On annule le margin-bottom du label de base */
    margin-bottom: 0;
    /* On remet une police plus standard pour ce label */
    font-weight: normal;
    font-size: 14px;
    color: #666666;
}#messageToast {
    display: block; /* Start with block to allow animation */
    position: fixed;
    bottom: 20px;
    right: -400px; /* Start off-screen */
    width: 320px;
    z-index: 2000;
    background: #0b6df0;
    color: white;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    padding: 12px;
    font-family: Arial, sans-serif;
    transition: right 0.5s ease-in-out; /* Animation for sliding */
}

#messageToast.show {
    right: 20px; /* Slide in */
}

#messageToast.hide {
    right: -400px; /* Slide out */
}

#messageToast a {
    color: #ffecb3;
    text-decoration: underline;
    font-size: initial;
}

/* ============================================================
   Refonte centralisee: index.php + default.php
   ============================================================ */

.index-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
    radial-gradient(circle at 14% 16%, rgba(112, 209, 201, 0.3), transparent 33%),
    radial-gradient(circle at 87% 79%, rgba(244, 169, 108, 0.28), transparent 37%),
    linear-gradient(158deg, #0f2434 0%, #1f4a66 56%, #2b5d79 100%);
}

.index-page .index-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.index-page .index-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.index-page .index-title-logo {
    width: clamp(88px, 11.2vw, 116px);
    height: auto;
    max-width: 100%;
    image-rendering: auto;
    border-radius: 14px;
    border: 1px solid rgba(243, 250, 255, 0.5);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(225, 239, 248, 0.62));
    padding: 4px;
    filter: drop-shadow(0 6px 12px rgba(8, 21, 34, 0.26));
    flex-shrink: 0;
}

.index-page h1 {
    margin: 16px 0 10px;
    color: #f5fbff;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    letter-spacing: 0.02em;
    text-shadow: 0 6px 18px rgba(10, 27, 41, 0.4);
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    animation: index-fade-up 0.55s ease;
}

.index-page .main-container {
    display: grid;
    grid-template-columns: clamp(220px, 27vw, 360px) minmax(0, 1fr);
    gap: 8px;
    padding: 8px 14px 14px;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
}

/* Masquage du menu lateral (bouton side-menu-collapse-btn) : reserve au
   desktop. Sans le media query, cette regle (specificite plus elevee que le
   grid-template-columns mobile a 1 colonne) casserait le layout mobile si
   la classe menu-hidden reste posee via localStorage. */
@media (min-width: 769px) {
    .index-page .main-container.menu-hidden {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    .index-page .main-container.menu-hidden #siteSideMenu {
        display: none;
    }

    /* Le contenu de lecture s'élargit pour exploiter pleinement l'espace gagné lors du masquage du menu */
    .index-page .main-container.menu-hidden .reading-content,
    .index-page .main-container.menu-hidden .site-page.scripture-page .reading-content,
    .index-page .main-container.menu-hidden .intertestamentaires-content,
    .index-page .main-container.menu-hidden .site-page.intertestamentaires-page .menu,
    .index-page .main-container.menu-hidden .article-shell,
    .index-page .main-container.menu-hidden .article-frame,
    .index-page .main-container.menu-hidden .article-content,
    .index-page .main-container.menu-hidden .article-reading,
    .index-page .main-container.menu-hidden .livres-content,
    .index-page .main-container.menu-hidden .cyril-section-container,
    .index-page .main-container.menu-hidden .page,
    .index-page .main-container.menu-hidden .palvanov-index,
    .index-page .main-container.menu-hidden .palvanov-article main,
    .index-page .main-container.menu-hidden .palvanov-article .article-header,
    .index-page .main-container.menu-hidden .palvanov-article .tab-list,
    .index-page .main-container.menu-hidden .philon-opificio .page-header,
    .index-page .main-container.menu-hidden .philon-opificio .section {
        width: min(1720px, 98%);
        max-width: 100%;
    }
}

/* Position de grille fixe (desktop, grille a 2 colonnes) : sans elle, quand
   #siteSideMenu passe en display:none (menu masque), #bibleTabsContainer
   redevient le seul enfant de la grille et se replace automatiquement dans
   la colonne 1 (0px) au lieu de la colonne 2. */
@media (min-width: 769px) {
    .index-page #bibleTabsContainer {
        grid-column: 2;
    }
}


.index-page .side-menu-collapse-btn {
    display: none;
    position: absolute;
    top: 50%;
    left: clamp(220px, 27vw, 360px);
    transform: translate(-50%, -50%);
    width: 26px;
    height: 46px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(18, 54, 76, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(225, 238, 249, 0.92));
    color: #183145;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(8, 21, 34, 0.18);
    transition: left 0.25s ease, background 0.2s ease;
}

.index-page .side-menu-collapse-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(210, 230, 245, 1));
}

.index-page .main-container.menu-hidden .side-menu-collapse-btn {
    left: 0;
}

@media (min-width: 769px) {
    .index-page .side-menu-collapse-btn {
        display: block;
    }
}

/* Onglets Bootstrap intégrés au thème */
#bibleTabsContainer {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

#bibleTabsContainer .nav-tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    background: rgba(10, 27, 45, 0.35);
    border-radius: 8px 8px 0 0;
    padding: 4px 6px 0;
    gap: 2px;
}

#bibleTabsContainer .nav-tabs .nav-link {
    color: rgba(220, 238, 255, 0.75);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    font-size: 0.88rem;
    padding: 5px 12px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

#bibleTabsContainer .nav-tabs .nav-link:hover {
    color: #f5fbff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 252, 255, 0.2) rgba(245, 252, 255, 0.2) transparent;
}

#bibleTabsContainer .nav-tabs .nav-link.active {
    color: #f5fbff;
    background: rgba(30, 70, 110, 0.75);
    border-color: rgba(245, 252, 255, 0.25) rgba(245, 252, 255, 0.25) transparent;
    font-weight: 600;
}

#bibleTabsContainer .tab-content {
    flex: 1;
    overflow-y: auto;
    background: rgba(10, 27, 45, 0.25);
    border-radius: 0 0 8px 8px;
    border: 1px solid rgba(245, 252, 255, 0.15);
    border-top: none;
    height: calc(100vh - 140px);
}

#bibleTabsContainer .tab-content.philon-opificio-active {
    background: transparent;
    border: none;
    border-radius: 0;
}

#bibleTabsContainer .tab-content.cyril-sections-active {
    background: transparent;
    border: none;
    border-radius: 0;
}


#bibleTabsContainer .tab-content > .tab-pane {
    display: none;
    padding: 18px 20px;
    background: #fffbe9;
    color: #22221f;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(69,53,33,0.07);
}

#bibleTabsContainer .tab-content > .tab-pane.active {
    display: block;
}

#bibleTabsContainer .tab-content > .tab-pane[data-source-url*="/livres/Cyril/PourComprendreLaBible/sections_livre/"] {
    padding: 0;
    color: #1f1d1a;
    border-radius: 0;
    box-shadow: none;
}

#bibleTabsContainer .tab-content > .tab-pane .tab-embedded-frame-cyril {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
}

.reading-content {
    background: #fffbe9 !important;
    color: #22221f !important;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(69,53,33,0.07);
    padding: 18px 20px;
}

.index-page .menu-burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(245, 252, 255, 0.65);
    border-radius: 14px;
    padding: 10px 14px;
    color: #f3fbff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(120deg, rgba(13, 50, 73, 0.86), rgba(23, 108, 115, 0.84));
    box-shadow: 0 10px 22px rgba(8, 21, 34, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.index-page .menu-burger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(8, 21, 34, 0.3);
    background: linear-gradient(120deg, rgba(15, 57, 82, 0.9), rgba(28, 124, 132, 0.88));
}

.index-page .menu-burger-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.84);
    outline-offset: 2px;
}

.index-page .menu-burger-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.index-page .side-menu {
    width: 100%;
    min-width: 150px;
    max-width: 100%;
    background:
        radial-gradient(circle at 12% 10%, rgba(247, 228, 198, 0.42), transparent 45%),
        radial-gradient(circle at 88% 92%, rgba(173, 216, 230, 0.26), transparent 44%),
        linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(238, 246, 252, 0.95));
    border: 1px solid rgba(18, 54, 76, 0.14);
    border-radius: 18px;
    padding: 10px;
    box-sizing: border-box;
    max-height: calc(100vh - 130px);
    overflow: auto;
    box-shadow: 0 18px 38px rgba(8, 21, 34, 0.22);
    animation: index-fade-up 0.5s ease;
}

.index-page .side-menu b {
    color: #183145;
    font-size: 1rem;
    display: inline-block;
    padding: 4px 0;
    background: transparent;
}

.index-page .side-menu a.lien {
    color: #153f57;
    text-decoration: none;
    line-height: 1.5;
    font-size: 0.98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid rgba(21, 63, 87, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(225, 238, 249, 0.88));
    box-shadow: 0 3px 8px rgba(16, 39, 56, 0.08);
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.index-page .side-menu a.lien:hover {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(247, 227, 197, 0.88), rgba(198, 224, 242, 0.9));
    border-color: rgba(21, 63, 87, 0.34);
    color: #0f3447;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 39, 56, 0.14);
}

.index-page .side-menu a.lien:focus-visible {
    outline: 2px solid rgba(18, 81, 121, 0.55);
    outline-offset: 2px;
    border-color: rgba(18, 81, 121, 0.45);
}

.index-page .side-menu a.lien:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 39, 56, 0.12);
}

.index-page .menu-section {
    text-align: left;
    margin-top: 10px;
}

.index-page .menu-section--admin {
    margin-top: 2.5rem;
}

.index-page .menu-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.index-page .submenu {
    display: none;
    list-style-type: none;
    padding-left: 10px;
    margin: 0;
}

.index-page .menu-toggle {
    cursor: pointer;
    border-radius: 10px;
    padding: 8px 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.index-page .menu-toggle:hover {
    background: rgba(20, 59, 82, 0.08);
    color: #153f57;
}

.index-page #bibleTabsContainer {
    width: 100%;
    min-height: calc(100vh - 130px);
    border-radius: 18px;
    animation: index-fade-up 0.65s ease;
}

.index-page button {
    border: 0;
    border-radius: 10px;
    padding: 8px 11px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, #ef7a46, #f1a04d);
    box-shadow: 0 9px 18px rgba(239, 122, 70, 0.28);
}

.index-page .red-dot {
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.18);
}

.index-page #messageToast {
    border-radius: 12px;
    background: rgba(17, 35, 50, 0.9);
    color: #f7fbff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
    padding: 12px;
}

.index-page #messageToast a {
    color: #ffd49d;
    font-weight: 700;
}

.index-page .toast-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.index-page .toast-content {
    font-size: 0.9rem;
}

.index-page .toast-actions {
    text-align: right;
    margin-top: 8px;
}

.index-page .toast-close {
    cursor: pointer;
    margin-left: 10px;
    color: #ffecb3;
}

.index-page .index-user-badge {
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: 0.92rem;
    line-height: 1.4;
    color: #123447;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 52, 71, 0.18);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(8, 21, 34, 0.08);
}

.index-page .index-user-badge a {
    color: #1a4a63;
    font-weight: 600;
    text-decoration: none;
}

.index-page .index-user-badge a:hover {
    text-decoration: underline;
}

.index-page .user-badge-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(18, 52, 71, 0.12);
    border-radius: 10px;
    position: relative; /* ancre le panneau des versions */
}

/* Les deux sous-groupes (zoom, user-actions) fusionnent dans la grille */
.index-page .zoom-icon-buttons,
.index-page .user-action-buttons {
    display: contents;
}

.index-page .home-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 64px;
    border-radius: 10px;
    background: rgba(91, 163, 224, 0.35);
    border: 1px solid rgba(91, 163, 224, 0.45);
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    padding: 6px 4px;
}

.index-page .home-icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(91, 163, 224, 0.5);
    box-shadow: 0 4px 12px rgba(91, 163, 224, 0.4);
    border-color: rgba(91, 163, 224, 0.6);
}

.index-page .home-icon-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(91, 163, 224, 0.3);
}

.index-page .home-icon {
    width: 24px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.index-page .zoom-icon-buttons {
    display: contents;
}

.index-page .zoom-icon-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 64px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    padding: 6px 4px;
}

.index-page .zoom-plus-btn {
    background: rgba(124, 179, 66, 0.35);
    border-color: rgba(124, 179, 66, 0.45);
}

.index-page .zoom-plus-btn:hover:not([disabled]) {
    background: rgba(124, 179, 66, 0.5);
    box-shadow: 0 3px 10px rgba(124, 179, 66, 0.4);
    border-color: rgba(124, 179, 66, 0.6);
    transform: translateY(-1px);
}

.index-page .zoom-minus-btn {
    background: rgba(224, 122, 94, 0.35);
    border-color: rgba(224, 122, 94, 0.45);
}

.index-page .zoom-minus-btn:hover:not([disabled]) {
    background: rgba(224, 122, 94, 0.5);
    box-shadow: 0 3px 10px rgba(224, 122, 94, 0.4);
    border-color: rgba(224, 122, 94, 0.6);
    transform: translateY(-1px);
}

.index-page .zoom-reset-btn {
    background: rgba(123, 104, 238, 0.35);
    border-color: rgba(123, 104, 238, 0.45);
}

.index-page .zoom-reset-btn:hover:not([disabled]) {
    background: rgba(123, 104, 238, 0.5);
    box-shadow: 0 3px 10px rgba(123, 104, 238, 0.4);
    border-color: rgba(123, 104, 238, 0.6);
    transform: translateY(-1px);
}

.index-page .zoom-icon-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Bouton mode sombre : même tuile que les autres (icône + libellé) */
.index-page .zoom-icon-btn.dark-mode-toggle-btn {
    font-size: 1.2rem;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.index-page .dark-mode-icon {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
}

.index-page .zoom-icon {
    width: 26px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.index-page .home-icon-label,
.index-page .zoom-icon-label,
.index-page .user-action-label {
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.86);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mode clair : libellés sombres pour le contraste (le fond des tuiles est clair) */
html:not([data-theme="dark"]) .index-page .home-icon-label,
html:not([data-theme="dark"]) .index-page .zoom-icon-label,
html:not([data-theme="dark"]) .index-page .user-action-label {
    color: #1a2e3c;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.index-page .user-action-buttons {
    display: contents;
}

.index-page .user-action-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    border-radius: 10px;
    padding: 6px 4px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 100%;
    min-height: 64px;
}

.index-page .profile-btn {
    background: rgba(91, 163, 224, 0.35);
    box-shadow: 0 2px 8px rgba(91, 163, 224, 0.25);
}

.index-page .profile-btn:hover {
    transform: translateY(-3px) scale(1.06);
    background: rgba(91, 163, 224, 0.5);
    box-shadow: 0 6px 20px rgba(91, 163, 224, 0.45), 0 0 12px rgba(91, 163, 224, 0.25);
    border-color: rgba(91, 163, 224, 0.5);
}

/* Bouton « Versions » (ouvre le panneau de choix des couches) */
.index-page .versions-btn {
    background: rgba(123, 104, 238, 0.35);
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.25);
    cursor: pointer;
}

.index-page .versions-btn:hover {
    transform: translateY(-3px) scale(1.06);
    background: rgba(123, 104, 238, 0.5);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.45), 0 0 12px rgba(123, 104, 238, 0.25);
    border-color: rgba(123, 104, 238, 0.5);
}

.index-page .versions-btn[aria-expanded="true"] {
    background: rgba(123, 104, 238, 0.55);
    border-color: rgba(123, 104, 238, 0.7);
}

.index-page .versions-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.index-page .versions-btn:disabled:hover {
    transform: none;
    background: rgba(123, 104, 238, 0.35);
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.index-page .versions-icon {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Panneau déroulant des versions (sous la barre d'outils) */
.index-page .versions-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 6px;
    padding: 10px 12px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid rgba(18, 52, 71, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(8, 21, 34, 0.22);
}

.index-page .versions-panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #603d1c;
    margin-bottom: 8px;
}

.index-page .versions-panel-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.index-page .versions-panel-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6a75;
    font-style: italic;
}

html[data-theme="dark"] .index-page .versions-panel {
    background: #23272b;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .index-page .versions-panel-title {
    color: #e8c9a0;
}

html[data-theme="dark"] .index-page .versions-panel-empty {
    color: #9aa4ac;
}

.index-page .logout-btn {
    background: rgba(224, 122, 94, 0.35);
    box-shadow: 0 2px 8px rgba(224, 122, 94, 0.25);
}

.index-page .logout-btn:hover {
    transform: translateY(-3px) scale(1.06);
    background: rgba(224, 122, 94, 0.5);
    box-shadow: 0 6px 20px rgba(224, 122, 94, 0.45), 0 0 12px rgba(224, 122, 94, 0.25);
    border-color: rgba(224, 122, 94, 0.5);
}

.index-page .user-action-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.index-page .user-action-icon {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
    transition: filter 0.22s ease;
}

.index-page .profile-btn:hover .user-action-icon {
    filter: drop-shadow(0 3px 8px rgba(91, 163, 224, 0.4));
}

.index-page .logout-btn:hover .user-action-icon {
    filter: drop-shadow(0 3px 8px rgba(224, 122, 94, 0.4));
}

.index-page .user-action-label {
    transition: color 0.22s ease;
}

.index-page .profile-btn:hover .user-action-label {
    color: rgba(91, 163, 224, 0.95);
}

.index-page .logout-btn:hover .user-action-label {
    color: rgba(224, 122, 94, 0.95);
}

.index-page #loadingIndicator {
    display: none;
}

.default-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #123044;
    background:
        radial-gradient(circle at 10% 14%, rgba(80, 185, 178, 0.3), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(234, 123, 71, 0.24), transparent 32%),
        linear-gradient(155deg, #eff6fa, #e5eff7);
}

#bibleTabsContent > .tab-pane[data-source-url$="default.php"] {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #123044;
}



.default-page .row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    clear: none;
}

#bibleTabsContent > .tab-pane[data-source-url$="default.php"] .row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    clear: none;
}

.default-page .colonne-gauche,
.default-page .colonne-droite {
    width: auto;
    float: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(19, 54, 74, 0.13);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 34px rgba(15, 38, 55, 0.1);
    backdrop-filter: blur(2px);
}

#bibleTabsContent > .tab-pane[data-source-url$="default.php"] .colonne-gauche,
#bibleTabsContent > .tab-pane[data-source-url$="default.php"] .colonne-droite {
    width: auto;
    float: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(19, 54, 74, 0.13);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 34px rgba(15, 38, 55, 0.1);
    backdrop-filter: blur(2px);
}

.default-page h2 {
    display: table;
    width: auto;
    max-width: calc(100% - 32px);
    margin: 15px auto;
    background: linear-gradient(120deg, rgba(223, 236, 248, 0.96) 0%, rgba(208, 228, 243, 0.96) 55%, rgba(231, 243, 252, 0.96) 100%);
    border-bottom: 2px solid rgba(19, 54, 74, 0.65);
    box-shadow: 1px 1px 3px rgba(15, 38, 55, 0.12);
    border-radius: 5px;
    padding: 10px 26px;
}

#bibleTabsContent > .tab-pane[data-source-url$="default.php"] h2 {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 8px 0 14px;
    text-align: center;
    color: #f4fbff;
    font-weight: 700;
    text-shadow: 0 3px 10px rgba(6, 18, 28, 0.55);
}

.default-page h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Fraunces', Georgia, serif;
    color: #1a3a4f;
    background: transparent;
    border: 0;
    padding: 0;
}

#bibleTabsContent > .tab-pane[data-source-url$="default.php"] h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Fraunces', Georgia, serif;
    color: #1a3a4f;
    background: transparent;
    border: 0;
    padding: 0;
}

.default-page .citation-hebrew,
.default-page .hebrew {
    direction: rtl;
    font-size: var(--citation-hebrew-font-size);
    line-height: 1.7;
    color: #20485f;
}

.default-page .citation,
.default-page .paragraph {
    color: #264658;
    line-height: 1.6;
}

.default-page .verse-ref {
    text-align: right;
    display: block;
}

.default-page textarea[name='note_du_jour'] {
    width: 100%;
    min-height: 120px;
    border: 1px solid #c8dce8;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: inherit;
    resize: vertical;
    background: #fff;
}

.default-page button {
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(92deg, #db5410, #ef8f45);
    box-shadow: 0 10px 22px rgba(219, 84, 16, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.default-page button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(219, 84, 16, 0.34);
}

@keyframes index-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.concordance-page {
    margin: 0;
    min-height: 100vh;
    padding: 24px 18px 70px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #143549;
    background:
        radial-gradient(circle at 10% 12%, rgba(82, 183, 177, 0.3), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(239, 155, 83, 0.27), transparent 33%),
        linear-gradient(155deg, #ebf4fa, #deecf6);
}

.concordance-page h2,
.concordance-page h3 {
    margin: 0 auto 14px;
    max-width: 1150px;
    color: #173c53;
    font-family: 'Fraunces', Georgia, serif;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.concordance-page form {
    display: grid;
    grid-template-columns: auto minmax(220px, 480px) auto;
    gap: 10px;
    align-items: center;
    max-width: 1150px;
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid rgba(18, 56, 78, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(12, 35, 52, 0.08);
}

.concordance-page input[type='text'] {
    border: 1px solid #bfd3df;
    border-radius: 10px;
    padding: 9px 11px;
    font-family: inherit;
}

.concordance-page button {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, #ea7b47, #ef9f4a);
    box-shadow: 0 10px 20px rgba(234, 123, 71, 0.28);
}

.concordance-page > a,
.concordance-page p,
.concordance-page .ref,
.concordance-page .result {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
}

.concordance-page .ref {
    display: inline-block;
    margin-top: 8px;
    margin-right: 4px;
    color: #1f546e;
    font-weight: 700;
}

.concordance-page .result {
    color: #21495e;
}

.concordance-page #loadingIndicator {
    display: none;
}

.chat-page {
    margin: 0;
    min-height: 100vh;
    padding: 22px 0 40px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #143549;
    background:
        radial-gradient(circle at 12% 18%, rgba(86, 193, 187, 0.33), transparent 31%),
        radial-gradient(circle at 88% 82%, rgba(255, 191, 121, 0.26), transparent 34%),
        linear-gradient(155deg, #edf5fb, #e2eff8);
}

.chat-page .chat-shell {
    width: min(1320px, 94%);
    margin: 0 auto;
}

.chat-page h2 {
    margin-bottom: 12px;
    font-family: 'Fraunces', Georgia, serif;
    color: #17384d;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.chat-page .error,
.chat-page .success {
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
}

.chat-page .error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.chat-page .success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.chat-page .new-conversation-form,
.chat-page .conversations-list,
.chat-page .chat-area {
    border: 1px solid rgba(18, 56, 78, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(12, 35, 52, 0.08);
}

.chat-page .new-conversation-form {
    padding: 16px;
    margin-bottom: 16px;
}

.chat-page .new-conversation-form h3 {
    margin-top: 0;
}

.chat-page .form-group {
    margin-bottom: 12px;
}

.chat-page .form-group label {
    display: block;
    background: transparent;
    padding: 0;
    margin-bottom: 5px;
    font-size: 14px;
    text-align: left;
    color: #173b6f;
}

.chat-page .form-group input,
.chat-page .form-group textarea,
.chat-page .input-area textarea,
.chat-page .message-edit-form textarea {
    width: 100%;
    border: 1px solid #bfd3df;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    box-sizing: border-box;
}

.chat-page .form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.chat-page .chat-container {
    display: flex;
    height: 670px;
    gap: 16px;
}

.chat-page .conversations-list {
    flex: 0 0 320px;
    overflow-y: auto;
}

.chat-page .conversation-heading,
.chat-page .new-users-heading {
    padding: 12px;
    font-weight: 700;
    background: #fff;
}

.chat-page .conversation-heading {
    border-bottom: 1px solid #d8e6ef;
}

.chat-page .new-users-heading {
    border-top: 2px solid #d8e6ef;
    border-bottom: 1px solid #d8e6ef;
    font-size: 0.9em;
    color: #5d7382;
}

.chat-page .conversation-link {
    text-decoration: none;
    color: inherit;
}

.chat-page .conversation-item {
    padding: 12px;
    border-bottom: 1px solid #e6eef4;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-page .conversation-item:hover {
    background: #e9f2fa;
}

.chat-page .conversation-item.active {
    background: linear-gradient(90deg, #0e6eb8, #2f8fd4);
    color: #fff;
}

.chat-page .conversation-username {
    font-weight: 700;
    margin-bottom: 5px;
}

.chat-page .conversation-date {
    font-size: 0.85em;
    opacity: 0.75;
}

.chat-page .new-user-note {
    font-style: italic;
    color: #1271b4;
    opacity: 1;
}

.chat-page .empty-conversations {
    padding: 20px;
    text-align: center;
    color: #8a9aa6;
}

.chat-page .chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-page .chat-header {
    padding: 15px;
    border-bottom: 1px solid #d8e6ef;
    background: rgba(245, 250, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-page .chat-header h3 {
    margin: 0;
    font-size: 1.1em;
}

.chat-page .chat-header-actions {
    margin: 0;
}

.chat-page .messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.chat-page .message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 72%;
    word-wrap: break-word;
}

.chat-page .message.sent {
    align-self: flex-end;
    background: linear-gradient(110deg, #0e6eb8, #2f8fd4);
    color: #fff;
}

.chat-page .message.received {
    align-self: flex-start;
    background: #edf3f7;
    color: #112d3d;
}

.chat-page .message-time {
    font-size: 0.8em;
    opacity: 0.75;
    margin-top: 5px;
}

.chat-page .message-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8em;
    opacity: 0.85;
}

.chat-page .message-edited,
.chat-page .message-deleted {
    font-style: italic;
}

.chat-page .message-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-page .message-actions button,
.chat-page .chat-header-delete,
.chat-page .input-area button,
.chat-page .form-group button,
.chat-page .message-edit-form button {
    border: 0;
    border-radius: 9px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ea7b47, #ef9f4a);
}

.chat-page .chat-header-delete {
    white-space: nowrap;
    background: linear-gradient(90deg, #b44a2c, #d96f37);
}

.chat-page .message.sent .message-actions button {
    background: rgba(255, 255, 255, 0.9);
    color: #113146;
}

.chat-page .message-edit-form {
    margin-top: 8px;
    display: none;
}

.chat-page .message-edit-form textarea {
    min-height: 70px;
    resize: vertical;
}

.chat-page .message-edit-form .edit-actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.chat-page .message-sender {
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 5px;
}

.chat-page .input-area {
    padding: 15px;
    border-top: 1px solid #d8e6ef;
    display: flex;
    gap: 10px;
}

.chat-page .input-area textarea {
    flex: 1;
    min-height: 60px;
    resize: vertical;
}

.chat-page .input-area button {
    align-self: flex-end;
}

.chat-page .no-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #7e8f9b;
    text-align: center;
    padding: 20px;
}

/* ---- Message read-at & typing ---- */
.chat-page .message-read-at {
    font-size: 0.75em;
    color: #4caf85;
    margin-left: 4px;
}

.chat-page .message.sent .message-read-at {
    color: rgba(255,255,255,0.82);
}

.chat-page .typing-indicator {
    padding: 6px 15px 0;
    font-size: 0.82em;
    color: #7a95a7;
    font-style: italic;
    min-height: 22px;
}

/* ---- Load more button ---- */
.chat-page .load-more-wrapper {
    text-align: center;
    padding: 10px 0 4px;
}

.chat-page #load-more-btn {
    background: none;
    border: 1px solid #b5cdd9;
    border-radius: 20px;
    color: #2f6ea8;
    padding: 5px 18px;
    font-size: 0.82em;
    cursor: pointer;
    transition: background 0.18s;
}

.chat-page #load-more-btn:hover:not(:disabled) {
    background: #e5f0f8;
}

.chat-page #load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* ---- Contacts link in sidebar heading ---- */
.chat-page .contacts-link {
    float: right;
    font-size: 1.1em;
    text-decoration: none;
    line-height: 1;
    position: relative;
}

.chat-page .contacts-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    font-size: 0.65em;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
    position: absolute;
    top: -6px;
    right: -8px;
}

/* ---- Mobile sidebar toggle ---- */
.chat-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #0e6eb8, #2f8fd4);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 10px;
    width: 100%;
    justify-content: center;
}

.chat-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.chat-sidebar-overlay.active {
    display: block;
}

/* ---- Responsive mobile ---- */
@media (max-width: 768px) {
    .chat-page .chat-container {
        height: calc(100dvh - 130px);
        position: relative;
    }

    .chat-sidebar-toggle {
        display: flex;
    }

    .chat-page .conversations-list {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 100;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        flex: 0 0 85%;
        max-width: 320px;
        border-radius: 0 14px 14px 0;
    }

    .chat-page .conversations-list.open {
        transform: translateX(0);
    }

    .chat-page .chat-area {
        width: 100%;
    }

    .chat-page .message {
        max-width: 90%;
    }

    .chat-page .message-actions button,
    .chat-page .input-area button,
    .chat-page .form-group button,
    .chat-page .message-edit-form button {
        min-height: 44px;
    }

    .chat-page .input-area {
        position: sticky;
        bottom: 0;
        background: rgba(255,255,255,0.97);
    }
}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-page {
    margin: 0;
    min-height: 100vh;
    padding: 22px 0 40px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #143549;
    background:
        radial-gradient(circle at 12% 18%, rgba(86,193,187,0.33), transparent 31%),
        radial-gradient(circle at 88% 82%, rgba(255,191,121,0.26), transparent 34%),
        linear-gradient(155deg, #edf5fb, #e2eff8);
}

.contacts-page .contacts-shell {
    width: min(1100px, 94%);
    margin: 0 auto;
}

.contacts-page h2 {
    font-family: 'Fraunces', Georgia, serif;
    color: #17384d;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-bottom: 14px;
}

.contacts-page .contacts-msg {
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.contacts-page .contacts-error  { background:#f8d7da; border:1px solid #f5c6cb; color:#721c24; }
.contacts-page .contacts-success { background:#d4edda; border:1px solid #c3e6cb; color:#155724; }

.contacts-page .contacts-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contacts-page .contacts-col {
    flex: 1;
    min-width: 280px;
}

.contacts-page .contacts-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(18,56,78,0.14);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(12,35,52,0.08);
    padding: 16px;
    margin-bottom: 18px;
}

.contacts-page .contacts-card h3 {
    margin: 0 0 12px;
    font-size: 1em;
    color: #17384d;
}

.contacts-page .contacts-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    font-size: 0.72em;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    vertical-align: middle;
    margin-left: 5px;
}

.contacts-page .contacts-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e6eef4;
    flex-wrap: wrap;
}

.contacts-page .contacts-row:last-child { border-bottom: 0; }

.contacts-page .contacts-username {
    flex: 1;
    font-weight: 600;
}

.contacts-page .contacts-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.contacts-page .contacts-empty {
    color: #8a9aa6;
    font-size: 0.9em;
    text-align: center;
    margin: 8px 0;
}

.contacts-page .contacts-pending-label {
    font-size: 0.82em;
    color: #8a9aa6;
    font-style: italic;
}

.contacts-page .contacts-label-ok {
    font-size: 0.82em;
    color: #2e7d32;
    font-weight: 600;
}

.contacts-page .contacts-actions button,
.contacts-page .contacts-actions .btn-chat,
.contacts-page .contacts-search-form button {
    border: 0;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    text-decoration: none;
}

.contacts-page .btn-accept  { background: linear-gradient(90deg, #2e7d32, #43a047); }
.contacts-page .btn-decline { background: linear-gradient(90deg, #b71c1c, #e53935); }
.contacts-page .btn-remove  { background: linear-gradient(90deg, #5d4037, #8d6e63); }
.contacts-page .btn-block   { background: linear-gradient(90deg, #37474f, #546e7a); }
.contacts-page .btn-chat    { background: linear-gradient(90deg, #0e6eb8, #2f8fd4); }

.contacts-page .contacts-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.contacts-page .contacts-search-form input {
    flex: 1;
    border: 1px solid #bfd3df;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.9em;
}

.contacts-page .contacts-search-form button {
    background: linear-gradient(90deg, #0e6eb8, #2f8fd4);
}



.admin-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 12% 16%, rgba(86, 193, 187, 0.26), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(255, 191, 121, 0.2), transparent 33%),
        linear-gradient(155deg, #edf4fb, #dfecf7);
}

.admin-page .admin-shell {
    width: min(1320px, 94%);
    margin: 24px auto 40px;
    background: transparent;
    box-shadow: none;
}

.admin-page .admin-title {
    margin-bottom: 10px;
    color: #17384d;
    font-family: 'Fraunces', Georgia, serif;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.admin-page .admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 56, 78, 0.14);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(12, 35, 52, 0.08);
    margin-bottom: 18px;
}

.admin-page .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.admin-page .admin-nav a,
.admin-page .admin-dashboard-links a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(18, 56, 78, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    color: #17384d;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(12, 35, 52, 0.07);
}

.admin-page .admin-nav a {
    padding: 9px 12px;
}

.admin-page .admin-nav a:hover,
.admin-page .admin-nav a.active,
.admin-page .admin-dashboard-links a:hover {
    background: linear-gradient(90deg, rgba(14, 110, 184, 0.12), rgba(86, 193, 187, 0.16));
    border-color: rgba(14, 110, 184, 0.32);
    color: #0e4f82;
}

.admin-page .admin-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 56, 78, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(12, 35, 52, 0.08);
    padding: 14px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.admin-page .admin-card h2 {
    margin-top: 0;
}

.admin-page .admin-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.admin-page .admin-section-heading h2 {
    margin: 0 0 4px;
}

.admin-page .admin-section-heading p {
    margin: 0;
    color: #4e6675;
    font-size: 0.95rem;
}

.admin-page .admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-page .admin-stat {
    border: 1px solid rgba(18, 56, 78, 0.12);
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbfd, #eef6fb);
    padding: 12px;
}

.admin-page .admin-stat span,
.admin-page .admin-muted {
    display: block;
    color: #5e7280;
    font-size: 0.82rem;
}

.admin-page .admin-user-name,
.admin-page .admin-meta-line {
    display: block;
}

.admin-page .admin-user-name {
    color: #17384d;
    margin-bottom: 3px;
}

.admin-page .admin-meta-line {
    margin: 0 0 3px;
}

.admin-page .admin-meta-line strong {
    color: #4e6675;
    font-size: 0.82rem;
    margin-right: 4px;
}

.admin-page .admin-stat strong {
    display: block;
    margin-top: 4px;
    color: #17384d;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.7rem;
    line-height: 1;
}

.admin-page .admin-dashboard-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.admin-page .admin-dashboard-links a {
    padding: 14px;
}

.admin-page .admin-dashboard-links strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0e6eb8;
    color: #fff;
    font-size: 0.9rem;
}

.admin-page .admin-message {
    background: #ecfdf3;
    border: 1px solid #8dd9ad;
    color: #0c5c2f;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
}

.admin-page .admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    table-layout: auto;
}

.admin-page .admin-table th {
    background: #0e6eb8;
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    letter-spacing: 0.2px;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.admin-page .admin-table td {
    padding: 10px;
    border-bottom: 1px solid #e4ecfb;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.45;
    background: #fff;
}

.admin-page .admin-table tr:nth-child(even) td {
    background: #f4f9fd;
}

.admin-page .admin-table tr.admin-row-warning td {
    background: #fff3e0;
    color: #8a4b00;
}

.admin-page .admin-security-flag {
    display: inline-block;
    font-weight: 700;
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f2b8b5;
    border-radius: 8px;
    padding: 3px 8px;
    margin-bottom: 6px;
}

.admin-page .admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
    align-items: end;
}

.admin-page .admin-filters label {
    display: block;
    background: transparent;
    font-size: 14px;
    padding: 0;
    margin-bottom: 5px;
    text-align: left;
    color: #173b6f;
}

.admin-page .admin-settings-form label {
    display: block;
    background: transparent;
    color: #173b6f;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 0;
    margin: 8px 0 5px;
}

.admin-page .admin-filters select,
.admin-page .admin-filters input[type='text'] {
    width: 100%;
    border: 1px solid #bfd3df;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}

.admin-page input[type='checkbox'] {
    accent-color: #0e6eb8;
}

.admin-page .admin-filters .filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-page .admin-filters .filter-actions a {
    font-size: 13px;
    color: #0e6eb8;
    text-decoration: underline;
}

.admin-page .admin-table form {
    display: inline-block;
    margin: 2px 2px;
}

.admin-page .admin-inline-form {
    display: inline-block;
}

.admin-page .admin-user-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 8px;
    margin: 0;
}

.admin-page .admin-user-controls label {
    display: block;
    background: transparent;
    color: #4e6675;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
    text-align: left;
}

.admin-page .admin-user-controls select {
    display: block;
    width: 100%;
    margin-top: 3px;
}

.admin-page .admin-table button,
.admin-page .admin-filters button {
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(90deg, #ea7b47, #ef9f4a);
}

.profile-page {
    --profile-bg1: #132a3a;
    --profile-bg2: #204761;
    --profile-panel: #fcfcf7;
    --profile-panel-soft: #f3f8fb;
    --profile-text: #102838;
    --profile-muted: #4f6573;
    --profile-line: #cfdee7;
    --profile-ok-bg: #e8f8ef;
    --profile-ok-border: #96d6ae;
    --profile-ok-text: #1d6a3b;
    --profile-err-bg: #fff0ec;
    --profile-err-border: #efab95;
    --profile-err-text: #8a2e16;
    --profile-btn1: #f07b46;
    --profile-btn2: #f5a14c;
    margin: 0;
    min-height: 100vh;
    padding: 30px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-text);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 184, 110, 0.33), transparent 30%),
        radial-gradient(circle at 86% 82%, rgba(87, 194, 188, 0.35), transparent 34%),
        linear-gradient(155deg, var(--profile-bg1), var(--profile-bg2));
}

.profile-page .profile-shell {
    width: min(1080px, 100%);
    background: linear-gradient(165deg, rgba(252, 252, 247, 0.98), rgba(243, 248, 251, 0.97));
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 22px;
    box-shadow: 0 30px 74px rgba(8, 18, 32, 0.34);
    padding: 28px;
    animation: riseIn 0.7s ease-out both;
}

.profile-page .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.profile-page .badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(87, 194, 188, 0.2), rgba(240, 123, 70, 0.2));
    color: #295267;
    border-radius: 999px;
    padding: 7px 13px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.profile-page h1 {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.6rem, 3.7vw, 2.4rem);
    line-height: 1.08;
    color: #102838;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.profile-page .subtitle,
.profile-page .hint {
    color: var(--profile-muted);
}

.profile-page .subtitle {
    margin: 8px 0 0;
}

.profile-page .top-link {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #214b62;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(33, 75, 98, 0.26);
    padding-bottom: 1px;
}

.profile-page .top-link:hover {
    border-bottom-color: rgba(33, 75, 98, 0.75);
}

.profile-page .profile-home-icon {
    width: 32px;
    height: 32px;
}

.profile-page .message {
    border-radius: 12px;
    padding: 11px 13px;
    margin: 14px 0 16px;
    border: 1px solid;
}

.profile-page .message.success {
    background: var(--profile-ok-bg);
    border-color: var(--profile-ok-border);
    color: var(--profile-ok-text);
}

.profile-page .message.error {
    background: var(--profile-err-bg);
    border-color: var(--profile-err-border);
    color: var(--profile-err-text);
}

.profile-page .message.info {
    background: #edf4fb;
    border-color: #bfd7e8;
    color: #224761;
}

.profile-page .grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.2fr);
    gap: 18px;
}

.profile-page .card {
    background: var(--profile-panel);
    border: 1px solid rgba(17, 46, 65, 0.11);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 32px rgba(15, 37, 52, 0.09);
}

.profile-page .card h2 {
    margin: 0 0 10px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: #17384d;
}

.profile-page .status {
    margin: 0 0 14px;
    color: #294457;
}

.profile-page .status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 6px;
}

.profile-page .status-pill.on {
    color: #185e35;
    background: #dff4e7;
}

.profile-page .status-pill.off {
    color: #744312;
    background: #fff0d9;
}

.profile-page .hint {
    margin: 10px 0 0;
    font-size: 0.94rem;
    line-height: 1.4;
}

.profile-page .row {
    margin-bottom: 13px;
}

.profile-page .row-label {
    display: block;
    margin-bottom: 7px;
    color: #1b3446;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
}

.profile-page .checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-page .checkbox-item {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--profile-line);
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 500;
    cursor: pointer;
}

.profile-page .checkbox-item input {
    margin: 0;
    width: auto;
}

.profile-page label {
    display: block;
    margin-bottom: 7px;
    padding: 0;
    background: transparent;
    color: #1b3446;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
}

.profile-page input[type='password'],
.profile-page input[type='text'] {
    width: 100%;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-page input[type='password']:focus,
.profile-page input[type='text']:focus {
    outline: none;
    border-color: #2da6ad;
    box-shadow: 0 0 0 3px rgba(45, 166, 173, 0.16);
}

.profile-page button,
.profile-page .btn-link,
.profile-page .btn-neutral {
    border: 0;
    border-radius: 12px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.profile-page .btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--profile-btn1), var(--profile-btn2));
    box-shadow: 0 12px 22px rgba(240, 123, 70, 0.3);
}

.profile-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 25px rgba(240, 123, 70, 0.38);
}

.profile-page .btn-neutral {
    color: #1f4b61;
    background: #eaf3f8;
    border: 1px solid #c7dce8;
}

.profile-page .btn-neutral:hover,
.profile-page .btn-danger:hover {
    transform: translateY(-1px);
}

.profile-page .btn-danger {
    color: #7a2411;
    background: #fff0ec;
    border: 1px solid #f2b09b;
}

.profile-page .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.profile-page .security-list {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #314c5d;
    display: grid;
    gap: 8px;
}

@media (max-width: 920px) {
    .profile-page .profile-shell {
        padding: 20px;
        border-radius: 18px;
    }

    .profile-page .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .profile-page {
        padding: 18px 10px;
    }

    .profile-page .profile-shell {
        padding: 16px;
    }

    .profile-page .top-link,
    .profile-page .actions > *,
    .profile-page .actions button {
        width: 100%;
    }
}

.lieleden-page {
    margin: 0;
    min-height: 100vh;
    padding: 22px 18px 80px;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: #123044;
    background:
        radial-gradient(circle at 10% 14%, rgba(80, 185, 178, 0.3), transparent 30%),
        radial-gradient(circle at 88% 84%, rgba(234, 123, 71, 0.24), transparent 32%),
        linear-gradient(155deg, #eff6fa, #e5eff7);
}

.lieleden-page h2,
.lieleden-page h4 {
    margin: 0 auto 14px;
    max-width: 1500px;
    font-family: 'Fraunces', Georgia, serif;
    color: #17384d;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.lieleden-page .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto 20px;
}

.lieleden-page .colonne-gauche,
.lieleden-page .colonne-droite {
    width: auto;
    float: none;
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(19, 54, 74, 0.13);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 16px 30px rgba(15, 38, 55, 0.08);
}

.lieleden-page .poeme {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid rgba(31, 84, 110, 0.4);
    background: rgba(242, 248, 252, 0.8);
    border-radius: 10px;
}

.lieleden-page .responsive-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .index-page .main-container {
        grid-template-columns: clamp(220px, 32vw, 320px) minmax(0, 1fr);
    }

    .index-page .side-menu-collapse-btn {
        left: clamp(220px, 32vw, 320px);
    }

    .index-page .main-container.menu-hidden .side-menu-collapse-btn {
        left: 0;
    }

    .chat-page .chat-container {
        height: auto;
        min-height: 620px;
    }
}

@media (min-width: 1280px) {
    .index-page .main-container {
        grid-template-columns: clamp(240px, 24vw, 360px) minmax(0, 1fr);
        gap: 20px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .index-page .side-menu-collapse-btn {
        left: clamp(240px, 24vw, 360px);
    }

    .index-page .main-container.menu-hidden .side-menu-collapse-btn {
        left: 0;
    }

    .index-page .side-menu {
        padding: 20px 18px;
        position: sticky;
        top: 70px;
        align-self: start;
        max-height: calc(100vh - 90px);
    }

    .index-page .menu-section {
        margin-top: 14px;
    }

    .index-page .menu-list {
        margin-top: 10px;
    }

    .index-page .menu-toggle {
        display: block;
        width: 100%;
        border-radius: 10px;
        padding: 9px 12px;
        background: linear-gradient(90deg, rgba(20, 59, 82, 0.08), rgba(86, 193, 187, 0.12));
        border: 1px solid rgba(17, 54, 76, 0.12);
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    }

    .index-page .menu-toggle:hover {
        background: linear-gradient(90deg, rgba(20, 59, 82, 0.14), rgba(86, 193, 187, 0.18));
        border-color: rgba(17, 54, 76, 0.2);
        transform: translateY(-1px);
    }

    .index-page .submenu {
        margin: 8px 0 0 8px;
        padding: 9px 0 4px 12px;
        border-left: 2px solid rgba(31, 84, 110, 0.22);
    }

    .index-page .submenu li {
        margin-bottom: 5px;
    }

    .index-page .submenu a.lien {
        display: block;
        padding: 7px 10px;
        border-radius: 8px;
    }

    .index-page .submenu a.lien:hover {
        background: linear-gradient(135deg, rgba(247, 227, 197, 0.84), rgba(198, 224, 242, 0.86));
        text-decoration: none;
    }
}

@media (max-width: 768px) {
    /* Titre du site masqué ; le logo se place à gauche de la barre menu, à la
       hauteur de celle-ci, pour libérer l'espace vertical. */
    .index-page .index-title-wrap {
        display: contents; /* le wrap disparaît, ses enfants remontent */
    }

    .index-page .index-title-row {
        display: contents;
    }

    .index-page .index-title-wrap h1 {
        display: none;
    }

    .index-page .index-title-logo {
        position: fixed;
        top: 6px;
        left: 8px;
        z-index: 1100;
        width: 34px;
        height: 34px;
        padding: 2px;
        border-radius: 8px;
        margin: 0;
        filter: none;
    }

    /* Décale le bouton burger pour laisser la place au logo à sa gauche, en
       réduisant sa largeur d'autant pour ne pas déborder à droite. */
    .index-page .menu-burger-btn {
        margin-left: 46px;
        width: calc(100% - 46px);
        box-sizing: border-box;
    }

    .index-page .main-container {
        /* minmax(0, 1fr) : la colonne peut se contracter sous le contenu flex,
           sinon le contenu déborde la grille (cause du défilement horizontal). */
        grid-template-columns: minmax(0, 1fr);
        padding-left: 8px;
        padding-right: 8px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Conteneurs d'onglets et contenu : largeur bornée au viewport, sans
       débordement horizontal. min-width: 0 permet au flex de se contracter. */
    .index-page #bibleTabsContainer,
    .index-page #bibleTabs,
    .index-page #bibleTabsContent,
    .index-page .tab-pane,
    .index-page .menu,
    .index-page .version-picker,
    .index-page .reading-content {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .index-page .menu-burger-btn {
        display: inline-flex;
    }

    .index-page .side-menu,
    .index-page #bibleTabsContainer {
        min-height: auto;
        max-height: none;
    }

    /* Comble le vide sous un contenu court (ex. Accueil) sans piéger le
       défilement des contenus longs (livres) : min-height, pas height fixe. */
    .index-page #bibleTabsContainer {
        min-height: calc(100vh - 75px);
    }

    .index-page .side-menu {
        display: none;
        margin-top: 2px;
    }

    .index-page .side-menu.mobile-menu-open {
        display: block;
    }

    .default-page .row {
        grid-template-columns: 1fr;
    }

    #bibleTabsContent > .tab-pane[data-source-url$="default.php"] .row {
        grid-template-columns: 1fr;
    }

    .chat-page .chat-container {
        flex-direction: column;
        min-height: 0;
    }

    .chat-page .conversations-list {
        flex: 1 1 auto;
        max-height: 280px;
    }

    .chat-page .message {
        max-width: 88%;
    }

    .admin-page .admin-shell {
        width: 96%;
    }

    .admin-page .admin-table {
        font-size: 13px;
    }

    .admin-page .admin-table th,
    .admin-page .admin-table td {
        padding: 8px;
    }

    .admin-page .admin-table {
        display: block;
        background: transparent;
    }

    .admin-page .admin-table tbody,
    .admin-page .admin-table tr,
    .admin-page .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-page .admin-table tr:first-child {
        display: none;
    }

    .admin-page .admin-table tr {
        border: 1px solid rgba(18, 56, 78, 0.14);
        border-radius: 12px;
        margin-bottom: 12px;
        overflow: hidden;
        background: #fff;
    }

    .admin-page .admin-table td {
        border-bottom: 1px solid #e4ecfb;
    }

    .admin-page .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #5e7280;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .admin-page .admin-table td:last-child {
        border-bottom: 0;
    }

    .concordance-page form {
        grid-template-columns: 1fr;
    }

    .lieleden-page .row {
        grid-template-columns: 1fr;
    }
}

/* Note du jour - Edit Mode Styles */
.default-page .note-section-title {
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0 0 1px;
    padding: 0;
}

.note-view-mode,
.note-edit-mode {
    margin: 2px 0;
}

.note-view-mode p {
    margin-bottom: 1px;
}

.default-page .note-content {
    margin: 1px 0;
}

.default-page #noteView {
    margin-bottom: 1px;
}

.default-page #noteView + h3 {
    margin-top: 1px;
}

.default-page #noteView .btn-edit {
    margin-top: 1px;
}

.note-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    line-height: 1;
}

.default-page #noteView,
.default-page #noteView p,
.default-page #noteText,
.default-page .note-content {
    text-align: left !important;
}

.default-page #noteText {
    display: block;
    line-height: 1;
}

.btn-edit {
    background-color: rgb(0, 102, 204);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: rgb(0, 82, 164);
}

.note-textarea {
    width: 100%;
    max-width: 500px;
    padding: 1px;
    border: 1px solid rgb(0, 102, 204);
    border-radius: 4px;
    font-family: Helvetica, sans-serif;
    font-size: var(--base-font-size);
    line-height: 1;
    text-align: left;
    resize: vertical;
    box-sizing: border-box;
}

.note-textarea:focus {
    outline: none;
    border-color: rgb(0, 82, 164);
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.5);
}

.note-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-save,
.btn-cancel {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-save {
    background-color: rgb(0, 153, 0);
    color: white;
}

.btn-save:hover:not(:disabled) {
    background-color: rgb(0, 120, 0);
}

.btn-save:disabled {
    background-color: rgb(100, 100, 100);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-cancel {
    background-color: rgb(200, 100, 100);
    color: white;
}

.btn-cancel:hover {
    background-color: rgb(180, 80, 80);
}

.save-status {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: none;
}

.save-status.success {
    background-color: rgb(200, 255, 200);
    color: rgb(0, 100, 0);
    border-left: 4px solid rgb(0, 153, 0);
}

.save-status.error {
    background-color: rgb(255, 200, 200);
    color: rgb(150, 0, 0);
    border-left: 4px solid rgb(200, 0, 0);
}

/* =====================================================
   PARASHAS — Widget, Liste, Détail
   ===================================================== */

/* --- Widget parashah (default.php) --- */
.parashah-widget {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,251,255,0.94));
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
    border: 1px solid rgba(0, 102, 204, 0.16);
    box-shadow: 0 10px 28px rgba(12, 45, 65, 0.12);
}
.parashah-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fraunces', serif;
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(0,102,204);
    margin-bottom: 8px;
}
.parashah-widget-date {
    font-size: 0.82em;
    color: #5b6f7f;
    margin-bottom: 10px;
}
.parashah-widget-name {
    font-size: 2em;
    font-family: Georgia, serif;
    direction: rtl;
    text-align: right;
    color: rgb(34,34,31);
    margin-bottom: 4px;
    line-height: 1.2;
}
.parashah-widget-transliteration {
    font-style: italic;
    font-size: 1.05em;
    color: #2a536a;
    margin-bottom: 4px;
}
.parashah-widget-ref {
    font-size: 0.82em;
    color: #456176;
    margin-bottom: 10px;
}
.parashah-widget-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid rgba(0,102,204,0.5);
    border-radius: 9px;
    color: rgb(0,102,204);
    text-decoration: none;
    font-size: 0.92em;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    background: rgba(0,102,204,0.05);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.parashah-widget-link:hover {
    background: rgb(0,102,204);
    color: #fff;
    transform: translateY(-1px);
}
.parashah-widget-holiday {
    background: linear-gradient(180deg, rgba(255,225,132,0.28), rgba(255,245,216,0.9));
    border: 1px solid rgba(173, 128, 0, 0.5);
}

/* --- Page liste parashas --- */
.parashas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 20px 0;
}
.parashah-card {
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 14px 14px 12px;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.09);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.parashah-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
}
.parashah-card-current {
    border: 3px solid gold;
}
.parashah-card-number {
    display: inline-block;
    background: #e0e0e0;
    color: #555;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 6px;
}
.parashah-card-hebrew {
    font-size: 2em;
    font-family: Georgia, serif;
    direction: rtl;
    text-align: right;
    color: rgb(34,34,31);
    line-height: 1.2;
    margin-bottom: 4px;
}
.parashah-card-transliteration {
    font-style: italic;
    font-size: 0.92em;
    color: #555;
    margin-bottom: 2px;
}
.parashah-card-french {
    font-weight: bold;
    font-size: 0.95em;
    color: rgb(34,34,31);
    margin-bottom: 2px;
}
.parashah-card-ref {
    font-size: 0.78em;
    color: #888;
    margin-bottom: 6px;
}
.parashah-book-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.03em;
    margin-top: 4px;
}
.parashah-book-bereshit  { background: #2d6a4f; }
.parashah-book-shemot    { background: #1a6b9a; }
.parashah-book-vayikra   { background: #8b1a1a; }
.parashah-book-bamidbar  { background: #b5560f; }
.parashah-book-devarim   { background: #6a3d9a; }

.parashas-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.parashas-filter-btn {
    padding: 5px 14px;
    border: 2px solid rgb(0,102,204);
    border-radius: 20px;
    background: transparent;
    color: rgb(0,102,204);
    font-family: 'Manrope', sans-serif;
    font-size: 0.88em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.parashas-filter-btn:hover {
    background: rgba(0,102,204,0.08);
}
.parashas-filter-btn.active {
    background: rgb(0,102,204);
    color: #fff;
}

/* --- Page détail parashah --- */
.parashah-detail-header {
    text-align: center;
    padding: 24px 0 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 24px;
}
.parashah-detail-hebrew {
    font-size: 3em;
    font-family: Georgia, serif;
    direction: rtl;
    text-align: center;
    color: rgb(34,34,31);
    line-height: 1.2;
    margin-bottom: 6px;
}
.parashah-detail-transliteration {
    font-size: 1.4em;
    font-style: italic;
    text-align: center;
    color: #555;
    margin-bottom: 6px;
}
.parashah-detail-meaning {
    font-style: italic;
    color: #777;
    text-align: center;
    font-size: 0.97em;
    margin-bottom: 0;
}
.parashah-detail-meaning::before { content: '\201C'; }
.parashah-detail-meaning::after  { content: '\201D'; }
.parashah-section {
    border-left: 3px solid rgb(0,102,204);
    padding-left: 16px;
    margin: 20px 0;
}
.parashah-section h3 {
    font-family: 'Fraunces', serif;
    color: rgb(0,102,204);
    margin-top: 0;
}
.parashah-torah-ref {
    color: rgb(0,102,204);
    text-decoration: none;
    font-weight: 500;
}
.parashah-torah-ref:hover {
    color: rgb(83,35,11);
    text-decoration: underline;
}
.parashah-theme-tag {
    display: inline-block;
    background: rgba(0,102,204,0.10);
    color: rgb(0,60,130);
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 0.82em;
    margin: 2px 3px;
}
.parashah-figure {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.95em;
}
.parashah-figure-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgb(0,102,204);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    flex-shrink: 0;
}
.parashah-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0 16px;
    gap: 12px;
}
.parashah-nav-btn {
    padding: 8px 18px;
    border: 2px solid rgb(0,102,204);
    border-radius: 6px;
    color: rgb(0,102,204);
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 0.92em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.15s;
}
.parashah-nav-btn:hover {
    background: rgb(0,102,204);
    color: #fff;
    transform: scale(1.04);
}

/* --- Media queries --- */
@media (max-width: 1024px) {
    .parashas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .parashas-grid { grid-template-columns: 1fr; }
    .parashah-detail-hebrew { font-size: 2em; }
    .parashah-widget-name { font-size: 1.5em; }
    .parashah-nav { flex-direction: column; align-items: stretch; }
    .parashah-nav-btn { text-align: center; }
}

/* --- default.php moved inline styles --- */
.default-page .hover-note-trigger {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #555;
    white-space: nowrap;
}

.default-page .hover-note-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(560px, 90vw);
    padding: 12px 14px;
    border-radius: 8px;
    background: #1f1f1f;
    color: #f5f5f5;
    font-size: 0.92rem;
    line-height: 1.45;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 999;
    text-align: left;
    white-space: normal;
}

.default-page .hover-note-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #1f1f1f transparent transparent transparent;
}

/* --- Page liste des parashas (centralise) --- */
.parashas-page .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

.parashas-page .parashas-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.parashas-page .parashas-header h1 {
    font-size: 1.9rem;
    color: rgb(34, 34, 31);
    margin-bottom: 0.3rem;
}

.parashas-page .parashas-subtitle {
    color: #555;
    font-size: 1rem;
    margin: 0;
}

.parashas-page .book-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.parashas-page .filter-btn {
    padding: 0.4rem 1rem;
    border: 2px solid rgb(0, 102, 204);
    border-radius: 20px;
    background: transparent;
    color: rgb(0, 102, 204);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.parashas-page .filter-btn:hover,
.parashas-page .filter-btn.active {
    background: rgb(0, 102, 204);
    color: #fff;
}

.parashas-page .parashas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.parashas-page .parashah-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 1rem 1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.parashas-page .parashah-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.15);
}

.parashas-page .parashah-card.parashah-current {
    border: 2px solid rgb(0, 102, 204);
}

.parashas-page .current-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: rgb(0, 102, 204);
    color: #fff;
    font-size: 0.68rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-bottom-left-radius: 8px;
    letter-spacing: 0.02em;
}

.parashas-page .card-number {
    font-size: 0.75rem;
    color: #888;
    font-weight: bold;
}

.parashas-page .card-book-badge {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: bold;
    color: #fff;
    align-self: flex-start;
}

.parashas-page .book-genese { background: #2d6a4f; }
.parashas-page .book-exode { background: #1a6b9a; }
.parashas-page .book-levitique { background: #8b1a1a; }
.parashas-page .book-nombres { background: #b5560f; }
.parashas-page .book-deuteronome { background: #6a3d9a; }

.parashas-page .card-hebrew {
    font-size: 1.55rem;
    font-family: Georgia, serif;
    direction: rtl;
    text-align: right;
    color: rgb(34, 34, 31);
    line-height: 1.3;
    margin-top: 0.25rem;
}

.parashas-page .card-translit {
    font-size: 0.9rem;
    font-style: italic;
    color: #444;
}

.parashas-page .card-french {
    font-size: 0.95rem;
    font-weight: bold;
    color: rgb(34, 34, 31);
}

.parashas-page .card-ref {
    font-size: 0.78rem;
    color: #666;
    margin-top: auto;
    padding-top: 0.4rem;
}

.parashas-page .card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (max-width: 1000px) {
    .parashas-page .parashas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .parashas-page .parashas-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Page calendrier (centralise) --- */
.calendrier-page .calendrier-container {
    max-width: 900px;
    margin: 2em auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #ccc;
    padding: 2em;
}

.calendrier-page .fete {
    margin-bottom: 1.5em;
    border-left: 4px solid #3a6ea5;
    padding-left: 1em;
}

.calendrier-page .fete h3 {
    margin-top: 0;
    color: #3a6ea5;
}

.calendrier-page .fete .date {
    font-weight: bold;
    color: #555;
}

.calendrier-page .fete .chouraqui {
    font-style: italic;
    color: #2d4a6a;
    margin-top: 0.5em;
}

.calendrier-page .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
}

.calendrier-page .block {
    background: #f8fafc;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 1em;
}

.calendrier-page .status {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 0.8em;
}

.calendrier-page .calendrier-events-block {
    margin-top: 1.5em;
}

.calendrier-page .calendrier-source-note {
    margin-top: 1em;
    font-size: 0.95em;
    color: #5b6470;
}

@media (max-width: 900px) {
    .calendrier-page .grid {
        grid-template-columns: 1fr;
    }
}

.default-page .hover-note-trigger:hover .hover-note-content {
    opacity: 1;
    visibility: visible;
}

.default-page .parashah-widget-chouraqui-label {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a5a00;
    font-weight: bold;
}

.default-page .parashah-widget-chouraqui-name {
    font-size: 0.92rem;
    font-weight: bold;
    color: #4f3b00;
}

.default-page .parashah-widget-etymo {
    margin-top: 0.4rem;
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.2);
    font-size: 0.82rem;
    line-height: 1.4;
    color: #4a4a4a;
}

.default-page .next-festival-widget {
    border-left: 4px solid #2d6a4f;
    background: #f5fff7;
}

@media (max-width: 768px) {
    .default-page .hover-note-content {
        left: 0;
        transform: none;
        width: min(92vw, 460px);
    }

    .default-page .hover-note-content::after {
        left: 24px;
        transform: none;
    }
}

/* ============================================================
   MODE SOMBRE (v1 - pages de lecture biblique)
   ============================================================ */

/* Le pane generique #bibleTabsContainer .tab-content > .tab-pane (specificite ID)
   ecrase color/background de .palvanov-article et .livres-index en mode onglet;
   on le neutralise explicitement ici avec la meme specificite. */
html[data-theme="dark"] #bibleTabsContainer .tab-content > .tab-pane {
    background: linear-gradient(155deg, #14181c, #1b2126);
    color: #d9d6cd;
}

.dark-mode-toggle {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1200;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(18, 54, 76, 0.2);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 4px 10px rgba(8, 21, 34, 0.18);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.dark-mode-toggle:hover {
    transform: translateY(-1px);
}

html[data-theme="dark"] .dark-mode-toggle {
    background: rgba(30, 34, 40, 0.92);
    border-color: rgba(230, 230, 230, 0.25);
}

html[data-theme="dark"] body {
    background: linear-gradient(155deg, #14181c, #1b2126);
    color: #d9d6cd;
}

html[data-theme="dark"] label,
html[data-theme="dark"] iframe,
html[data-theme="dark"] pre {
    background-color: #23272b;
    color: #d9d6cd;
}

html[data-theme="dark"] b {
    background-color: #23272b;
    color: #7fb3f0;
}

html[data-theme="dark"] .chapitre {
    background: linear-gradient(120deg, #262019 0%, #1c2733 55%, #202a33 100%);
    color: #e6e2d6;
    border-left-color: #d9d6cd;
}

html[data-theme="dark"] a {
    color: #d9d6cd;
}

html[data-theme="dark"] a:hover {
    color: #e8a37c;
}

html[data-theme="dark"] .lien {
    color: #6fa8dc;
}

html[data-theme="dark"] .lien:hover {
    color: #e8a37c;
}

html[data-theme="dark"] .menu,
html[data-theme="dark"] .site-page.scripture-page .menu,
html[data-theme="dark"] .site-page.intertestamentaires-page .menu {
    background: linear-gradient(120deg, #24201a 0%, #1a2530 55%, #1e2833 100%) !important;
    color: #e6e2d6;
    border-bottom-color: rgba(230, 230, 230, 0.18);
}

html[data-theme="dark"] .menu a {
    color: #6fa8dc;
}

html[data-theme="dark"] .menu a:hover {
    color: #e8a37c;
}

html[data-theme="dark"] .hebreu,
html[data-theme="dark"] .citation-hebrew {
    color: #e6e2d6;
}

/* --- Couches de versions bibliques (HEB / CHU / ZAD / CAH) --- */

/* Bascule client-side (localStorage), indépendante des liens du sélecteur.
   On masque la couche ET le <br> qui la suit, sinon il reste un « trou ». */
body.hide-layer-hebrew .reading-content .hebreu,
body.hide-layer-hebrew .reading-content .hebreu + br,
body.hide-layer-chouraqui .reading-content .version-chouraqui,
body.hide-layer-chouraqui .reading-content .version-chouraqui + br,
body.hide-layer-zadoc .reading-content .version-zadoc,
body.hide-layer-zadoc .reading-content .version-zadoc + br,
body.hide-layer-cahen .reading-content .version-cahen,
body.hide-layer-cahen .reading-content .version-cahen + br,
body.hide-layer-segond .reading-content .version-segond,
body.hide-layer-segond .reading-content .version-segond + br,
body.hide-layer-crampon .reading-content .version-crampon,
body.hide-layer-crampon .reading-content .version-crampon + br,
body.hide-layer-giguet .reading-content .version-giguet,
body.hide-layer-giguet .reading-content .version-giguet + br,
body.hide-layer-sacy .reading-content .version-sacy,
body.hide-layer-sacy .reading-content .version-sacy + br {
    display: none;
}

.version-picker {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 10px 14px;
    background: var(--article-surface, rgba(255, 252, 247, 0.95));
    border: 1px solid var(--article-border, rgba(122, 92, 59, 0.18));
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--article-shadow, rgba(69, 53, 33, 0.14));
}

.version-picker-title {
    font-weight: 700;
    color: var(--article-accent-strong, #603d1c);
    margin-right: 4px;
}

/* Puces = cases à cocher (multi-sélection sans rechargement) */
.version-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--article-border, rgba(122, 92, 59, 0.3));
    background: rgba(255, 255, 255, 0.6);
    color: rgb(34, 34, 31);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

/* Neutralise le style global des <label> du site pour ces puces */
.version-picker label.version-chip {
    background-color: rgba(255, 255, 255, 0.6);
    font-family: Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    padding: 4px 10px;
}

.version-chip .version-toggle {
    accent-color: var(--article-accent, #8d6136);
    margin: 0;
    cursor: pointer;
}

.version-chip .version-chip-sigle {
    letter-spacing: 0.04em;
}

.version-chip .version-chip-label {
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.85;
}

.version-chip:hover {
    transform: translateY(-1px);
}

.version-chip.is-active,
.version-picker label.version-chip.is-active {
    background: var(--article-accent, #8d6136);
    border-color: var(--article-accent-strong, #603d1c);
    color: #fff;
}

.version-chip.is-active .version-toggle {
    accent-color: #fff;
}

.version-chip.is-active .version-chip-label {
    opacity: 1;
}

.version-chip.is-locked,
.version-picker label.version-chip.is-locked {
    cursor: not-allowed;
    opacity: 0.65;
    border-style: dashed;
    background: rgba(255, 255, 255, 0.4);
}

.version-chip.is-locked .version-toggle {
    cursor: not-allowed;
}

.version-chip.is-locked:hover {
    transform: none;
}

.version-chip.is-unavailable,
.version-picker label.version-chip.is-unavailable {
    cursor: not-allowed;
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.3);
}

.version-chip.is-unavailable .version-toggle {
    cursor: not-allowed;
}

.version-chip.is-unavailable:hover {
    transform: none;
}

/* --- Mobile : picker compact, réduit aux sigles --- */
@media (max-width: 768px) {
    .version-picker {
        position: static; /* ne colle plus en haut : évite d'occuper l'écran */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        margin: 6px 0;
        padding: 6px 8px;
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .version-picker-title {
        font-size: 0.85em;
        margin-right: 2px;
        flex: 0 0 auto;
    }

    .version-chip,
    .version-picker label.version-chip {
        padding: 3px 8px;
        font-size: 12px;
        gap: 4px;
        flex: 0 0 auto; /* les puces défilent horizontalement au lieu de s'empiler */
    }

    /* Cache le nom long, ne garde que le sigle (HEB, CHU, ZAD…) */
    .version-chip .version-chip-label {
        display: none;
    }

    .version-chip .version-chip-sigle {
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    /* Contenu de lecture : pas de défilement horizontal ; le texte passe à la
       ligne au lieu de déborder. */
    .index-page .reading-content,
    .reading-content {
        max-width: 100%;
        overflow-x: hidden;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .index-page .reading-content a,
    .reading-content a {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Nom du livre abrégé dans le sigle : « Genese 1:1 » → « Gen. 1:1 ».
       On tronque proprement pour gagner de la largeur. */
    .verse-sigle {
        max-width: 5.2em;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.72em;
        padding: 1px 4px;
        margin-right: 5px;
    }
}

/* Sigle devant chaque verset */
.verse-sigle {
    display: inline-block;
    min-width: 0;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--article-accent-strong, #603d1c);
    background: rgba(141, 97, 54, 0.10);
    border-radius: 4px;
    padding: 1px 6px;
    margin-right: 8px;
    vertical-align: baseline;
    white-space: nowrap;
}

/* Couches traductions françaises */
a.version,
a.version:link,
a.version:visited,
a.version:hover {
    text-decoration: none !important;
}

.version-chouraqui {
    /* La traduction Chouraqui garde le style de texte courant.
       C'est une balise <a> sans href : neutralise le soulignement navigateur. */
    color: inherit;
    text-decoration: none;
}

.version-chouraqui:hover {
    text-decoration: none;
}

.version-zadoc {
    color: rgb(41, 74, 122);
}

.version-cahen {
    color: rgb(96, 61, 28);
}

.version-segond {
    color: rgb(30, 92, 74);
}

.version-crampon {
    color: rgb(112, 44, 108);
}

.version-giguet {
    color: rgb(20, 90, 110);
}

.version-sacy {
    color: rgb(130, 80, 20);
}

/* Mode sombre */
html[data-theme="dark"] .version-picker {
    background: #23272b;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .version-picker-title {
    color: #e6e2d6;
}

html[data-theme="dark"] .version-chip,
html[data-theme="dark"] .version-picker label.version-chip {
    background: #1a1f24;
    border-color: rgba(255, 255, 255, 0.14);
    color: #d9d6cd;
}

html[data-theme="dark"] .version-chip.is-active,
html[data-theme="dark"] .version-picker label.version-chip.is-active {
    background: #a06a3f;
    border-color: #a06a3f;
    color: #14181c;
}

html[data-theme="dark"] .verse-sigle {
    color: #e8c9a0;
    background: rgba(160, 106, 63, 0.18);
}

html[data-theme="dark"] .index-page .side-menu-collapse-btn {
    background: linear-gradient(135deg, #23272b, #1a1f24);
    border-color: rgba(255, 255, 255, 0.18);
    color: #d9d6cd;
}

html[data-theme="dark"] .index-page .side-menu-collapse-btn:hover {
    background: linear-gradient(135deg, #2b3035, #20252a);
}

html[data-theme="dark"] .version-zadoc {
    color: #9ec2f0;
}

html[data-theme="dark"] .version-cahen {
    color: #e0b58a;
}

html[data-theme="dark"] .version-segond {
    color: #7fd0b8;
}

html[data-theme="dark"] .version-crampon {
    color: #d39ad0;
}

html[data-theme="dark"] .version-giguet {
    color: #7ec8dd;
}

html[data-theme="dark"] .version-sacy {
    color: #e3c08a;
}

html[data-theme="dark"] .paragraph {
    background-color: #23272b;
    color: #d9d6cd;
    border-left-color: #a06a3f;
}

html[data-theme="dark"] .citation,
html[data-theme="dark"] .citation-hebrew {
    background-color: #262219;
    color: #d9d6cd;
    border-left-color: #6fa8dc;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    background-color: #23272b;
    color: #6fa8dc;
    border-bottom-color: #6fa8dc;
}

html[data-theme="dark"] h2 {
    background: transparent;
    color: #d9d6cd;
}

html[data-theme="dark"] .foot {
    background-color: #23272b;
    color: #d9d6cd;
}

html[data-theme="dark"] .notes,
html[data-theme="dark"] .notes a {
    color: #e8a37c !important;
}

html[data-theme="dark"] .poeme,
html[data-theme="dark"] .rss-feed {
    background-color: #23272b;
    color: #d9d6cd;
}

html[data-theme="dark"] .site-page.scripture-page {
    background: linear-gradient(155deg, #14181c, #1b2126);
    color: #d9d6cd;
}

html[data-theme="dark"] .site-page.scripture-page .reading-content {
    background: rgba(28, 32, 36, 0.94) !important;
    color: #d9d6cd !important;
    border-color: rgba(230, 230, 230, 0.14);
}

html[data-theme="dark"] .site-page.scripture-page .reading-content a {
    color: #d9d6cd;
}

html[data-theme="dark"] .site-page.scripture-page .reading-content a:hover {
    color: #e8a37c;
}

html[data-theme="dark"] .site-page.intertestamentaires-page {
    background: linear-gradient(160deg, #14181c, #1b2126);
    color: #d9d6cd;
}

html[data-theme="dark"] .intertestamentaires-content,
html[data-theme="dark"] .intertestamentaires-plain,
html[data-theme="dark"] .site-page.intertestamentaires-page .reading-content {
    background: rgba(28, 32, 36, 0.94) !important;
    border-color: rgba(230, 230, 230, 0.14);
    color: #d9d6cd !important;
}

html[data-theme="dark"] .index-page .side-menu {
    background: linear-gradient(145deg, rgba(28, 32, 36, 0.95), rgba(24, 34, 44, 0.95));
    border-color: rgba(230, 230, 230, 0.16);
}

html[data-theme="dark"] .index-page .side-menu b {
    color: #cfe6f7;
}

html[data-theme="dark"] .index-page .side-menu a.lien {
    background: linear-gradient(135deg, rgba(40, 44, 48, 0.92), rgba(28, 40, 50, 0.88));
    color: #cfe6f7;
    border-color: rgba(230, 230, 230, 0.18);
}

html[data-theme="dark"] .index-page .side-menu a.lien:hover {
    background: linear-gradient(135deg, rgba(58, 48, 34, 0.88), rgba(30, 46, 56, 0.9));
    color: #f5d7b0;
}

html[data-theme="dark"] .index-page .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cfe6f7;
}

/* --- default.php --- */
html[data-theme="dark"] .default-page,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url$="default.php"] {
    color: #d9d6cd;
}

html[data-theme="dark"] .default-page .colonne-gauche,
html[data-theme="dark"] .default-page .colonne-droite,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url$="default.php"] .colonne-gauche,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url$="default.php"] .colonne-droite {
    background: rgba(28, 32, 36, 0.94);
    border-color: rgba(230, 230, 230, 0.14);
    color: #d9d6cd;
}

html[data-theme="dark"] .default-page h2,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url$="default.php"] h2 {
    background: linear-gradient(120deg, rgba(40, 44, 48, 0.9) 0%, rgba(30, 40, 50, 0.9) 55%, rgba(35, 45, 55, 0.9) 100%);
    color: #f4fbff;
}

html[data-theme="dark"] .default-page h3,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url$="default.php"] h3 {
    color: #cfe6f7;
}

html[data-theme="dark"] .default-page .citation-hebrew,
html[data-theme="dark"] .default-page .hebrew,
html[data-theme="dark"] .default-page .citation,
html[data-theme="dark"] .default-page .paragraph {
    color: #d9d6cd;
}

html[data-theme="dark"] .default-page textarea[name='note_du_jour'],
html[data-theme="dark"] .note-textarea {
    background: #23272b;
    color: #d9d6cd;
    border-color: rgba(230, 230, 230, 0.25);
}

html[data-theme="dark"] .parashah-widget {
    background: linear-gradient(180deg, rgba(30, 34, 40, 0.98), rgba(24, 30, 38, 0.94));
    border-color: rgba(111, 168, 220, 0.25);
}

html[data-theme="dark"] .parashah-widget-header {
    color: #6fa8dc;
}

html[data-theme="dark"] .parashah-widget-date,
html[data-theme="dark"] .parashah-widget-ref {
    color: #a39d90;
}

html[data-theme="dark"] .parashah-widget-name {
    color: #d9d6cd;
}

html[data-theme="dark"] .parashah-widget-transliteration {
    color: #9fc3d8;
}

html[data-theme="dark"] .parashah-widget-link {
    color: #6fa8dc;
    border-color: rgba(111, 168, 220, 0.5);
    background: rgba(111, 168, 220, 0.08);
}

html[data-theme="dark"] .parashah-widget-link:hover {
    background: #6fa8dc;
    color: #14181c;
}

html[data-theme="dark"] .parashah-widget-holiday {
    background: linear-gradient(180deg, rgba(90, 70, 10, 0.35), rgba(50, 45, 20, 0.5));
    border-color: rgba(217, 178, 94, 0.4);
}

html[data-theme="dark"] .default-page .parashah-widget-chouraqui-label {
    color: #d9b25e;
}

html[data-theme="dark"] .default-page .parashah-widget-chouraqui-name {
    color: #e8c988;
}

html[data-theme="dark"] .default-page .parashah-widget-etymo {
    color: #a39d90;
    border-top-color: rgba(230, 230, 230, 0.15);
}

html[data-theme="dark"] .default-page .next-festival-widget {
    border-left-color: #4a9d78;
    background: #1c2a22;
}

/* --- about.php / body.article-page --- */
html[data-theme="dark"] {
    --article-bg-start: #14181c;
    --article-bg-mid: #1b2126;
    --article-bg-end: #1e2429;
    --article-surface: rgba(28, 32, 36, 0.94);
    --article-border: rgba(230, 230, 230, 0.14);
    --article-shadow: rgba(0, 0, 0, 0.4);
    --article-accent: #6fa8dc;
    --article-accent-strong: #6fa8dc;
}

html[data-theme="dark"] body.article-page {
    color: #d9d6cd;
}

html[data-theme="dark"] body.article-page a:hover {
    color: #e8a37c;
}

html[data-theme="dark"] body.article-page h1 {
    background: linear-gradient(135deg, rgba(40, 44, 48, 0.96), rgba(30, 40, 50, 0.9));
    color: #cfe6f7;
}

html[data-theme="dark"] body.article-page .table-of-contents {
    background: linear-gradient(135deg, rgba(30, 34, 40, 0.97), rgba(24, 30, 38, 0.95));
    border-color: rgba(230, 230, 230, 0.18);
}

html[data-theme="dark"] body.article-page .table-of-contents h2,
html[data-theme="dark"] body.article-page .text-reader-title {
    color: #cfe6f7;
}

html[data-theme="dark"] body.article-page .text-reader-controls {
    background: rgba(28, 32, 36, 0.84);
    border-color: rgba(230, 230, 230, 0.2);
}

html[data-theme="dark"] body.article-page .text-reader-status {
    color: #a39d90;
}

html[data-theme="dark"] .article-frame {
    background: rgba(20, 24, 28, 0.5);
    border-color: rgba(230, 230, 230, 0.12);
}

html[data-theme="dark"] body.article-page .article-content > header,
html[data-theme="dark"] body.article-page .article-frame > header {
    background: linear-gradient(135deg, rgba(111, 168, 220, 0.12), rgba(217, 178, 94, 0.1));
    border-color: rgba(230, 230, 230, 0.14);
}

html[data-theme="dark"] body.article-page blockquote,
html[data-theme="dark"] body.article-page .citation,
html[data-theme="dark"] body.article-page figure.citation {
    background: linear-gradient(135deg, rgba(38, 34, 25, 0.9), rgba(28, 32, 40, 0.9));
    color: #d9d6cd;
}

/* --- about.php --- */
html[data-theme="dark"] .about-page,
html[data-theme="dark"] .about-content {
    --about-ink: #d9d6cd;
    --about-accent: #6fa8dc;
    --about-accent-soft: rgba(111, 168, 220, 0.16);
    --about-border: rgba(230, 230, 230, 0.16);
    --about-shadow: rgba(0, 0, 0, 0.4);
    --about-warm: #1e2228;
}

html[data-theme="dark"] .about-kicker {
    color: #cfe6f7;
}

html[data-theme="dark"] .about-toc {
    background: linear-gradient(135deg, #1e2228 0%, var(--about-warm) 100%);
}

html[data-theme="dark"] .about-toc a:hover {
    color: #e8f4ff;
}

html[data-theme="dark"] .law-card {
    background: linear-gradient(145deg, #1e2228 0%, #23272b 100%);
}

html[data-theme="dark"] .law-card h3 {
    color: #cfe6f7;
}

html[data-theme="dark"] .pillars p {
    background: #1e2228;
}

html[data-theme="dark"] .practice-grid article {
    background: #1e2228;
}

/* --- Sections utilitaires --- */
html[data-theme="dark"] .parashas-page,
html[data-theme="dark"] .calendrier-page,
html[data-theme="dark"] .concordance-page,
html[data-theme="dark"] .chat-page,
html[data-theme="dark"] .contacts-page,
html[data-theme="dark"] .admin-page,
html[data-theme="dark"] .lieleden-page,
html[data-theme="dark"] .profile-page {
    background: linear-gradient(155deg, #14181c, #1b2126);
    color: #e8e0d5;
}

html[data-theme="dark"] .parashas-page .parashas-header h1,
html[data-theme="dark"] .parashas-page .parashas-subtitle,
html[data-theme="dark"] .parashas-page .card-hebrew,
html[data-theme="dark"] .parashas-page .card-translit,
html[data-theme="dark"] .parashas-page .card-french,
html[data-theme="dark"] .parashas-page .card-ref,
html[data-theme="dark"] .concordance-page h2,
html[data-theme="dark"] .concordance-page h3,
html[data-theme="dark"] .concordance-page > a,
html[data-theme="dark"] .concordance-page p,
html[data-theme="dark"] .concordance-page .result,
html[data-theme="dark"] .admin-page .admin-title,
html[data-theme="dark"] .admin-page .admin-topbar,
html[data-theme="dark"] .admin-page .admin-card,
html[data-theme="dark"] .admin-page .admin-table td,
html[data-theme="dark"] .admin-page .admin-filters label,
html[data-theme="dark"] .admin-page .admin-settings-form label,
html[data-theme="dark"] .admin-page .admin-user-controls label,
html[data-theme="dark"] .admin-page .admin-section-heading p,
html[data-theme="dark"] .admin-page .admin-muted {
    color: #e8e0d5;
}

html[data-theme="dark"] .admin-page .admin-user-name {
    color: #f3c48d;
}

html[data-theme="dark"] .admin-page .admin-meta-line strong {
    color: #a7b6bf;
}

html[data-theme="dark"] .admin-page .admin-nav a,
html[data-theme="dark"] .admin-page .admin-dashboard-links a {
    background: #23272b;
    border-color: rgba(230, 230, 230, 0.14);
    color: #e8e0d5;
}

html[data-theme="dark"] .admin-page .admin-nav a:hover,
html[data-theme="dark"] .admin-page .admin-nav a.active,
html[data-theme="dark"] .admin-page .admin-dashboard-links a:hover {
    background: linear-gradient(90deg, rgba(111, 168, 220, 0.16), rgba(86, 193, 187, 0.12));
    border-color: rgba(111, 168, 220, 0.32);
    color: #cfe6f7;
}

html[data-theme="dark"] .parashas-page .parashah-card,
html[data-theme="dark"] .calendrier-page .calendrier-container,
html[data-theme="dark"] .calendrier-page .block,
html[data-theme="dark"] .concordance-page form,
html[data-theme="dark"] .chat-page .new-conversation-form,
html[data-theme="dark"] .chat-page .conversations-list,
html[data-theme="dark"] .chat-page .chat-area,
html[data-theme="dark"] .contacts-page .contacts-col,
html[data-theme="dark"] .contacts-page .contacts-card,
html[data-theme="dark"] .admin-page .admin-topbar,
html[data-theme="dark"] .admin-page .admin-card,
html[data-theme="dark"] .admin-page .admin-table,
html[data-theme="dark"] .admin-page .admin-table td,
html[data-theme="dark"] .admin-page .admin-stat,
html[data-theme="dark"] .lieleden-page .colonne-gauche,
html[data-theme="dark"] .lieleden-page .colonne-droite,
html[data-theme="dark"] .profile-page .profile-card {
    background: #23272b;
    border-color: rgba(230, 230, 230, 0.14);
}

html[data-theme="dark"] .admin-page .admin-stat {
    background: linear-gradient(145deg, #202a33, #192126);
}

html[data-theme="dark"] .admin-page .admin-stat span {
    color: #a7b6bf;
}

html[data-theme="dark"] .admin-page .admin-stat strong {
    color: #e6e2d6;
}

html[data-theme="dark"] .admin-page .admin-dashboard-links strong {
    background: #6fa8dc;
    color: #14181c;
}

html[data-theme="dark"] .profile-page {
    --profile-panel: #23272b;
    --profile-panel-soft: #1b2025;
    --profile-text: #e8e0d5;
    --profile-muted: #a7b6bf;
    --profile-line: rgba(230, 230, 230, 0.2);
    --profile-ok-bg: #1f3b2c;
    --profile-ok-border: #4a9d78;
    --profile-ok-text: #c9f0d7;
    --profile-err-bg: #432319;
    --profile-err-border: #a85d45;
    --profile-err-text: #ffd4c6;
    background: linear-gradient(155deg, #14181c, #1b2126);
}

html[data-theme="dark"] .profile-page .profile-shell,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .profile-shell {
    background: linear-gradient(165deg, rgba(35, 39, 43, 0.98), rgba(27, 32, 37, 0.96));
    border-color: rgba(230, 230, 230, 0.12);
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .profile-page .card,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .card {
    background: #23272b;
    border-color: rgba(230, 230, 230, 0.14);
    color: #e8e0d5;
}

html[data-theme="dark"] .profile-page h1,
html[data-theme="dark"] .profile-page .card h2,
html[data-theme="dark"] .profile-page .status,
html[data-theme="dark"] .profile-page label,
html[data-theme="dark"] .profile-page .row-label,
html[data-theme="dark"] .profile-page .security-list,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page h1,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .card h2,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .status,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page label,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .row-label,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .security-list {
    color: #e8e0d5;
}

html[data-theme="dark"] .profile-page .badge,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .badge {
    background: linear-gradient(90deg, rgba(111, 168, 220, 0.18), rgba(240, 123, 70, 0.14));
    color: #cfe6f7;
}

html[data-theme="dark"] .profile-page .subtitle,
html[data-theme="dark"] .profile-page .hint,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .subtitle,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .hint {
    color: #a7b6bf;
}

html[data-theme="dark"] .profile-page .top-link,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .top-link {
    color: #9fcdf4;
    border-bottom-color: rgba(159, 205, 244, 0.3);
}

html[data-theme="dark"] .profile-page .status-pill.on,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .status-pill.on {
    background: #1f3b2c;
    color: #c9f0d7;
}

html[data-theme="dark"] .profile-page .status-pill.off,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .status-pill.off {
    background: #3c2d1f;
    color: #f7d4a3;
}

html[data-theme="dark"] .profile-page .btn-neutral,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .btn-neutral {
    background: #1b2025;
    border-color: rgba(230, 230, 230, 0.2);
    color: #cfe6f7;
}

html[data-theme="dark"] .profile-page .btn-danger,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.profile-page .btn-danger {
    background: #432319;
    border-color: #a85d45;
    color: #ffd4c6;
}

html[data-theme="dark"] .parashas-page .filter-btn,
html[data-theme="dark"] .concordance-page input[type='text'],
html[data-theme="dark"] .chat-page input,
html[data-theme="dark"] .chat-page textarea,
html[data-theme="dark"] .contacts-page input,
html[data-theme="dark"] .admin-page .admin-filters input[type='text'],
html[data-theme="dark"] .admin-page .admin-filters select,
html[data-theme="dark"] .admin-page input,
html[data-theme="dark"] .admin-page select,
html[data-theme="dark"] .profile-page input {
    background: #1b2025;
    border-color: rgba(230, 230, 230, 0.22);
    color: #f4eee5;
}

html[data-theme="dark"] .admin-page input[type='checkbox'] {
    accent-color: #6fa8dc;
}

html[data-theme="dark"] .concordance-page .ref,
html[data-theme="dark"] .calendrier-page .fete h3,
html[data-theme="dark"] .calendrier-page .fete .chouraqui,
html[data-theme="dark"] .admin-page .admin-table th,
html[data-theme="dark"] .admin-page a,
html[data-theme="dark"] .chat-page a,
html[data-theme="dark"] .contacts-page a,
html[data-theme="dark"] .lieleden-page a {
    color: #9fcdf4;
}

html[data-theme="dark"] .admin-page .admin-table tr:nth-child(even) td,
html[data-theme="dark"] .chat-page .conversation-item:hover,
html[data-theme="dark"] .contacts-page .contacts-row:hover {
    background: #2b3137;
}

html[data-theme="dark"] .admin-page .admin-table tr.admin-row-warning td {
    background: #4a3418;
    color: #f0c98a;
}

html[data-theme="dark"] .admin-page .admin-security-flag {
    color: #ffb4ab;
    background: #4a2422;
    border-color: #7a3d38;
}

html[data-theme="dark"] body.default-page.parashas-page {
    background: linear-gradient(155deg, #14181c, #1b2126) !important;
}

html[data-theme="dark"] .parashas-page .filter-btn {
    background: #1d2730;
    border-color: #6fa8dc;
    color: #cfe6f7;
}

html[data-theme="dark"] .parashas-page .filter-btn:hover,
html[data-theme="dark"] .parashas-page .filter-btn.active {
    background: #2f6f9f;
    border-color: #9fcdf4;
    color: #fff;
}

html[data-theme="dark"] .parashas-page .parashah-card.parashah-current {
    border-color: #8fbdf4;
    box-shadow: 0 0 0 1px rgba(143, 189, 244, 0.25), 0 8px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .parashas-page .card-number {
    color: #b8b1a5;
}

html[data-theme="dark"] body.article-page [class~="bg-white"],
html[data-theme="dark"] body.article-page [class~="bg-slate-50"],
html[data-theme="dark"] body.article-page [class~="bg-stone-50"] {
    background-color: #23272b !important;
}

html[data-theme="dark"] body.article-page [class~="bg-stone-100"],
html[data-theme="dark"] body.article-page [class~="bg-stone-200"],
html[data-theme="dark"] body.article-page [class~="bg-slate-100"],
html[data-theme="dark"] body.article-page [class~="bg-slate-200"] {
    background-color: #2b3137 !important;
}

html[data-theme="dark"] body.article-page [class~="bg-indigo-50"],
html[data-theme="dark"] body.article-page [class~="bg-sky-50"] {
    background-color: #202a36 !important;
}

html[data-theme="dark"] body.article-page [class~="bg-orange-50"] {
    background-color: #36291f !important;
}

html[data-theme="dark"] body.article-page [class*="text-stone-"],
html[data-theme="dark"] body.article-page [class*="text-slate-"] {
    color: #e8e0d5 !important;
}

html[data-theme="dark"] body.article-page [class*="text-indigo-"] {
    color: #a9d4f6 !important;
}

html[data-theme="dark"] body.article-page [class*="text-amber-"] {
    color: #f3c48d !important;
}

html[data-theme="dark"] body.article-page [class*="text-teal-"] {
    color: #91ddd3 !important;
}

html[data-theme="dark"] body.article-page [class*="text-orange-"] {
    color: #efb275 !important;
}

html[data-theme="dark"] body.article-page [class*="border-stone-"],
html[data-theme="dark"] body.article-page [class*="border-slate-"],
html[data-theme="dark"] body.article-page [class*="border-indigo-"] {
    border-color: rgba(230, 230, 230, 0.18) !important;
}

html[data-theme="dark"] .calendrier-page .fete .date,
html[data-theme="dark"] .calendrier-page .status,
html[data-theme="dark"] .calendrier-page .calendrier-source-note,
html[data-theme="dark"] .chat-page h2,
html[data-theme="dark"] .chat-page .form-group label,
html[data-theme="dark"] .chat-page .conversation-heading,
html[data-theme="dark"] .chat-page .new-users-heading,
html[data-theme="dark"] .chat-page .conversation-link,
html[data-theme="dark"] .chat-page .new-user-note,
html[data-theme="dark"] .chat-page .empty-conversations,
html[data-theme="dark"] .chat-page .no-conversation,
html[data-theme="dark"] .chat-page .typing-indicator,
html[data-theme="dark"] .contacts-page h2,
html[data-theme="dark"] .contacts-page .contacts-card h3,
html[data-theme="dark"] .contacts-page .contacts-empty,
html[data-theme="dark"] .contacts-page .contacts-pending-label,
html[data-theme="dark"] .lieleden-page h2,
html[data-theme="dark"] .lieleden-page h4 {
    color: #e8e0d5;
}

html[data-theme="dark"] .chat-page .conversation-heading,
html[data-theme="dark"] .chat-page .new-users-heading,
html[data-theme="dark"] .chat-page .chat-header,
html[data-theme="dark"] .chat-page .message.received,
html[data-theme="dark"] .chat-page .input-area {
    background: #2b3137;
    border-color: rgba(230, 230, 230, 0.14);
    color: #e8e0d5;
}

html[data-theme="dark"] .chat-page #load-more-btn {
    border-color: #6fa8dc;
    color: #cfe6f7;
}

html[data-theme="dark"] .chat-page #load-more-btn:hover:not(:disabled) {
    background: #2b3137;
}

html[data-theme="dark"] .contacts-page .contacts-row {
    border-color: rgba(230, 230, 230, 0.12);
}

html[data-theme="dark"] .admin-page .admin-table td,
html[data-theme="dark"] .admin-page .admin-table th {
    border-color: rgba(230, 230, 230, 0.12);
}

@media (max-width: 768px) {
    html[data-theme="dark"] .admin-page .admin-table tr {
        background: #23272b;
        border-color: rgba(230, 230, 230, 0.14);
    }

    html[data-theme="dark"] .admin-page .admin-table td::before {
        color: #a7b6bf;
    }
}

html[data-theme="dark"] .admin-page .admin-message {
    background: #1f3b2c;
    border-color: #4a9d78;
    color: #c9f0d7;
}

html[data-theme="dark"] .parashah-detail .pd-hero,
html[data-theme="dark"] .parashah-detail .pd-section,
html[data-theme="dark"] .parashah-detail .pd-nav a {
    background: #23272b !important;
    border-color: rgba(230, 230, 230, 0.14) !important;
    color: #e8e0d5 !important;
}

html[data-theme="dark"] .parashah-detail .pd-hero-hebrew,
html[data-theme="dark"] .parashah-detail .pd-hero-translit,
html[data-theme="dark"] .parashah-detail .pd-hero-french,
html[data-theme="dark"] .parashah-detail .pd-hero-meaning,
html[data-theme="dark"] .parashah-detail .pd-order,
html[data-theme="dark"] .parashah-detail .pd-ref-book,
html[data-theme="dark"] .parashah-detail .pd-ref-verses,
html[data-theme="dark"] .parashah-detail .pd-summary,
html[data-theme="dark"] .parashah-detail .pd-chouraqui-name,
html[data-theme="dark"] .parashah-detail .pd-chouraqui-etymo,
html[data-theme="dark"] .parashah-detail .pd-chouraqui-intro,
html[data-theme="dark"] .parashah-detail .pd-haftarah,
html[data-theme="dark"] .parashah-detail .pd-figure-item {
    color: #e8e0d5 !important;
}

html[data-theme="dark"] .parashah-detail .pd-section h2,
html[data-theme="dark"] .parashah-detail .pd-ref-link,
html[data-theme="dark"] .parashah-detail .pd-nav a,
html[data-theme="dark"] .parashah-detail .pd-figure-icon {
    color: #9fcdf4 !important;
}

html[data-theme="dark"] .parashah-detail .pd-tag {
    background: rgba(111, 168, 220, 0.16) !important;
    border-color: rgba(143, 189, 244, 0.4) !important;
    color: #cfe6f7 !important;
}

html[data-theme="dark"] body.article-page .article-frame,
html[data-theme="dark"] body.article-page .article-content,
html[data-theme="dark"] body.article-page .article-reading,
html[data-theme="dark"] body.article-page .table-of-contents,
html[data-theme="dark"] body.article-page .text-reader-controls,
html[data-theme="dark"] body.article-page blockquote,
html[data-theme="dark"] body.article-page .citation,
html[data-theme="dark"] body.article-page figure.citation {
    background: #23272b !important;
    border-color: rgba(230, 230, 230, 0.16) !important;
    color: #e8e0d5 !important;
}

html[data-theme="dark"] body.article-page .table-of-contents a,
html[data-theme="dark"] body.article-page blockquote a,
html[data-theme="dark"] body.article-page .citation a {
    color: #cfe6f7 !important;
}

html[data-theme="dark"] body.article-page .text-reader-actions select,
html[data-theme="dark"] body.article-page .text-reader-actions button:disabled {
    background: #1b2025 !important;
    border-color: rgba(230, 230, 230, 0.22) !important;
    color: #e8e0d5 !important;
}

/* Les pages Articles injectées dans un onglet perdent leur classe body.article-page. */
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .article-frame,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .article-content,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .article-reading,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .table-of-contents,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .text-reader-controls,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] blockquote,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .citation,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] figure.citation {
    background: #23272b !important;
    border-color: rgba(230, 230, 230, 0.16) !important;
    color: #e8e0d5 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .table-of-contents a,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] blockquote a,
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] .citation a {
    color: #cfe6f7 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-white"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-slate-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-stone-50"] {
    background-color: #23272b !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-stone-100"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-stone-200"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-slate-100"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-slate-200"] {
    background-color: #2b3137 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-indigo-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-sky-50"] {
    background-color: #202a36 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-orange-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class~="bg-amber-50"] {
    background-color: #36291f !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-stone-"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-slate-"] {
    color: #e8e0d5 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-indigo-"] {
    color: #a9d4f6 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-amber-"] {
    color: #f3c48d !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-teal-"] {
    color: #91ddd3 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="Articles/"] [class*="text-orange-"] {
    color: #efb275 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="parashas/"] {
    background: linear-gradient(155deg, #14181c, #1b2126) !important;
    color: #e8e0d5;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="parashas/"] .container {
    background: transparent !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="admin.php"] {
    background: linear-gradient(155deg, #14181c, #1b2126) !important;
    color: #e8e0d5;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="admin.php"] .admin-title {
    color: #f3c48d !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane[data-source-url*="admin.php"] .container.admin-shell {
    background: transparent !important;
    box-shadow: none !important;
}

/* Le chargeur d'onglets recopie la classe body.article-page sur le panneau. */
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page {
    background: #14181c !important;
    color: #e8e0d5;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .container {
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .article-frame,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .article-content,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .article-reading,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .table-of-contents,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .text-reader-controls,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page blockquote,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .citation,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page figure.citation {
    background: #23272b !important;
    border-color: rgba(230, 230, 230, 0.16) !important;
    color: #e8e0d5 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-white"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-slate-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-stone-50"] {
    background-color: #23272b !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-stone-100"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-stone-200"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-slate-100"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-slate-200"] {
    background-color: #2b3137 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-indigo-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-sky-50"] {
    background-color: #202a36 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-orange-50"],
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page [class~="bg-amber-50"] {
    background-color: #36291f !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page table,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page table td,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page table tr {
    background: #23272b !important;
    border-color: rgba(230, 230, 230, 0.12) !important;
    color: #e8e0d5 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page table thead,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page table th {
    background: #2b3137 !important;
    color: #cfe6f7 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content .bg-white {
    background: #2b3137 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content {
    background: #2b3137 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content p,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content li,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content td,
html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content th {
    color: #f1e8dc !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content h3.text-teal-700 {
    color: #91ddd3 !important;
}

html[data-theme="dark"] #bibleTabsContent > .tab-pane.article-page .card-content h3.text-indigo-700 {
    color: #a9d4f6 !important;
}
