@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* ==========================================
   AGAPE-LOGOS - Midnight Gold Design System
   ========================================== */

/* Variables CSS */
:root {
    --bg-dark-deep: #070B12;      /* Bleu nuit très profond */
    --bg-dark-card: #0F1626;      /* Arrière-plan des cartes */
    --bg-dark-input: #172033;     /* Arrière-plan recherche */
    --text-primary: #E2E8F0;       /* Crème / blanc doux */
    --text-secondary: #94A3B8;     /* Gris bleuté pour sous-titres */
    --accent-gold: #C5A880;        /* Or chaud mat (pour le précieux) */
    --accent-gold-bright: #F59E0B; /* Or brillant */
    --accent-gold-muted: #8C704D;  /* Or sombre */
    --accent-red-muted: #B91C1C;   /* Rouge sourd pour le vernis */
    --accent-green-muted: #10B981; /* Vert sourd */
    
    --border-glass: rgba(197, 168, 128, 0.15); /* Bordure or en verre */
    --shadow-gold: rgba(197, 168, 128, 0.1);
    
    /* Variables dynamiques pour le Tooltip */
    --bg-word-item: rgba(15, 22, 38, 0.4);
    --bg-tooltip: rgba(25, 25, 28, 0.95);
    --border-tooltip: var(--border-glass);
    --shadow-tooltip: rgba(0, 0, 0, 0.6);
    --text-tooltip-section: rgba(255, 255, 255, 0.5);
    --border-tooltip-header: rgba(255, 255, 255, 0.1);
    
    /* Variables dynamiques de badges */
    --bg-badge: var(--accent-gold);
    --text-badge: #070B12;
    --border-badge: transparent;
    
    --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-serif-body: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Réinitialisations de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

/* Structure globale */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.mobile-header {
    display: none;
}

/* ==========================
   SIDEBAR (Navigation)
   ========================== */
.sidebar {
    --sidebar-text-scale: 1; /* Variable pour le zoom à deux doigts sur mobile */
    width: 320px;
    min-width: 320px;
    background-color: var(--bg-sidebar, #0B101D);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 24px 16px 8px 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.brand-title,
.logo-word {
  font-family: var(--font-serif);
  font-size: calc(16px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
  font-weight: 700;
  color: var(--accent-gold, #c5a880);
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px var(--shadow-gold);
  white-space: nowrap;
  margin-bottom: 2px;
}

.brand-subtitle {
  font-family: var(--font-serif);
  font-size: calc(9.5px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
  font-weight: 500;
  color: #e2c296;
  opacity: 0.9;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.25;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--shadow-gold);
  object-fit: cover;
}

.drawer-logo .logo-img {
  width: 40px;
  height: 40px;
}

.tagline {
    font-size: calc(10.5px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    font-weight: 400;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1.2px;
    margin-top: 14px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

/* Recherche */
.search-box {
    padding: 10px 24px 8px 24px;
    position: relative;
}

#search-input {
    width: 100%;
    background-color: var(--bg-dark-input);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 10px 14px 10px 38px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: calc(14px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    outline: none;
    transition: var(--transition-smooth);
}

#search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.2);
}

.search-icon {
    position: absolute;
    left: 36px;
    top: 23px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Filtres de catégorie avec défilement fluide sans barre visible */
.category-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 6px;
    padding: 8px 24px 12px 24px;
    border-bottom: 1px solid var(--border-glass);
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.category-filters::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.category-filters.is-dragging {
    cursor: grabbing !important;
}
.category-filters.is-dragging .filter-btn {
    pointer-events: none !important;
}
.filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 6px 14px;
    color: var(--text-secondary);
    font-size: calc(12px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    border-color: var(--accent-gold);
}

.filter-btn-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    margin-left: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Index Alphabétique */
.alphabet-container {
    padding: 10px 24px 8px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.alphabet-bar {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    cursor: grab;
}

.alphabet-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.alphabet-bar.is-dragging {
    cursor: grabbing !important;
}

.alphabet-bar.is-dragging .letter-btn {
    pointer-events: none !important;
}

.letter-btn {
    min-width: calc(20px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    height: calc(20px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: calc(11px * (1 + (var(--sidebar-text-scale, 1) - 1) * 0.45));
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.letter-btn:hover:not(:disabled) {
    color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.1);
}

.letter-btn.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
}

.letter-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Liste des mots */
.word-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.word-list {
    list-style: none;
}

.word-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    background-color: var(--bg-word-item);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.word-item:hover {
    background-color: var(--bg-dark-card);
    border-color: var(--border-glass);
    transform: translateY(-2px);
}

.word-item.active {
    background-color: var(--bg-dark-card);
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.1);
}

.word-item-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0;
}

.word-item-title {
    font-family: var(--font-serif);
    font-size: calc(14.5px * var(--sidebar-text-scale, 1));
    font-weight: 600;
    color: var(--accent-gold);
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal;
    line-height: 1.35;
    width: 100%;
}

.card-audio-dot {
    display: inline-block;
    margin-right: 6px;
    font-size: 13px;
    vertical-align: -1px;
    line-height: 1;
    opacity: 0.92;
}

.word-item-strong {
    font-size: calc(10px * var(--sidebar-text-scale, 1));
    color: var(--text-secondary);
    background-color: var(--bg-dark-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    align-self: flex-start;
    max-width: 100%;
    overflow-wrap: break-word;
}

.word-item-snippet {
    font-size: calc(12px * var(--sidebar-text-scale, 1));
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer Sidebar */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    background-color: var(--bg-sidebar, #090D17);
}

.verses-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: calc(11px * var(--sidebar-text-scale, 1));
    color: var(--accent-gold-muted);
    text-align: center;
}

/* ==========================
   MAIN CONTENT AREA
   ========================== */
.main-content {
    --main-content-scale: 1; /* Échelle de zoom pour l'affichage principal */
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-dark-deep);
    position: relative;
}

/* WELCOME VIEW - DUAL LAYER */
.welcome-screen {
    position: relative;
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-dark-deep);
}

/* BACKGROUND GRID LAYER */
.welcome-background-grid {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.welcome-grid-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--accent-gold);
    margin-bottom: 24px;
    text-align: center;
}

.welcome-featured-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* OVERLAY MODAL LAYER */
.welcome-overlay-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(9, 13, 23, 0.75);
    backdrop-filter: blur(6px);
    z-index: 100;
    transition: opacity 0.4s ease;
}

.welcome-overlay-modal {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 680px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: rgba(14, 18, 28, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    z-index: 101;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.welcome-overlay-backdrop.fade-out,
.welcome-overlay-modal.fade-out {
    opacity: 0;
    pointer-events: none;
}
.welcome-overlay-modal.fade-out {
    transform: translate(-50%, -10px);
}

@media (min-width: 768px) {
    .welcome-overlay-modal {
        top: 24px;
        transform: translateX(-50%);
        padding: 24px 32px;
    }
    .welcome-overlay-modal.fade-out {
        transform: translate(-50%, -10px);
    }
}

.welcome-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    transition: color var(--transition-smooth);
}
.welcome-close-btn:hover {
    color: var(--accent-gold);
}

.welcome-actions {
    text-align: center;
    margin-top: 16px;
    padding-bottom: 4px;
}

.explore-btn,
#welcome-explore-btn {
    background: linear-gradient(135deg, #c5a880, #a67c52) !important;
    color: #090D17 !important;
    border: 1px solid var(--accent-gold) !important;
    padding: 10px 26px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3) !important;
    width: auto !important;
    margin: 0 auto !important;
}

.explore-btn:hover,
#welcome-explore-btn:hover {
    background: linear-gradient(135deg, #dfbe93, #c5a880) !important;
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.5) !important;
    transform: translateY(-2px) !important;
}

.welcome-card {
    max-width: 680px;
    width: 100%;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--accent-gold-muted);
    padding-bottom: 12px;
}

.welcome-title-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 2px;
    min-width: 0;
}

.welcome-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--shadow-gold);
    object-fit: cover;
    flex-shrink: 0;
}

.welcome-title {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 2px;
    border-bottom: none;
    padding-bottom: 0;
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.welcome-header .welcome-title {
    margin-bottom: 2px;
    border-bottom: none;
    padding-bottom: 0;
}

.welcome-subtitles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.welcome-subtitle-line {
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 500;
    color: #e2c296;
    opacity: 0.92;
    letter-spacing: 0.3px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .welcome-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
    }
    .welcome-logo {
        width: 46px;
        height: 46px;
    }
    .welcome-header .welcome-title {
        font-size: 16.5px;
    }
    .welcome-subtitle-line {
        font-size: 9.5px;
        line-height: 1.3;
    }
}

.welcome-intro {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.quote-container {
    border-left: 3px solid var(--accent-gold);
    padding-left: 16px;
    margin: 14px 0;
}

.quote-container blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: calc(16px * var(--main-content-scale, 1));
    color: var(--accent-gold);
}

.quote-container cite {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: calc(11.5px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-guidelines h3 {
    font-family: var(--font-serif);
    font-size: calc(16px * var(--main-content-scale, 1));
    color: var(--text-primary);
    margin-bottom: 10px;
}

.welcome-guidelines ul {
    list-style-type: none;
    margin-bottom: 14px;
}

.welcome-guidelines li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: calc(13px * var(--main-content-scale, 1));
    line-height: 1.45;
}

.welcome-guidelines li::before {
    content: "✨";
    position: absolute;
    left: 0;
    top: 0;
    font-size: calc(12px * var(--main-content-scale, 1));
}

.select-hint {
    text-align: center;
    color: var(--accent-gold);
    font-weight: 500;
    font-size: calc(14px * var(--main-content-scale, 1));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ==========================
   DETAIL VIEW (Fiche Mot)
   ========================== */
.word-detail {
    padding: 40px;
    max-width: 960px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

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

.mobile-back-btn {
    display: none;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 20px;
}

.detail-banner-container {
    width: 100%;
    height: 220px;
    max-height: 260px;
    margin-bottom: 24px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent-gold, #C5A880);
    position: relative;
}
.detail-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Navigation rapide de l'alphabet hébreu */
.hebrew-quick-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(18, 18, 18, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.quick-nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.quick-nav-btn:hover {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}
.quick-nav-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #1a1a1a !important;
    font-weight: bold;
}

.quick-char {
    font-size: 1.15rem;
    font-family: var(--font-serif-body);
}
.quick-name {
    font-family: var(--font-serif);
}
.quick-num {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
}
.quick-nav-btn.active .quick-num {
    background: rgba(0, 0, 0, 0.15);
    color: inherit;
}

/* Styles pour la grille de l'alphabet hébreu dans l'article global */
.hebrew-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 28px;
    max-width: 100%;
}
.hebrew-card {
    flex: 0 0 78px;
    width: 78px;
    box-sizing: border-box;
    background: var(--bg-card, rgba(30, 30, 30, 0.6));
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.hebrew-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold, #C5A880);
    background: rgba(197, 168, 128, 0.08);
    box-shadow: 0 6px 16px rgba(197, 168, 128, 0.12);
}
.hebrew-card-letter {
    font-size: 26px;
    font-family: var(--font-serif), Georgia, serif;
    color: var(--accent-gold, #C5A880);
    margin-bottom: 4px;
    line-height: 1;
}
.hebrew-card-name {
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
}
.hebrew-card-value {
    font-size: 9.5px;
    color: var(--text-secondary);
    background: rgba(197, 168, 128, 0.12);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.detail-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.word-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.word-item-title-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

/* Badge "En cours de rédaction" (Liste & Fiche) */
.detail-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: calc(12px * var(--main-content-scale, 1));
    font-weight: 500;
    font-family: var(--font-sans);
    letter-spacing: 0.2px;
    margin-left: 8px;
    vertical-align: middle;
}

.card-draft-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 500;
    vertical-align: middle;
}

.detail-header-main {
    flex: 1;
    min-width: 0;
}

.detail-header-related {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: 320px;
    flex-shrink: 0;
}

.related-label {
    font-size: calc(10px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.related-list {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
}

.related-list::-webkit-scrollbar {
    height: 3px;
}

.related-list::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 2px;
}

.related-tag {
    display: inline-block;
    text-decoration: none;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 12px;
    padding: 3px 10px;
    color: var(--accent-gold);
    font-size: calc(11px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.related-tag:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.2);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.detail-category {
    font-size: calc(11px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--bg-dark-input);
    padding: 3px 10px;
    border-radius: 12px;
    color: var(--accent-gold);
    border: 1px solid var(--border-glass);
    font-weight: 500;
}

.detail-strong {
    font-size: calc(11px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    font-family: monospace;
    color: var(--text-secondary);
}

.detail-word-title {
    font-family: var(--font-serif);
    font-size: calc(38px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.detail-word-literal {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: calc(18px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    color: var(--accent-gold, #c5a880);
    margin: 4px 0 6px 0;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.detail-word-subtitle {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: calc(13px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    margin: 0 0 4px 0;
}

/* Définition principale */
.definition-section {
    font-size: calc(16px * var(--main-content-scale, 1));
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* Galerie d'images hybride */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.gallery-item h4 {
    font-family: var(--font-serif);
    font-size: calc(13px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background-color: #080D18;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-container img:hover {
    transform: scale(1.05);
}

.image-source-caption {
    font-size: calc(10px * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
    font-style: italic;
}

/* Grille de comparaison (💎 Précieux vs ⚠️ Vernis) */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 40px;
}

.comparison-card {
    background-color: var(--bg-dark-card);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.precious-card {
    position: relative;
    border: 1px solid rgba(16, 185, 129, 0.25); /* Mince bordure verte */
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, rgba(0,0,0,0) 100%);
}

.varnish-card {
    position: relative;
    border: 1px solid rgba(166, 124, 82, 0.3); /* Bordure bronze/altérée */
    background: linear-gradient(180deg, rgba(166, 124, 82, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.toxicity-badge, .precious-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: calc(9px * var(--main-content-scale, 1));
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(15, 22, 38, 0.7);
    font-family: var(--font-sans);
    font-weight: 600;
    transition: all 0.2s ease;
}

.toxicity-badge {
    color: #A67C52; /* Ocre bronze */
    border: 1px solid rgba(166, 124, 82, 0.2);
}

.precious-badge {
    color: #10B981; /* Vert émeraude */
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.comparison-header {
    font-family: var(--font-serif);
    font-size: calc(18px * var(--main-content-scale, 1));
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.title-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.varnish-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-family: var(--font-sans);
}

.precious-card .comparison-header {
    color: var(--accent-gold);
}

.varnish-card .comparison-header {
    color: #C5A880; /* Or de la charte */
}

.comparison-header .subtitle {
    font-size: calc(11px * var(--main-content-scale, 1));
    font-family: var(--font-sans);
    color: var(--text-secondary);
    margin-top: 2px;
}

.precious-list, .varnish-list {
    list-style: none;
}

.precious-list li, .varnish-list li {
    font-size: calc(13.5px * var(--main-content-scale, 1));
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    color: var(--text-primary);
}

.precious-list li::before {
    content: "✦";
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    top: 0;
}

.varnish-list li::before {
    content: "✦";
    color: #C5A880; /* Étoile dorée identique de la charte */
    position: absolute;
    left: 0;
    top: 0;
}

/* ==========================
   EXPERTS SECTION
   ========================== */
.experts-section {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 28px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.experts-title {
    font-family: var(--font-serif);
    font-size: calc(20px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.experts-subtitle {
    font-size: calc(12px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Sélecteurs des experts */
.expert-selectors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.expert-btn {
    background-color: var(--bg-dark-input);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: var(--transition-smooth);
}

.expert-btn:hover {
    border-color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.05);
}

.expert-btn.active {
    border-color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.15);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.1);
}

.expert-avatar {
    font-size: 22px;
}

.expert-meta {
    display: flex;
    flex-direction: column;
}

.expert-name {
    font-size: calc(12.5px * var(--main-content-scale, 1));
    font-weight: 600;
    color: var(--text-primary);
}

.expert-spec {
    font-size: calc(10px * var(--main-content-scale, 1));
    color: var(--text-secondary);
}

/* Bulle de discours de l'expert */
.expert-response-container {
    position: relative;
    margin-top: 16px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.expert-speech-bubble {
    background-color: var(--bg-dark-deep);
    border-left: 4px solid var(--accent-gold);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.bubble-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.bubble-expert-title {
    font-family: var(--font-serif);
    font-size: calc(14px * var(--main-content-scale, 1));
    font-weight: 700;
    color: var(--accent-gold);
}

.bubble-expert-role {
    font-size: calc(11px * var(--main-content-scale, 1));
    color: var(--text-secondary);
}

.bubble-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: calc(14.5px * var(--main-content-scale, 1));
    line-height: 1.7;
    color: var(--text-primary);
}

/* États et Visibilité */
.hidden {
    display: none !important;
}

/* Navigation du Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: rgba(197, 168, 128, 0.4);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.05));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.08);
}

/* Sections Esprit du Projet (Manifeste) */
.project-card {
    max-width: 800px;
    margin: 0 auto;
}

.project-intro-tagline {
    font-size: calc(16px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 24px;
    font-style: italic;
    opacity: 0.9;
}

.project-manifesto {
    line-height: 1.8;
    font-size: calc(15px * var(--main-content-scale, 1));
    color: var(--text-primary);
    margin-bottom: 32px;
}

.project-manifesto p {
    margin-bottom: 16px;
}

.manifesto-section-title {
    font-family: var(--font-serif);
    font-size: calc(20px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pillar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.pillar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 168, 128, 0.3);
}

.pillar-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 12px;
}

.pillar-card h4 {
    font-family: var(--font-serif);
    font-size: calc(16px * var(--main-content-scale, 1));
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pillar-card p {
    font-size: calc(13px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Soutenir & Dons */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.support-action-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.support-action-card:hover {
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-badge);
    color: var(--text-badge);
    border: var(--border-badge, none);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: calc(10px * var(--main-content-scale, 1));
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px var(--shadow-gold);
}

.support-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 16px;
}

.support-action-card h3 {
    font-family: var(--font-serif);
    font-size: calc(19px * var(--main-content-scale, 1));
    color: var(--text-primary);
    margin-bottom: 12px;
}

.support-action-card p {
    font-size: calc(13px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.book-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-glass);
    border-radius: 8px;
    padding: 10px;
    font-size: calc(11px * var(--main-content-scale, 1)) !important;
    margin-bottom: 20px;
}

.action-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: calc(13px * var(--main-content-scale, 1));
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.amazon-btn {
    background: linear-gradient(135deg, #e47911, #ff9900);
    color: #111;
    border: none;
}

.amazon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.paypal-btn {
    background: linear-gradient(135deg, #0079c1, #00457c);
    color: #fff;
    border: none;
}

.paypal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 121, 193, 0.3);
}

/* Style du Contenu Long (Études Théologiques) */
.long-content-section {
    margin-top: 32px;
    animation: fadeIn 0.4s ease-out;
}

.study-article {
    color: var(--text-primary);
}

.study-lead {
    font-size: calc(16px * var(--main-content-scale, 1));
    line-height: 1.8;
    color: var(--accent-gold);
    font-family: var(--font-serif-body);
    font-style: italic;
    margin-bottom: 28px;
    border-left: 3px solid var(--accent-gold);
    padding-left: 16px;
}

.study-section-title {
    font-family: var(--font-serif);
    font-size: calc(20px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    margin-top: 36px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

.study-article p {
    font-size: calc(14.8px * var(--main-content-scale, 1));
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.study-article ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.study-article ul li {
    font-size: calc(14.8px * var(--main-content-scale, 1));
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.study-keyword-title {
    font-family: var(--font-serif);
    font-size: calc(17.5px * var(--main-content-scale, 1));
    color: var(--accent-gold);
    margin-top: 36px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-left: 2px solid var(--accent-gold);
    padding-left: 12px;
}

.keyword-num {
    font-weight: bold;
    opacity: 0.8;
}

.keyword-hebrew {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-family: var(--font-serif-body);
    font-weight: bold;
}

.keyword-trans {
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.95;
    color: var(--accent-gold);
}

.keyword-separator {
    opacity: 0.6;
}

.keyword-meaning {
    font-weight: 500;
    color: var(--accent-gold);
}

.study-paragraphs p {
    font-size: calc(14.5px * var(--main-content-scale, 1));
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.study-paragraphs strong {
    color: var(--accent-gold);
}

/* Tableaux d'études */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}

.study-table {
    width: 100%;
    border-collapse: collapse;
    font-size: calc(13.5px * var(--main-content-scale, 1));
    text-align: left;
}

.study-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-glass);
}

.study-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
    line-height: 1.6;
    vertical-align: top;
}

.study-table tr:last-child td {
    border-bottom: none;
}

.study-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Paraphrase du Fils Box - Marron / Or Chaud Officiel (#C5A880) */
.son-paraphrase-box {
    background: rgba(197, 168, 128, 0.05);
    border-left: 4px solid var(--accent-gold, #C5A880);
    border-radius: 0 8px 8px 0;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.son-paraphrase-box p {
    color: var(--text-primary, #E2E8F0) !important;
    font-size: calc(14.5px * var(--main-content-scale, 1));
    line-height: 1.85;
    margin-bottom: 14px;
}

.son-paraphrase-box p:last-child {
    margin-bottom: 0;
}

/* Versets Clés sous-titres d'étude */
.study-verse-refs {
    margin-top: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent-gold, #C5A880);
    font-size: 0.9rem;
}

/* Tableau de comparaison (Le Précieux vs Le Vernis - 100% Charte Midnight Gold #C5A880, ZÉRO vert) */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass, rgba(197, 168, 128, 0.15));
    background: var(--bg-dark-card, #0F1626);
}

.comparison-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    background: #172033;
    color: var(--accent-gold, #C5A880);
    border-bottom: 1px solid var(--border-glass, rgba(197, 168, 128, 0.15));
}

.comparison-table th.th-concept,
.comparison-table th.th-precious,
.comparison-table th.th-varnish {
    background: #172033;
    color: var(--accent-gold, #C5A880);
    border-bottom: 1px solid var(--border-glass, rgba(197, 168, 128, 0.15));
}

.comparison-table td {
    padding: 14px 16px;
    line-height: 1.7;
    vertical-align: top;
    border-bottom: 1px solid var(--border-glass, rgba(197, 168, 128, 0.15));
    font-size: 0.9rem;
    color: var(--text-primary, #E2E8F0);
    background: transparent;
}

.comparison-table td.td-concept {
    font-weight: 700;
    color: var(--accent-gold, #C5A880);
    background: rgba(255, 255, 255, 0.01);
}

.comparison-table td.td-precious,
.comparison-table td.td-varnish {
    color: var(--text-primary, #E2E8F0);
    background: transparent;
}

/* ==========================
   RESPONSIVE DESIGN
   ========================== */
/* Styles Accueil Mobile Dynamique (masqués par défaut sur Desktop) */
.mobile-welcome-container {
    display: none;
}
.sidebar-overlay {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--bg-sidebar, #090D17);
        border-bottom: 1px solid var(--border-glass);
        padding: 0 16px;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 19998; /* En dessous du menu tiroir (20000) mais au-dessus de la sidebar (10000) */
        box-sizing: border-box;
    }
    
    .mobile-menu-btn {
        background: none;
        border: 1px solid rgba(197, 168, 128, 0.4);
        color: var(--accent-gold);
        font-size: 20px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }
    
    .mobile-menu-btn:active {
        background-color: rgba(197, 168, 128, 0.1);
    }
    
    .mobile-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0;
    }
    
    .mobile-logo .logo-img {
        display: block !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50%;
        box-shadow: 0 0 6px var(--shadow-gold);
        object-fit: cover;
    }
    
    .mobile-logo .logo-word {
        font-size: 13px !important;
        letter-spacing: 1.5px !important;
        font-family: var(--font-serif);
        color: var(--accent-gold);
        font-weight: bold;
        text-shadow: 0 0 10px var(--shadow-gold);
    }
    
    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-lang-selector {
        display: none !important; /* Masqué pour éviter les chevauchements sur petit écran mobile */
    }
    
    .mobile-lang-btn {
        background: none;
        border: 1px solid rgba(197, 168, 128, 0.3);
        color: #ffffff;
        font-size: 12px;
        font-weight: bold;
        padding: 5px 9px;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-lang-btn.active {
        background-color: var(--accent-gold) !important;
        color: #0B101D !important;
        border-color: var(--accent-gold) !important;
    }
    
    html, body {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .app-container {
        flex-direction: column;
        height: calc(100vh - 60px);
        width: 100vw;
        padding-top: 60px; /* Compense le header mobile fixe */
        overflow-x: hidden !important; /* Élimine tout scroll horizontal parasite */
    }
    
    /* Volet latéral (Drawer) pour la sidebar */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important; /* Hors écran physiquement par défaut */
        width: 320px !important; /* Largeur fixe standard et propre */
        max-width: 320px !important;
        min-width: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 20005 !important;
        border-right: 1px solid var(--border-glass) !important;
        display: flex !important;
        transform: none !important; /* Plus de transform complexe */
        transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        background-color: var(--bg-sidebar, #090D17) !important;
        box-shadow: none !important; /* Plus d'ombre portée quand elle est fermée */
        cursor: default;
    }
    
    .sidebar:not(.open) .word-list-container {
        overflow-y: hidden !important;
    }
    
    .sidebar.open {
        left: 0 !important; /* Coulisse vers la zone visible */
        transform: none !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8) !important; /* Ombre uniquement quand ouverte */
        cursor: default;
    }
    
    /* Réduction du logo dans la sidebar mobile */
    .sidebar .logo-word {
        font-size: 14px !important;
    }
    .sidebar .logo {
        gap: 8px !important;
    }
    .sidebar .logo-img {
        width: 36px !important;
        height: 36px !important;
    }
    .sidebar .logo-row {
        gap: 8px !important;
    }

    /* Overlay de floutage et assombrissement */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(4, 6, 12, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 20004;
        animation: fadeIn 0.2s ease-out;
    }
    
    .sidebar-overlay.active {
        display: block !important;
    }
    
    .main-content {
        display: block !important; /* Toujours visible pour l'accueil */
        width: 100% !important;
        height: 100% !important; /* Prend la hauteur restante sous le header */
        overflow-y: auto !important;
        overflow-x: hidden !important; /* Évite tout scroll horizontal parasite */
        background-color: var(--bg-dark-deep) !important;
        margin-left: 0 !important;
        padding-left: 0 !important; /* Plus de languette à compenser */
    }
    
    /* Masquage de l'accueil de base desktop et neutralisation/* ==========================================================================
   Studio d'Édition Collaboratif & d'Aération Manuelle (Agapé-Logos)
   ========================================================================== */
.bible-editor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bible-editor-card {
    background: #16171d;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.bible-editor-header {
    padding: 16px 20px;
    background: rgba(197, 168, 128, 0.08);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bible-editor-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--accent-gold, #c5a880);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bible-editor-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.bible-editor-instruction {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(197, 168, 128, 0.06);
    border-left: 3px solid var(--accent-gold, #c5a880);
    padding: 10px 14px;
    border-radius: 4px;
    line-height: 1.5;
}

.bible-editor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold, #c5a880);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.bible-editor-textarea {
    width: 100%;
    min-height: 180px;
    background: #0f1014;
    color: #e2e4e9;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 8px;
    padding: 14px;
    font-family: var(--font-serif), Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

.bible-editor-textarea:focus {
    border-color: var(--accent-gold, #c5a880);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.15);
}

.bible-editor-preview-box {
    background: #111217;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    min-height: 120px;
    max-height: 280px;
    overflow-y: auto;
}

.bible-editor-footer {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bible-editor-save-btn {
    background: var(--accent-gold, #c5a880);
    color: #0d0d11;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, background 0.2s ease;
}

.bible-editor-save-btn:hover {
    background: #d4b890;
    transform: translateY(-1px);
}

.bible-editor-reset-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.bible-editor-reset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}flex sur mobile */
    .welcome-screen {
        padding: 0 !important;
        display: block !important;
        min-height: auto !important;
    }
    #welcome-view .welcome-card {
        display: none !important;
    }

    /* Style pour les welcome-card secondaires sur mobile (links, pdf, project, ecosystem) */
    .project-screen .welcome-card {
        max-width: 100% !important;
        padding: 24px 16px !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        margin: 0 !important;
    }
    
    /* Affichage de l'accueil mobile dynamique (parfaitement aéré et centré) */
    .mobile-welcome-container {
        display: block !important;
        padding: 24px 20px 40px 20px !important;
        animation: fadeIn 0.4s ease-out;
    }

    /* Gestion des vues sur mobile */
    .app-container:not(.has-selection) #welcome-view:not(.hidden) {
        display: block !important;
    }
    .app-container:not(.has-selection) #detail-view {
        display: none !important;
    }
    
    .app-container.has-selection #welcome-view {
        display: none !important;
    }
    .app-container.has-selection #detail-view:not(.hidden) {
        display: block !important;
    }

    /* En-tête de l'accueil mobile */
    .mobile-home-header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border-glass);
        padding-bottom: 16px;
    }
    
    .mobile-logo-title {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        color: var(--text-primary);
        font-family: var(--font-serif);
        font-weight: 700;
        font-size: calc(24px * var(--main-content-scale, 1));
        letter-spacing: 2px;
    }
    
    .mobile-logo {
        width: 48px;
        height: 48px;
    }
    
    .mobile-welcome-intro {
        font-size: calc(14px * var(--main-content-scale, 1));
        color: var(--text-secondary);
        line-height: 1.5;
        text-align: center;
        margin-bottom: 24px;
        font-style: italic;
    }
    
    /* Suggestions de mots (Badges) */
    .mobile-featured-words {
        margin-bottom: 28px;
    }
    
    .featured-title {
        font-size: calc(11px * var(--main-content-scale, 1));
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .featured-badges {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .featured-badge-btn {
        background: rgba(197, 168, 128, 0.05);
        border: 1px solid rgba(197, 168, 128, 0.15);
        color: var(--text-primary);
        border-radius: 16px;
        padding: 6px 12px;
        font-size: calc(12px * var(--main-content-scale, 1));
        cursor: pointer;
        transition: var(--transition-smooth);
    }
    
    .featured-badge-btn:hover {
        border-color: var(--accent-gold);
        background: rgba(197, 168, 128, 0.1);
    }
} /* Fin du premier bloc media query mobile */

/* Cartes aléatoires (GLOBAUX POUR PC ET MOBILE) */
.mobile-random-articles {
        margin-bottom: 20px;
    }
    
    .random-articles-title {
        font-size: calc(11px * var(--main-content-scale, 1));
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-secondary);
        margin-bottom: 12px;
        font-weight: 600;
    }
    
    .random-articles-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .random-article-card {
        background: var(--bg-word-item); /* S'adapte automatiquement au thème clair/sombre */
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease, border-color 0.3s ease;
    }
    
    .random-article-card:hover {
        transform: translateY(-2px);
        border-color: rgba(197, 168, 128, 0.4);
    }
    
    .card-image-box {
        height: 110px;
        width: 100%;
        overflow: hidden;
        border-bottom: 1px solid var(--border-glass);
    }
    
    .card-image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .card-info-box {
        padding: 14px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }
    
    .card-category {
        font-size: calc(9px * var(--main-content-scale, 1));
        text-transform: uppercase;
        color: var(--accent-gold);
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    
    .card-strong {
        font-size: calc(9px * var(--main-content-scale, 1));
        font-family: monospace;
        color: var(--text-secondary);
    }
    
    .card-word-title {
        font-family: var(--font-serif);
        font-size: calc(17px * var(--main-content-scale, 1));
        color: var(--accent-gold);
        margin-bottom: 4px;
        font-weight: 600;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
    }
    
    .card-word-subtitle {
        font-size: calc(11px * var(--main-content-scale, 1));
        font-style: italic;
        color: var(--text-secondary);
        margin-bottom: 8px;
        font-family: var(--font-serif);
    }
    
    .card-definition-snippet {
        font-size: calc(12px * var(--main-content-scale, 1));
        color: var(--text-secondary);
        line-height: 1.4;
        margin-bottom: 12px;
        flex-grow: 1;
    }
    
    .card-read-btn {
        background: transparent;
        border: none;
        color: var(--accent-gold);
        font-size: calc(12px * var(--main-content-scale, 1));
        font-weight: 600;
        cursor: pointer;
        align-self: flex-start;
        padding: 0;
        transition: color 0.2s;
    }
    
    .card-read-btn:hover {
        color: var(--text-primary);
    }
    
    /* -- AFFICHAGE PC : GRANDES IMAGES COLLÉES (EFFET FOND D'ÉCRAN) -- */
    @media (min-width: 1024px) {
        .welcome-featured-container {
            column-gap: 0 !important; /* On colle les articles horizontalement */
            row-gap: 32px !important; /* Mais on garde une marge verticale */
        }
        
        .random-article-card {
            border-radius: 0; /* Plus de coins arrondis internes pour fusionner */
            border-left: none;
            border-right: none;
            border-top: 1px solid var(--border-glass);
            border-bottom: 1px solid var(--border-glass);
        }
        
        .random-article-card:hover {
            transform: translateY(-2px);
            z-index: 10;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            border: 1px solid rgba(197, 168, 128, 0.5);
        }
        
        .card-image-box {
            height: auto; /* Taille libre ! */
            aspect-ratio: 1 / 1; /* Format carré naturel des générations d'images */
        }
    }

/* Suite du bloc media query mobile */
@media (max-width: 1024px) {
    .category-filters {
        padding-bottom: 12px;
    }
    
    .word-list-container {
        max-height: none;
        flex: 1;
    }
    
    .word-detail {
        padding: 24px 20px 40px 20px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .newsletter-section {
        padding: 0 20px !important; /* Alignement parfait sur mobile/tablette */
    }
    
    .detail-word-title {
        font-size: 32px;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .expert-selectors {
        grid-template-columns: 1fr 1fr;
    }
    
    .mobile-back-btn {
        display: block;
    }
    
    .manifesto-grid, .support-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sidebar-nav {
        padding: 0 16px 12px 16px;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .detail-header-related {
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
    }

    /* Barre supérieure de contrôles adaptative sur mobile (Grid à double rangée) */
    .detail-top-bar {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: auto auto !important;
        gap: 12px 8px !important;
        padding-bottom: 12px !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    #prev-word-btn {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    
    .detail-top-bar .mobile-back-btn {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }
    
    #next-word-btn {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }
    
    .view-controls-bar {
        grid-column: 1 / span 3 !important;
        grid-row: 2 !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-left: 0 !important;
        gap: 6px !important;
    }

    .view-controls-bar .lang-selector {
        flex-shrink: 0 !important;
    }

    .view-controls-bar .font-size-controls {
        flex-shrink: 0 !important;
    }
}

/* CONTRÔLES DE VUE & TYPOGRAPHIE */

/* Structure de la barre de contrôles supérieure */
.detail-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
    gap: 16px;
}

.detail-top-bar .mobile-back-btn {
    margin-bottom: 0; /* Alignement */
}

.view-controls-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2px 8px;
    background: var(--bg-dark-card);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    background: var(--border-glass);
    color: var(--accent-gold);
}

.control-arrow-btn {
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: var(--accent-gold, #c5a880);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-arrow-btn:hover {
    background: var(--accent-gold, #c5a880);
    border-color: var(--accent-gold, #c5a880);
    color: #0b0c10;
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.5);
    transform: scale(1.08);
}

.universal-nav-arrows {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.universal-nav-arrows .control-arrow-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: var(--accent-gold, #c5a880);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.universal-nav-arrows .control-arrow-btn:hover {
    background: var(--accent-gold, #c5a880);
    color: #0b0c10;
    border-color: var(--accent-gold, #c5a880);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.5);
    transform: scale(1.08);
}

.subpage-nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 4px 0;
}

.subpage-nav-bar .mobile-back-btn {
    margin-bottom: 0;
    display: inline-flex !important;
}

.reader-nav-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.word-item-literal {
    font-size: 0.82em;
    font-style: italic;
    color: var(--accent-gold);
    line-height: 1.2;
    display: inline;
    word-wrap: break-word;
    font-weight: 400;
    opacity: 0.9;
    font-family: 'Playfair Display', Georgia, serif !important;
    margin-left: 5px;
    text-transform: none !important;
    font-variant: normal !important;
}

.detail-title-literal {
    font-size: 0.65em;
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 400;
    margin-left: 8px;
    font-family: 'Playfair Display', Georgia, serif !important;
    display: inline;
    text-transform: none !important;
    font-variant: normal !important;
}

.font-size-indicator {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    min-width: 38px;
    text-align: center;
}

.bible-references-bar {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-glass);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bible-references-icon {
    font-size: 14px;
}

.bible-references-title {
    font-weight: 600;
    color: var(--text-primary);
}

#detail-bible-references strong {
    color: var(--accent-gold);
    font-weight: 700;
}

/* Prononciation Audio (TTS) */
.title-with-audio {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audio-speak-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--accent-gold);
    border-radius: 16px;
    padding: 4px 12px;
    font-size: calc(11px * var(--main-content-scale, 1));
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.audio-speak-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--shadow-gold);
}

/* Application du Zoom proportionnel sur le contenu de lecture */
.detail-body {
    font-size: calc(1rem * var(--base-text-scale, 1) * var(--main-content-scale, 1));
    transition: font-size 0.2s ease;
}

.detail-body p,
.detail-body li,
.detail-body td,
.detail-body th,
.detail-body blockquote {
    font-size: calc(1em * var(--base-text-scale, 1));
}

/* Styles du Sélecteur de Langue */
.lang-selector {
    display: flex;
    gap: 4px;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2px 4px;
    background: var(--bg-dark-card);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active, .lang-btn:hover {
    background: var(--border-glass);
    color: var(--accent-gold);
}

/* Formulaire de Contact & Signalements */
#contact-view {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.contact-card {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto 30px !important;
    padding: 32px 28px !important;
    background: rgba(14, 18, 28, 0.95) !important;
    border: 1px solid rgba(197, 168, 128, 0.25) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.contact-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.contact-header-icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: inline-block;
}

.contact-direct-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-sizing: border-box;
    width: 100%;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.direct-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.direct-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.direct-item-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
}

.direct-item-value,
.direct-item-value:link,
.direct-item-value:visited {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-gold, #c5a880) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    word-break: break-all;
}

.direct-item-value:hover {
    color: #dfbe93 !important;
    text-decoration: underline !important;
}

.direct-item-links {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.direct-social-pill,
.direct-social-pill:link,
.direct-social-pill:visited {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--accent-gold) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.direct-social-pill:hover {
    background: rgba(197, 168, 128, 0.2);
    color: #fff !important;
    border-color: var(--accent-gold);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group.full-width {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--accent-gold);
    letter-spacing: 0.2px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: rgba(10, 14, 22, 0.7) !important;
    border: 1px solid rgba(197, 168, 128, 0.25) !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    font-size: 13.5px !important;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group select {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group select option {
    background-color: #0d121c;
    color: #f1f5f9;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.3) !important;
    background: rgba(14, 20, 32, 0.9) !important;
}

.form-actions {
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
}

.submit-btn {
    width: auto;
    min-width: 200px;
    background: linear-gradient(135deg, #c5a880, #dfbe93);
    color: #0b0c10 !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.25);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
    background: linear-gradient(135deg, #dfbe93, #eed2ac);
}

@media (max-width: 680px) {
    .contact-card {
        padding: 20px 14px !important;
        margin: 0 auto 20px !important;
    }
    .contact-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .contact-direct-box {
        grid-template-columns: 1fr !important;
        padding: 12px 14px !important;
    }
    .form-group.full-width {
        grid-column: span 1 !important;
    }
}

.form-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--font-sans);
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
}

.form-status.info {
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    color: var(--accent-gold);
}

.form-status.success {
    background: rgba(46, 117, 89, 0.1);
    border: 1px solid rgba(46, 117, 89, 0.3);
    color: #4CAF50;
}

.form-status.error {
    background: rgba(186, 45, 45, 0.1);
    border: 1px solid rgba(186, 45, 45, 0.3);
    color: #FF5252;
}

/* Responsive pour le formulaire */
@media (max-width: 1024px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-card {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .word-item {
        padding: 10px 12px;
    }
}

/* ==========================
   GLOBAL FOOTER
   ========================== */
.app-global-footer {
    width: 100%;
    padding: 36px 24px 28px;
    margin-top: 40px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(11, 12, 16, 0.85));
}

.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand-link:hover {
    opacity: 0.9;
}

.footer-brand-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent-gold-muted, #c5a880);
}

.footer-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.9;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.2);
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-icon-btn,
.footer-social-icon-btn:link,
.footer-social-icon-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: #c5a880 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-social-icon-btn:hover {
    background: rgba(197, 168, 128, 0.25);
    border-color: #dfbe93;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
}

.footer-tagline {
    font-size: 12.5px;
    color: #8e9bb0;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.footer-copyright {
    opacity: 0.85;
    font-size: 12px;
    color: #7b889b;
    margin-top: 2px;
}

.footer-contact-note {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

.footer-contact-link,
.footer-contact-link:link,
.footer-contact-link:visited {
    color: #c5a880 !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(197, 168, 128, 0.5);
    transition: all 0.2s ease;
}

.footer-contact-link:hover {
    color: #dfbe93 !important;
    border-bottom-style: solid;
    border-bottom-color: #dfbe93;
}

/* ==========================================
   MENU GLISSANT (DRAWER OVERLAY) & PDF GRIDS
   ========================================== */

/* Logo Row and Menu Toggle Button */
.logo-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
}

.sidebar .logo-img {
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--shadow-gold);
    object-fit: cover;
}

.sidebar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.menu-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--accent-gold);
    font-size: 20px;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.menu-toggle-btn:hover {
    background: rgba(197, 168, 128, 0.1);
    border-color: var(--accent-gold);
}

/* Sidebar Controls (Lang & Theme vertical stack) */
.sidebar-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.sidebar-lang-selector {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
}

.sidebar-lang-btn {
    background: transparent;
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--text-secondary);
    font-size: 9px;
    font-family: var(--font-sans);
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1.1;
    min-width: 26px;
    text-align: center;
}

.sidebar-lang-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.sidebar-lang-btn.active {
    background: var(--accent-gold);
    color: #0B101D;
    border-color: var(--accent-gold);
    box-shadow: 0 2px 6px rgba(197, 168, 128, 0.2);
}

/* Unified Theme Toggle Button */

#mobile-toggle-theme-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
    margin-left: 8px;
}

/* Sliding Menu Drawer */
.menu-drawer {
    --drawer-text-scale: 1; /* Variable pour zoomer le menu glissant mobile */
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-sidebar, #0B101D);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    z-index: 30000 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-drawer.open {
    left: 0;
}

/* Drawer Overlay (Blur background) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.6);
    backdrop-filter: blur(4px);
    z-index: 29999 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open,
.drawer-overlay.active {
    display: flex !important;
    justify-content: flex-end;
    opacity: 1 !important;
}

/* Drawer Header */
.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-logo {
  font-family: var(--font-serif);
  font-size: calc(22px * var(--drawer-text-scale, 1));
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.drawer-close-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* Drawer Navigation Buttons */
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.drawer-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: calc(14px * var(--drawer-text-scale, 1));
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.drawer-nav-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(197, 168, 128, 0.4);
}

.drawer-nav-btn.active {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.05));
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.08);
}

/* Drawer Footer */
.drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-glass);
    background-color: var(--bg-sidebar, #090D17);
}

/* PDF Grid Layout */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pdf-item-card {
    background-color: var(--bg-word-item);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.pdf-item-card:hover {
    background-color: var(--bg-dark-card);
    border-color: rgba(197, 168, 128, 0.3);
    transform: translateY(-3px);
}

.pdf-icon {
    font-size: calc(32px * var(--main-content-scale, 1));
    align-self: flex-start;
}

.pdf-item-card h3 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: calc(18px * var(--main-content-scale, 1));
    font-weight: 600;
}

.pdf-desc {
    font-size: calc(13px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.6;
}

.pdf-meta {
    font-size: calc(11px * var(--main-content-scale, 1));
    color: var(--accent-gold-muted);
    font-weight: 500;
}

.pdf-download-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-size: calc(13px * var(--main-content-scale, 1));
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pdf-download-btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
}

/* ==========================================
   ÉCOSYSTÈME POEMIA & AGAPE-LOGOS (GRID)
   ========================================== */

.ecosystem-main-card {
    max-width: 960px !important; /* Permet un affichage plus large côte à côte */
    width: 100%;
}

.ecosystem-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.ecosystem-card {
    position: relative;
    background-color: var(--bg-word-item);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition-smooth);
}

.ecosystem-card h3,
.partner-card-body h3 {
    font-size: calc(18px * var(--main-content-scale, 1));
}

.ecosystem-card p,
.partner-card-body p {
    font-size: calc(13px * var(--main-content-scale, 1));
}

/* Miroir de lueur : Violet pour Poemia (Technique & IA) */
.ecosystem-card.poemia-card {
    border: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.03);
}

.ecosystem-card.poemia-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    background-color: var(--bg-dark-card);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}

/* Miroir de lueur : Or pour Agape-Logos, Book, Donation (Académique & Soutien) */
.ecosystem-card.agape-card,
.ecosystem-card.book-card,
.ecosystem-card.donation-card {
    border: 1px solid rgba(197, 168, 128, 0.18);
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.03);
}

.ecosystem-card.agape-card:hover,
.ecosystem-card.book-card:hover,
.ecosystem-card.donation-card:hover {
    border-color: rgba(197, 168, 128, 0.35);
    background-color: var(--bg-dark-card);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(197, 168, 128, 0.08);
}

/* Miroir de lueur : Bleu pour les sites partenaires */
.ecosystem-card.partner-card {
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.03);
    padding: 0 !important;
    overflow: hidden;
}

.ecosystem-card.partner-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background-color: var(--bg-dark-card);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08);
}

.partner-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.partner-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-card.partner-card:hover .partner-card-img {
    transform: scale(1.06);
}

.partner-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 12px;
}

.ecosystem-surtitre {
    font-size: calc(10px * var(--main-content-scale, 1));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.ecosystem-card.poemia-card .ecosystem-surtitre {
    color: #C084FC; /* Violet clair */
}

.ecosystem-card.agape-card .ecosystem-surtitre {
    color: var(--accent-gold);
}

.ecosystem-card.partner-card .ecosystem-surtitre {
    color: #60A5FA; /* Bleu clair */
}

.ecosystem-card h2 {
    font-family: var(--font-serif);
    font-size: calc(24px * var(--main-content-scale, 1));
    font-weight: 700;
    margin-bottom: 4px;
}

.ecosystem-card.poemia-card h2 {
    color: #E9D5FF;
}

.ecosystem-card.agape-card h2 {
    color: var(--accent-gold);
}

.ecosystem-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ecosystem-section h4 {
    font-family: var(--font-sans);
    font-size: calc(14px * var(--main-content-scale, 1));
    font-weight: 600;
    color: var(--text-primary);
}

.ecosystem-section p {
    font-size: calc(13px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Boutons d'action Écosystème */
.ecosystem-btn {
    width: 100%;
    margin-top: auto;
    font-family: var(--font-serif);
    font-size: calc(13px * var(--main-content-scale, 1));
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.poemia-btn {
    background: transparent;
    border: 1px solid #A855F7;
    color: #E9D5FF;
}

.poemia-btn:hover {
    background-color: #A855F7;
    color: var(--bg-dark-deep);
}

.agape-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.agape-btn:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
}

/* Responsive pour l'écosystème */
@media (max-width: 1024px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* -------------------------------------
   COOKIE BANNER
------------------------------------- */
.prefs-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-tooltip);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -10px 30px var(--shadow-tooltip);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.prefs-banner:not(.hidden) {
    transform: translateY(0);
}

.prefs-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 1024px) {
    .prefs-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.prefs-text h4 {
    margin: 0 0 5px 0;
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-size: 16px;
}

.prefs-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.prefs-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.prefs-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refuse-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.refuse-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.accept-btn {
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    color: var(--bg-dark-deep);
}

.accept-btn:hover {
    background: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* -------------------------------------
   POEMIA VERSE TOOLTIP
------------------------------------- */
.verse-hover {
    color: var(--accent-gold);
    border-bottom: 1px dotted var(--accent-gold);
    cursor: help;
    transition: all 0.2s ease;
    position: relative;
}

.verse-hover:hover {
    background: rgba(212, 175, 55, 0.1);
}

.word-link {
    color: var(--accent-gold);
    border-bottom: 1px dashed var(--accent-gold);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.word-link:hover {
    background: rgba(212, 175, 55, 0.15);
    text-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
}

.verse-tooltip {
    position: fixed;
    z-index: 10000;
    width: 320px;
    background: var(--bg-tooltip);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-tooltip);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-tooltip);
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
    max-height: 400px;
    overflow-y: auto;
    font-size: calc(1rem * var(--base-text-scale, 1) * var(--tooltip-text-scale, 1));
}
.verse-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Permet le clic et le survol de la bulle */
    cursor: pointer;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-tooltip-header);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.tooltip-header:active {
    cursor: grabbing;
}

.tooltip-title {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: calc(14px * var(--base-text-scale, 1) * var(--tooltip-text-scale, 1));
    font-weight: 600;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tooltip-section-title {
    margin: 0 0 4px 0;
    font-size: calc(11px * var(--base-text-scale, 1) * var(--tooltip-text-scale, 1));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tooltip-section);
}

.tooltip-text {
    margin: 0;
    font-size: calc(13px * var(--base-text-scale, 1) * var(--tooltip-text-scale, 1));
    line-height: 1.5;
}

.poemia-text {
    color: var(--text-primary);
    font-style: italic !important;
    text-transform: none !important;
}

.paraphrase-text {
    color: var(--text-secondary);
    font-family: var(--font-serif-body) !important;
    font-style: italic !important;
    text-transform: none !important;
}

@media (max-width: 600px) {
    .verse-tooltip {
        width: 280px;
    }
}

/* -------------------------------------
   POEMIA APP MODAL
------------------------------------- */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.app-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 90%;
    max-width: 450px;
    max-height: 90vh; /* Limite la hauteur de la carte à 90% de l'écran */
    overflow-y: auto; /* Active le défilement vertical si nécessaire */
    background: rgba(25, 25, 28, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    padding: 24px;
    z-index: 10006;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal.hidden .modal-card {
    transform: scale(0.9);
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--accent-gold);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-icon {
    font-size: 24px;
}

.modal-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: 18px;
}

.modal-body {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-status {
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.modal-appeal {
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-style: italic;
    background: rgba(212, 175, 55, 0.05);
    border-left: 2px solid var(--accent-gold);
    padding: 10px 14px;
    margin: 16px 0 0 0;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-support-btn {
    background: var(--accent-gold);
    color: var(--bg-dark-deep) !important;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-support-btn:hover {
    background: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.modal-cancel-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* CAROUSEL IN MODAL */
.modal-carousel {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 320px; /* Un peu plus compact pour le PC */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    animation: fadeEffect 0.5s ease-in-out;
}

.carousel-slide.active {
    display: flex;
}

.carousel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: var(--accent-gold-muted);
    text-align: center;
    font-style: italic;
    min-height: 40px; /* Evite les sauts de hauteur entre les slides */
    line-height: 1.4;
    padding: 0 10px;
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dots .dot.active {
    background: var(--accent-gold);
    transform: scale(1.3);
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Ajustement de la hauteur sur les petits écrans */
@media (max-height: 800px) {
    .carousel-container {
        height: 240px; /* Plus court si l'écran est petit verticalement */
    }
}

/* LIGHTBOX POUR AGRANDIR LES CAPTURES */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10010; /* Au-dessus de la modale */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Legacy image-lightbox removed */

/* Curseur zoom-in sur les images du carousel pour indiquer qu'on peut cliquer */
.carousel-img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.carousel-img:hover {
    transform: scale(1.02);
}

/* ==========================
   MARQUEE TICKER & DONATION BUTTONS
   ========================== */
.marquee-ticker {
    width: 100%;
    overflow: hidden;
    background: #090202;
    border-top: 2px solid #2e0909;
    border-bottom: 2px solid #2e0909;
    padding: 10px 0;
    margin-top: 16px;
    margin-bottom: 2px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
    container-type: inline-size;
}

/* LED dot mask overlay sitting on top of scrolling text */
.marquee-ticker::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.65) 40%, transparent 45%);
    background-size: 3px 3px;
    pointer-events: none;
    z-index: 2;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 28s linear infinite;
    font-family: 'DotGothic16', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff3333; /* Glowing LED Red */
    text-transform: uppercase;
    text-shadow: 
        0 0 3px #ff0000,
        0 0 8px rgba(255, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translate3d(100cqw, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Boutons secondaires d'action PayPal (Contributeur Régulier) */
.action-btn.paypal-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.action-btn.paypal-btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.ecosystem-btn.paypal-btn-outline {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.ecosystem-btn.paypal-btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

/* ==========================
   NEWSLETTER SECTION
   ========================== */
.newsletter-section {
    width: 100%;
    max-width: 100% !important; /* Laisse la carte interne contrôler la largeur maximale */
    margin: 0 auto;
    padding: 0 40px;
    margin-top: calc(40px * var(--main-content-scale, 1));
    margin-bottom: 40px;
}

.newsletter-card {
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-glass);
    border-radius: calc(12px * var(--main-content-scale, 1));
    padding: calc(32px * var(--main-content-scale, 1));
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    background: linear-gradient(145deg, var(--bg-dark-deep), var(--bg-dark-card));
    transition: max-width 0.3s ease;
    max-width: 720px; /* Largeur par défaut */
}

/* --- ADAPTATION DYNAMIQUE DE LA NEWSLETTER --- */
#lexicon-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#ecosystem-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#blog-view:not(.hidden) ~ #newsletter-section .newsletter-card {
    max-width: 960px;
}

#detail-view:not(.hidden) ~ #newsletter-section .newsletter-card {
    max-width: 880px; /* 960px max-width of .word-detail - 80px horizontal padding */
}

#project-view:not(.hidden) ~ #newsletter-section .newsletter-card {
    max-width: 800px;
}

#welcome-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#pdf-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#links-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#contact-view:not(.hidden) ~ #newsletter-section .newsletter-card,
#help-view:not(.hidden) ~ #newsletter-section .newsletter-card {
    max-width: 720px;
}

.newsletter-title {
    font-family: var(--font-serif);
    font-size: calc(22px * var(--main-content-scale, 1));
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: calc(8px * var(--main-content-scale, 1));
    letter-spacing: 1px;
}

.newsletter-desc {
    font-family: var(--font-sans);
    font-size: calc(14px * var(--main-content-scale, 1));
    color: var(--text-secondary);
    margin-bottom: calc(24px * var(--main-content-scale, 1));
    line-height: 1.5;
}

.newsletter-form-grid {
    max-width: 600px; /* Reste compact au centre */
    width: 100%;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    flex-wrap: wrap; /* Permet un wrap fluide */
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    background-color: var(--bg-dark-input);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: calc(12px * var(--main-content-scale, 1)) calc(16px * var(--main-content-scale, 1));
    border-radius: calc(6px * var(--main-content-scale, 1));
    font-family: var(--font-sans);
    font-size: calc(14px * var(--main-content-scale, 1));
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.newsletter-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.2);
}

.newsletter-btn {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    border: none;
    padding: calc(12px * var(--main-content-scale, 1)) calc(24px * var(--main-content-scale, 1));
    border-radius: calc(6px * var(--main-content-scale, 1));
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: calc(14px * var(--main-content-scale, 1));
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(8px * var(--main-content-scale, 1));
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: var(--accent-gold-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.newsletter-status {
    margin-top: 16px;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: left;
    font-family: var(--font-sans);
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.newsletter-status.info {
    background-color: rgba(197, 168, 128, 0.1);
    border-left: 3px solid var(--accent-gold);
    color: var(--accent-gold);
}

.newsletter-status.success {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--accent-green-muted);
    color: var(--accent-green-muted);
}

.newsletter-status.error {
    background-color: rgba(185, 28, 28, 0.1);
    border-left: 3px solid var(--accent-red-muted);
    color: var(--accent-red-muted);
}

.newsletter-status.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .newsletter-input-group {
        flex-direction: column;
        gap: calc(10px * var(--main-content-scale, 1));
    }
    
    .newsletter-btn {
        width: 100%;
        padding: calc(14px * var(--main-content-scale, 1));
    }
    
    .newsletter-card {
        padding: calc(24px * var(--main-content-scale, 1)) calc(16px * var(--main-content-scale, 1));
    }
}

/* --- LEXIQUE ÉPURÉ STYLING --- */
.lexicon-row-main td {
    border-bottom: none !important;
}

.lexicon-row-occurrences {
    background: rgba(255, 255, 255, 0.015);
}

.lexicon-row-occurrences td {
    padding: 6px 16px 14px 16px !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15) !important;
}

.lexicon-verse-tag {
    transition: all 0.2s ease;
    display: inline-block;
    background: rgba(197, 168, 128, 0.12);
    border: 1px dashed rgba(197, 168, 128, 0.3);
    color: var(--accent-gold);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin: 2px;
    font-weight: 500;
    cursor: help;
}

.lexicon-verse-tag:hover {
    background: rgba(197, 168, 128, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lexicon-verse-tag.first-occurrence {
    border: 1px solid var(--accent-gold) !important;
    background: rgba(197, 168, 128, 0.3) !important;
    color: #fff !important;
    font-weight: bold !important;
    box-shadow: 0 0 4px rgba(197, 168, 128, 0.3);
}

.lexicon-verse-tag.first-occurrence:hover {
    background: rgba(197, 168, 128, 0.45) !important;
}

/* --- CENTRAGE DES VUES SECONDAIRES SUR GRAND ÉCRAN --- */
.project-screen {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 24px 20px;
    overflow-x: hidden;
}

.project-screen .welcome-card {
    margin: 24px auto;
    max-width: min(960px, 100%);
    width: 100%;
    box-sizing: border-box;
}

.lexicon-card {
    max-width: 960px !important;
}

/* --- LEXICON NAVIGATION & CONTROLS --- */
.lexicon-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 24px;
    background: var(--bg-dark-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: 0 8px 32px var(--shadow-gold);
}

.lexicon-search-box {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.lexicon-search-icon {
    position: absolute;
    left: 12px;
    color: var(--accent-gold);
    font-size: 14px;
    pointer-events: none;
}

.lexicon-search-box input {
    width: 100%;
    background-color: var(--bg-dark-input);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 10px 12px 10px 36px;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.lexicon-search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.25);
}

.lexicon-alphabet-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.lexicon-letter-btn {
    background-color: var(--bg-word-item);
    border: 1px solid var(--border-glass);
    color: var(--accent-gold-muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    min-width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lexicon-letter-btn:hover {
    background-color: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.lexicon-letter-btn.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark-deep);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--shadow-gold);
}

/* Surlignage au défilement / recherche */
@keyframes rowFlash {
    0% { background-color: rgba(197, 168, 128, 0.35); }
    100% { background-color: transparent; }
}

.row-scroll-highlight {
    animation: rowFlash 1.5s ease-out;
}

/* Responsive pour mobile */
@media (max-width: 1024px) {
    .lexicon-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .lexicon-search-box {
        max-width: 100%;
    }
    
    .lexicon-alphabet-bar {
        justify-content: center;
    }
}

/* Bouton de retour en haut flottant */
.lexicon-back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: calc(50vw + 160px); /* Centré sur la page de contenu (100vw - 320px sidebar) / 2 + 320px */
    transform: translateX(-50%) scale(0.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent; /* Intérieur 100% transparent pour voir la page à travers */
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold) !important;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.lexicon-back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
}

.lexicon-back-to-top-btn:hover {
    transform: translateX(-50%) scale(1.1);
    background-color: rgba(197, 168, 128, 0.15); /* Légère surbrillance au survol */
    border-color: #fff;
    color: #fff !important;
}

/* Alignement mobile pour le centrage */
@media (max-width: 1024px) {
    .lexicon-back-to-top-btn {
        left: 50%; /* Centré sur toute la largeur de l'écran sur mobile */
    }
}

/* Stabilotage des termes de recherche */
.search-highlight {
    background-color: #E2B25B !important; /* Or/Jaune plus prononcé et lumineux */
    color: #090D17 !important; /* Texte bleu nuit sombre pour un contraste maximum */
    border-radius: 2px !important;
    padding: 0 2px !important;
    font-weight: bold !important;
    border-bottom: 2px solid #C5A880 !important;
}

/* ==========================================
   CARTE CONCEPTUELLE INTERACTIVE (RÉSEAU DE LA GRÂCE)
   ========================================== */
#network-view {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(9, 13, 23, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 2500 !important; /* Par-dessus tout, y compris la sidebar */
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInOverlay 0.3s ease forwards;
}

#network-view.hidden {
    display: none !important;
}

@keyframes fadeInOverlay {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.network-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 100% !important;
    margin: 0;
    padding: 24px !important;
    box-sizing: border-box;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Panneau d'échappement flottant déplaçable */
.network-escape-panel {
    --panel-text-scale: 1;
    position: absolute;
    top: 24px;
    right: 24px;
    width: 220px;
    background-color: rgba(9, 13, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease;
    font-family: var(--font-sans);
    padding: 0;
    overflow: hidden;
}

.escape-btn {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 8px 12px;
    font-size: calc(11px * var(--panel-text-scale, 1));
    font-weight: 700;
    text-align: center;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    outline: none;
}

.escape-btn:hover {
    background-color: var(--accent-gold);
    color: #090d17;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.4);
}

/* Panneau de titre flottant et déplaçable */
.network-title-panel {
    --panel-text-scale: 1;
    position: absolute;
    top: 24px;
    left: 24px;
    width: 280px;
    background-color: rgba(9, 13, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease;
    font-family: var(--font-sans);
    padding: 0;
    overflow: hidden;
}

.panel-drag-handle {
    background-color: rgba(197, 168, 128, 0.15);
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
    padding: 8px 12px;
    font-family: var(--font-serif);
    font-size: calc(13px * var(--panel-text-scale, 1));
    font-weight: bold;
    color: var(--accent-gold);
    cursor: move;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-collapse-btn {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
}

.panel-collapse-btn:hover {
    color: #ffffff;
    transform: scale(1.2);
}

.panel-content {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.panel-collapsed .panel-content {
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    border-top: none !important;
}

.network-instructions-embedded {
    font-size: calc(10px * var(--panel-text-scale, 1));
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding: 6px 14px 10px 14px;
    line-height: 1.6;
}

.network-title-desc {
    font-size: calc(11px * var(--panel-text-scale, 1));
    color: var(--text-secondary);
    padding: 12px 14px 6px 14px;
    margin: 0;
    line-height: 1.4;
}

.network-title-panel .network-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 14px 14px;
    margin: 0;
}

.network-title-panel .legend-item {
    font-size: calc(11px * var(--panel-text-scale, 1));
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot.legend-spiritual {
    background-color: var(--accent-gold);
    box-shadow: 0 0 6px var(--accent-gold);
}

.legend-dot.legend-structure {
    background-color: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
}

.legend-dot.legend-destiny {
    background-color: #8b5cf6;
    box-shadow: 0 0 6px #8b5cf6;
}

.legend-dot.legend-places {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.network-container-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    background-color: transparent;
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
    box-shadow: none;
}

/* Instructions de navigation en haut */
.network-instructions {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 16px;
    background-color: rgba(9, 13, 23, 0.8);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 10px;
    color: var(--text-secondary);
    z-index: 10;
    pointer-events: none;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

#network-canvas-container {
    width: 100%;
    height: 100%;
    cursor: grab;
}

#network-canvas-container:active {
    cursor: grabbing;
}

#network-canvas-container svg {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
}

/* Nœuds (mots) */
.node {
    cursor: pointer;
    outline: none;
}

.node circle {
    fill: #090d17;
    stroke: var(--accent-gold);
    stroke-width: 1.5;
    transition: stroke-width 0.2s ease, r 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 0 3px rgba(197, 168, 128, 0.3));
}

.node:hover circle, .node.active circle {
    stroke-width: 2.5;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(197, 168, 128, 0.7));
}

.node text {
    fill: #f3f4f6;
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: central;
    letter-spacing: 0.3px;
    transition: font-size 0.2s ease, fill 0.2s ease;
}

.node:hover text, .node.active text {
    fill: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

/* Catégories de couleurs de bordure pour les nœuds */
.node.category-spiritual circle {
    stroke: var(--accent-gold); /* Concept : Or */
}
.node.category-structure circle {
    stroke: #3b82f6; /* Structures : Bleu */
}
.node.category-destiny circle {
    stroke: #8b5cf6; /* Temps/Destin : Violet */
}
.node.category-places circle {
    stroke: #10b981; /* Lieux : Vert émeraude */
}

/* Liens (connexions) */
.link {
    stroke: rgba(197, 168, 128, 0.12);
    stroke-width: 1;
    stroke-dasharray: none;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.link.highlighted {
    stroke: rgba(197, 168, 128, 0.65);
    stroke-width: 2;
}

/* --- EFFETS DE SURBRILLANCE NEURONALE --- */
.node, .link {
    transition: opacity 0.15s ease, stroke-width 0.15s ease, stroke 0.15s ease;
}

/* Atténuation des éléments non connectés */
.node.dimmed {
    opacity: 0.06 !important;
}

.link.dimmed {
    opacity: 0.012 !important;
}

/* Degré 1 : Connexions directes */
.node.connected-1 circle {
    stroke-width: 2.5;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(197, 168, 128, 0.8));
}

.node.connected-1 text {
    fill: #ffffff;
    font-weight: bold;
}

/* Couleur émeraude éclatante pour le 1er degré de connexions si lié à la Grâce */
.node.connected-1.related-grace circle {
    stroke: #10B981 !important;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.9));
}

/* Degré 2 : Voisins secondaires (amis de mes voisins) */
.node.connected-2 {
    opacity: 0.65 !important;
}

.node.connected-2 circle {
    stroke-width: 1.8;
    filter: drop-shadow(0 0 4px rgba(197, 168, 128, 0.4));
}

.link.connected-2 {
    stroke: rgba(197, 168, 128, 0.35);
    stroke-width: 1.2;
}

.link.highlighted-emerald {
    stroke: rgba(16, 185, 129, 0.65);
    stroke-width: 2.5;
}

/* Contrôles de zoom flottants */
.network-zoom-controls {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2050;
}

.network-controls-separator {
    width: 20px;
    height: 1px;
    background-color: rgba(197, 168, 128, 0.25);
    margin: 4px auto;
}

.network-lang-btn {
    font-size: 10px !important;
    font-weight: bold !important;
}

.network-lang-btn.active {
    background-color: var(--accent-gold) !important;
    color: #090d17 !important;
    border-color: var(--accent-gold) !important;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(9, 13, 23, 0.9);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    outline: none;
}

.zoom-btn:hover {
    background-color: var(--accent-gold);
    color: #090d17;
    border-color: var(--accent-gold);
}

/* Panneau d'information contextuel */
.network-info-panel {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 270px;
    background-color: rgba(9, 13, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--font-sans);
    opacity: 1;
    transform: translateY(0);
    padding: 0;
    overflow: hidden;
}

.network-info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

#network-info-title {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 2px;
    padding-left: 14px;
    padding-right: 14px;
    margin-top: 12px;
}

#network-info-category {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 8px;
    padding-left: 14px;
    padding-right: 14px;
}

#network-info-def {
    font-size: 11.5px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 14px;
    padding-left: 14px;
    padding-right: 14px;
}

#network-info-link-btn {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
    margin-bottom: 14px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- CHEMIN DE CONNEXIONS NEURONALES ACTIF --- */
.node.path-active circle {
    stroke-width: 3.5 !important;
    stroke: var(--accent-gold) !important;
    filter: drop-shadow(0 0 12px var(--accent-gold)) !important;
}

/* Si lié à la Grâce au sein du chemin */
.node.path-active.related-grace circle {
    stroke: #10B981 !important;
    filter: drop-shadow(0 0 14px #10B981) !important;
}

.node.path-active text {
    fill: #ffffff !important;
    font-weight: 900 !important;
    font-size: 12.5px !important;
}

/* Liens du chemin actif : très brillants et épais */
.link.path-link-active {
    stroke: var(--accent-gold) !important;
    stroke-width: 3.5 !important;
    opacity: 0.95 !important;
    filter: drop-shadow(0 0 4px var(--accent-gold));
}

.link.path-link-active.highlighted-emerald {
    stroke: #10B981 !important;
    stroke-width: 4px !important;
    filter: drop-shadow(0 0 5px #10B981);
}

/* Panneau d'aide et d'astuces déplaçable */
.network-help-panel {
    --panel-text-scale: 1;
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 280px;
    background-color: rgba(9, 13, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--font-sans);
    padding: 0;
    overflow: hidden;
}

.network-help-panel.hidden {
    display: none !important;
}

.scrollable-panel-content {
    max-height: 220px;
    overflow-y: auto;
    padding: 14px;
    color: var(--text-primary);
    font-size: calc(11.5px * var(--panel-text-scale, 1));
    line-height: 1.5;
}

.scrollable-panel-content h5 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: calc(13px * var(--panel-text-scale, 1));
    margin-top: 0;
    margin-bottom: 6px;
}

.scrollable-panel-content h6 {
    font-family: var(--font-serif);
    color: var(--accent-gold-muted);
    font-size: calc(12px * var(--panel-text-scale, 1));
    margin-top: 12px;
    margin-bottom: 4px;
}

.scrollable-panel-content p {
    margin-top: 0;
    margin-bottom: 8px;
}

.scrollable-panel-content ul {
    margin: 0;
    padding-left: 16px;
}

.scrollable-panel-content li {
    margin-bottom: 6px;
}

.scrollable-panel-content code {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: calc(10.5px * var(--panel-text-scale, 1));
}

/* Bouton de fermeture croix X pour les panels */
.panel-close-x-btn {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
}

.panel-close-x-btn:hover {
    color: #ffffff;
    transform: scale(1.2);
}

/* La petite lampe raccourci déplaçable */
.network-help-lamp {
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(9, 13, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.network-help-lamp:hover {
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(197, 168, 128, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.network-help-lamp.hidden {
    display: none !important;
}

/* Masquage de l'en-tête et de la sidebar globale quand le réseau est affiché */
.app-container:has(#network-view:not(.hidden)) .mobile-header,
.app-container:has(#network-view:not(.hidden)) .sidebar {
    display: none !important;
}

.app-container:has(#network-view:not(.hidden)) .main-content {
    margin-left: 0 !important;
    padding-top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
}

.app-container:has(#network-view:not(.hidden)) .network-container-wrapper {
    height: 100vh !important;
    margin-top: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Écran d'accueil d'invitation au Réseau */
.network-welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 6, 12, 0.45);
    backdrop-filter: blur(2.5px);
    -webkit-backdrop-filter: blur(2.5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2400;
    transition: opacity 0.4s ease;
}

.network-welcome-overlay.hidden {
    display: none !important;
}

.network-welcome-card {
    background-color: rgba(9, 13, 23, 0.95);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 32px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 168, 128, 0.25);
    animation: welcomeCardFadeIn 0.5s ease-out;
}

@keyframes welcomeCardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.network-welcome-card h2 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.welcome-quote {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent-gold-muted);
    font-size: 13.5px;
    margin-top: 0;
    margin-bottom: 20px;
}

.welcome-desc {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Style interactif pour le pied de page cliquable */
.clickable-footer-network {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-footer-network:hover {
    background-color: rgba(197, 168, 128, 0.05);
    border-color: var(--accent-gold);
}

.clickable-footer-network:hover .footer-logo span {
    color: var(--accent-gold);
    text-shadow: 0 0 6px rgba(197, 168, 128, 0.4);
}

.welcome-actions-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* S'assurer que le bouton d'échappement a une apparence propre */
.network-welcome-card .escape-btn {
    border: 1px solid var(--accent-gold-muted) !important;
    background-color: transparent !important;
    color: var(--accent-gold) !important;
}

.network-welcome-card .escape-btn:hover {
    background-color: var(--accent-gold-muted) !important;
    color: #ffffff !important;
}

/* Style aéré pour les fiches de détails de concepts dynamiques */
.network-info-panel-dynamic {
    --panel-text-scale: 1;
    width: 280px !important;
    font-size: calc(12px * var(--panel-text-scale, 1)) !important;
}

.network-info-panel-dynamic .panel-content {
    padding: 14px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.network-info-panel-dynamic .panel-content h4 {
    font-family: var(--font-serif) !important;
    color: var(--accent-gold) !important;
    font-size: 1.15em !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.network-info-panel-dynamic .panel-content .info-category {
    font-size: 0.7em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.network-info-panel-dynamic .panel-content .info-def {
    font-size: 0.9em !important;
    color: var(--text-primary) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    margin-bottom: 6px !important;
}

.network-info-panel-dynamic .panel-content .read-study-btn {
    width: 100% !important;
    padding: 6px 12px !important;
    font-size: 0.8em !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.welcome-actions-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    width: 100%;
    box-sizing: border-box;
}

.welcome-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Midnight Theme (Sombre) */
.welcome-action-btn {
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.welcome-action-btn.welcome-enter-btn {
    background-color: var(--accent-gold) !important;
    border: 1px solid var(--accent-gold) !important;
    color: #090D17 !important;
}

.welcome-action-btn.welcome-enter-btn:hover {
    background-color: #dfbe93 !important;
    border-color: #dfbe93 !important;
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.4);
}

.welcome-action-btn.welcome-escape-btn {
    background-color: transparent !important;
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

.welcome-action-btn.welcome-escape-btn:hover {
    background-color: var(--accent-gold) !important;
    color: #090D17 !important;
}

/* ==========================================================================
   LECTEUR AUDIO DANS LE TOOLTIP DE VERSET
   ========================================================================== */
.tooltip-audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(197, 168, 128, 0.15);
}

.tooltip-audio-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 12px;
    padding: 3px 10px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.tooltip-audio-btn:hover {
    background-color: var(--accent-gold);
    color: #121824;
}

.tooltip-audio-progress-container {
    flex: 1;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.tooltip-audio-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-gold);
    border-radius: 1.5px;
    transition: width 0.1s linear;
}

/* ==========================================================================
   LECTEUR AUDIO FLOTTANT GLOBAL (STYLE SPOTIFY/SUNO)
   ========================================================================== */
.global-audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: rgba(18, 24, 36, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, gap 0.3s ease, opacity 0.3s, transform 0.3s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: grab;
}

.global-audio-player:active {
    cursor: grabbing;
}

.global-audio-player.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

/* Actions Header */
.player-header-actions {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.player-action-btn, .player-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.player-action-btn:hover, .player-close-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* Infos du morceau */
.player-main-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 54px; /* Évite la superposition avec les boutons de réduction/fermeture */
}

/* Pochette d'image (Cover Art) */
.player-cover-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.2);
    background-color: var(--bg-dark-deep);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* ==========================================================================
   MODE COMPACT / BARRE MINIMUM DE FONCTION (DISPOSITION HORIZONTALE ULTRA-FINE)
   ========================================================================== */
.global-audio-player.compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 320px;
    max-width: 95vw;
    height: 48px;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 12px;
}

.global-audio-player.compact .player-subtitle,
.global-audio-player.compact .player-version-selector,
.global-audio-player.compact #player-progress-container,
.global-audio-player.compact #player-repeat-btn,
.global-audio-player.compact #player-selah-btn,
.global-audio-player.compact .player-volume-container,
.global-audio-player.compact #player-mute-btn {
    display: none !important;
}

.global-audio-player.compact .player-main-info {
    flex: 1;
    padding-right: 0;
    gap: 6px;
    min-width: 0;
}

.global-audio-player.compact .player-cover-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.global-audio-player.compact .player-text-details {
    flex: 1;
    min-width: 0;
}

.global-audio-player.compact .player-title {
    font-size: 10.5px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-audio-player.compact .player-controls-row {
    margin-top: 0;
    width: auto;
    gap: 4px;
    flex-shrink: 0;
}

.global-audio-player.compact .player-ctrl-btn {
    padding: 4px;
}

.global-audio-player.compact .player-header-actions {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.global-audio-player.compact .player-header-actions button {
    font-size: 11px;
}

.global-audio-player.compact .player-close-btn {
    font-size: 14px;
}

/* --- Curseur de Volume Popover --- */
.player-volume-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volume-slider-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    background: var(--bg-dark-card, rgba(30, 30, 30, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0;
    width: 32px;
    height: 105px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Pont de survol (Hover Bridge) */
.volume-slider-popover::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.player-volume-container:hover .volume-slider-popover {
    display: flex;
}

#player-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    transform: rotate(-90deg);
    cursor: pointer;
    margin: 0;
    padding: 0;
}

#player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gold, #C5A880);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease;
}

#player-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Support Firefox */
#player-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gold, #C5A880);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Bouton Selah (Pause Méditation) --- */
.player-ctrl-btn.active-selah {
    color: #121824 !important;
    background-color: var(--accent-gold, #C5A880) !important;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.45);
    font-weight: bold;
}

.player-ctrl-btn.active-selah:hover {
    color: #121824 !important;
    background-color: #dfbe91 !important;
    transform: scale(1.08);
}

.player-text-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Empêche le débordement de texte */
}

.player-title {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.player-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Sélecteur de Version */
.player-version-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-ver-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-ver-btn.active {
    background-color: var(--accent-gold);
    color: #121824;
}

.player-ver-btn:hover:not(.active) {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Ligne des contrôles */
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
}

.player-ctrl-btn:hover {
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.player-ctrl-btn svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.tooltip-audio-btn svg {
    display: inline-block;
    width: 10px;
    height: 10px;
    fill: currentColor;
    margin-right: 6px;
    vertical-align: middle;
}

.player-ctrl-btn.active-loop {
    color: #121824 !important;
    background-color: var(--accent-gold, #C5A880) !important;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.45);
}

.player-ctrl-btn.active-loop:hover {
    color: #121824 !important;
    background-color: #dfbe91 !important;
    transform: scale(1.08);
}

.player-play-btn {
    background-color: var(--accent-gold);
    color: #121824;
    font-size: 13px;
    width: 30px;
    height: 30px;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.2);
}

.player-play-btn:hover {
    color: #121824;
    background-color: #dfbe91;
    transform: scale(1.05);
}

/* Progression */
.player-progress-container {
    flex: 1;
    height: 10px; /* Augmenté de 4px à 10px pour un meilleur confort de préhension */
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-gold);
    border-radius: 5px;
    transition: width 0.1s linear;
}

/* --- Thème Parchemin --- */

/* --- Adaptation mode Parchemin pour la modale d'accueil --- */

/* Animations */
@keyframes pulseAudio {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Sous-onglets de documentation */
.doc-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.doc-subnav::-webkit-scrollbar {
    height: 4px;
}

.doc-subnav::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.2);
    border-radius: 2px;
}

.doc-subnav-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-subnav-btn:hover {
    color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.05);
}

.doc-subnav-btn.active {
    color: var(--bg-dark-deep) !important;
    background-color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
    font-weight: bold;
}

.subtab-content {
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivité Mobile */
@media (max-width: 600px) {
    .global-audio-player {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        padding: 10px 12px;
        gap: 8px;
    }

    /* Correctifs pour le lecteur en état docked sur mobile */
    .global-audio-player.docked {
        width: 300px !important;
        height: 110px !important;
        left: auto !important;
        right: 0 !important;
        bottom: 25px !important; /* Rehaussé pour éviter la coupe en bas par la navigation système tactile */
        transform: translateX(calc(100% - 50px)) !important;
        border-radius: 16px 0 0 16px !important;
        box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    .global-audio-player.docked:hover {
        transform: translateX(calc(100% - 56px)) !important;
    }
    
    .global-audio-player.docked .player-dock-tab {
        width: 50px !important;
        border-radius: 16px 0 0 16px !important;
        padding: 12px 0 !important;
    }
}

/* ==========================================================================
   REFONTE ERGONOMIQUE DU LECTEUR AUDIO (DOCKING, DRAWER, PULSATION)
   ========================================================================== */

/* États de Docking du Lecteur */
.global-audio-player.docked {
    transform: translateX(calc(100% - 50px));
    cursor: pointer;
    opacity: 0.9;
    padding: 0 !important;
    gap: 0 !important;
    width: 400px;
    height: 120px;
    overflow: hidden;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.2);
}

.global-audio-player.docked:hover {
    opacity: 1;
    transform: translateX(calc(100% - 56px));
}

.global-audio-player.docked > *:not(.player-dock-tab) {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Onglet Dock */
.player-dock-tab {
    display: none;
}

.global-audio-player.docked .player-dock-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(180deg, rgba(212, 185, 145, 0.98), rgba(180, 148, 105, 0.98));
    color: #121824;
    cursor: pointer;
    border-radius: 16px 0 0 16px;
    padding: 10px 0;
    box-sizing: border-box;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.global-audio-player.docked .player-dock-tab:hover {
    background: linear-gradient(180deg, #E6CA9F, #C5A880);
    box-shadow: -5px 0 16px rgba(0, 0, 0, 0.4);
}

.player-dock-tab .dock-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    animation: rotateNote 4s ease-in-out infinite;
    transition: transform 0.2s ease;
}

@keyframes rotateNote {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.08); }
    100% { transform: rotate(0deg) scale(1); }
}

.player-dock-tab .dock-ear {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.player-dock-tab .dock-selah {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease;
}

.player-dock-tab:hover .dock-icon,
.player-dock-tab:hover .dock-ear,
.player-dock-tab:hover .dock-selah {
    transform: scale(1.15);
}

/* Pulsation Respiration */
@keyframes heartbeat-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7), -2px 0 10px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 20px 8px rgba(197, 168, 128, 0.35), -2px 0 10px rgba(0, 0, 0, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7), -2px 0 10px rgba(0, 0, 0, 0.25);
    }
}

.player-dock-tab.pulse-active {
    animation: heartbeat-glow 3s ease-in-out infinite;
}

/* Tiroir d'Options (Dépliant vers le haut) */
.player-options-drawer {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    right: 0;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(18, 24, 36, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: 16px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.player-options-drawer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('images/logo.png');
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: 140px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.player-options-drawer.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.player-options-drawer .drawer-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    font-weight: 700;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 8px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.player-options-drawer .drawer-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-opt-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    color: #cbd5e1;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.drawer-opt-btn:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: rgba(197, 168, 128, 0.18);
    border-left-color: var(--accent-gold);
    color: #ffffff;
}

.opt-medallion {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.15);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.drawer-opt-btn:hover .opt-medallion {
    background: rgba(197, 168, 128, 0.2);
    border-color: rgba(197, 168, 128, 0.35);
    transform: scale(1.05);
}

.opt-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.opt-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.opt-subtitle {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

.drawer-opt-btn:hover .opt-title {
    color: #ffffff;
}

.drawer-opt-btn:hover .opt-subtitle {
    color: #cbd5e1;
}

/* ==========================================================================
   ONGLETS ET ACTUALITÉS DE LA MODALE D'ACCUEIL (TABS & NEWS)
   ========================================================================== */
.welcome-tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding: 0 4px 12px 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    cursor: grab;
    user-select: none;
}

.welcome-tabs:active {
    cursor: grabbing;
}

.welcome-tabs::-webkit-scrollbar {
    display: none;
}

@media (max-width: 600px) {
    .welcome-tabs {
        padding-left: 6px;
        padding-right: 6px;
    }
    .welcome-tab-btn {
        font-size: 0.82rem;
        padding: 6px 13px;
    }
}

.welcome-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 20px;
    padding: 7px 16px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.welcome-tab-btn:hover {
    color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.12);
    border-color: var(--accent-gold);
}

.welcome-tab-btn.active {
    color: #0b0c10 !important;
    background: linear-gradient(135deg, #c5a880, #dfbe93) !important;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.35);
}

.news-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 7px;
    height: 7px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    display: none;
}

.news-dot.active {
    display: block;
}

.welcome-tab-content.hidden {
    display: none;
}

.welcome-news-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 24px;
}

.news-main-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
    padding-bottom: 6px;
    margin-top: 0;
    margin-bottom: 4px;
}

/* Section Intendance & Témoignage */
.steward-header-card {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.12), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 22px;
    text-align: center;
}

.steward-main-title {
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-size: 21px;
    margin: 0 0 8px 0;
}

.steward-subtitle {
    font-size: 14px;
    color: var(--text-secondary, #94a3b8);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.steward-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-left: 3px solid var(--accent-gold);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 18px;
    line-height: 1.75;
    font-size: 14.5px;
    color: var(--text-primary);
    text-align: left;
}

.steward-block h4 {
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-size: 17px;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: block;
}

.steward-anecdote-box {
    background: rgba(197, 168, 128, 0.07);
    border: 1px dashed rgba(197, 168, 128, 0.35);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 14px 0;
    font-style: italic;
    color: #f1f5f9;
    line-height: 1.7;
}

.steward-conclusion-card {
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--accent-gold);
    font-family: var(--font-serif);
}

/* Vignettes interactives des 22 lettres du Psaume 119 */
.letter-study-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    background: rgba(197, 168, 128, 0.06);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    transition: background 0.2s, border-color 0.2s;
}

.letter-study-badge:hover {
    background: rgba(197, 168, 128, 0.1);
    border-color: rgba(197, 168, 128, 0.4);
}

.letter-study-badge img {
    width: 76px;
    height: 76px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(197, 168, 128, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.letter-study-badge img:hover {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(197, 168, 128, 0.5);
    border-color: var(--accent-gold);
}

.letter-study-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.letter-study-badge-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateX(2px);
}

/* =========================================================================
   📜 ENLUMINURES SACRÉES MÉDIÉVALES — PSAUME 119 (VUE BIBLE NATIONALE)
   ========================================================================= */
.ps119-strophe-paragraph {
    clear: both;
    margin-top: 26px !important;
    min-height: 98px;
    position: relative;
}

.ps119-strophe-paragraph:first-child {
    margin-top: 6px !important;
}

.ps119-drop-illumination {
    float: left;
    margin: 4px 16px 8px 0;
    width: 82px;
    text-align: center;
    user-select: none;
    display: inline-block;
}

.ps119-illumination-frame {
    width: 82px;
    height: 82px;
    border-radius: 5px;
    overflow: hidden;
    border: 1.5px solid var(--accent-gold);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 10px rgba(197, 168, 128, 0.25);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    background: #0d0d0f;
    display: block;
    position: relative;
}

.ps119-illumination-frame:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.75), 0 0 18px rgba(197, 168, 128, 0.5);
    border-color: #f6e6d0;
}

.ps119-illumination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.25s ease;
}

.ps119-illumination-frame:hover .ps119-illumination-img {
    filter: brightness(1.08) contrast(1.04);
}

.ps119-illumination-caption {
    display: block;
    font-family: var(--font-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 5px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

@media (max-width: 600px) {
    .ps119-drop-illumination {
        width: 68px;
        margin: 2px 12px 6px 0;
    }
    .ps119-illumination-frame {
        width: 68px;
        height: 68px;
    }
    .ps119-illumination-caption {
        font-size: 10px;
        letter-spacing: 0.4px;
        margin-top: 4px;
    }
    .ps119-strophe-paragraph {
        min-height: 84px;
        margin-top: 20px !important;
    }
}

.news-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-gold);
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.news-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
}

.news-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.news-item p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.news-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.1);
}

.news-guide-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(197, 168, 128, 0.15);
}

.news-image-caption {
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
    font-style: italic;
    text-align: center;
}

/* Raccourci volume mobile actif */
.player-volume-container.active .volume-slider-popover {
    display: flex !important;
}

/* --- Flip Card 3D pour les volumes musicaux --- */
.flip-card {
    background-color: transparent;
    width: 140px;
    height: 140px;
    perspective: 1000px;
    margin: 0 auto 16px auto;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(197, 168, 128, 0.35);
    overflow: hidden;
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.volume-meta {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* ==========================================================================
   CORRECTIFS ERGONOMIQUES ET TACTILES (SMARTPHONE)
   ========================================================================== */

/* 1. Sécurité absolue : Cacher l'onglet du dock quand le lecteur est ouvert */
.global-audio-player:not(.docked) .player-dock-tab {
    display: none !important;
}

/* 2. Optimisation des cibles tactiles pour mobile (écrans <= 768px) */
@media (max-width: 768px) {
    /* Agrandir la zone de clic des boutons de contrôle (Play, Pause, Suivant, Précédent, Boucle, etc.) */
    .player-ctrl-btn, 
    .player-play-btn,
    .player-ver-btn {
        position: relative;
    }
    
    /* Pseudo-élément invisible étendant la zone tactile à 44px minimum */
    .player-ctrl-btn::after, 
    .player-ver-btn::after {
        content: '';
        position: absolute;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        z-index: 5;
    }
    
    .player-play-btn::after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: 5;
    }
    
    /* Améliorer le z-index pour éviter les captures d'événements parasites */
    .global-audio-player {
        z-index: 20010 !important;
    }
    
    .player-controls-row {
        position: relative;
        z-index: 2;
    }
}

.filter-btn {
    position: relative;
}
.filter-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-dark-card, #1e293b);
    color: var(--accent-gold, #c5a880);
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    border: 1px solid var(--accent-gold, #c5a880);
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Exergue Éditrice Journalistique (Pullquote / Epigraphe) */
blockquote.editorial-exergue, .study-header-banner {
    margin: 20px 0 28px 0 !important;
    padding: 14px 22px !important;
    border-left: 3px solid var(--accent-gold, #C5A880) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    background: rgba(197, 168, 128, 0.04) !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
}

blockquote.editorial-exergue h2, .study-header-banner h2 {
    color: var(--accent-gold, #C5A880) !important;
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.25rem !important;
    font-style: italic !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em !important;
}

blockquote.editorial-exergue p, .study-header-banner p {
    display: none !important;
}

/* ==========================================================================
   DAY CARDS & MEDITATION BOXES (DUAL THEME COMPATIBILITY)
   ========================================================================== */
.day-card {
    background-color: var(--bg-dark-card, #1e293b);
    border-left: 4px solid var(--accent-gold, #c5a880);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.day-card h3 {
    color: var(--accent-gold, #c5a880) !important;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 1.3rem;
    margin-top: 0;
}

.meditation-box {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--accent-gold, #c5a880);
    padding: 14px 18px;
    border-radius: 6px;
    color: var(--text-primary, #f1f5f9);
    font-style: italic;
    margin-top: 14px;
    line-height: 1.6;
}

/* Hebrew Pey Badge pour la Paraphrase du Fils */
.hebrew-pey-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.25), rgba(166, 124, 82, 0.25));
    color: var(--accent-gold, #C5A880);
    border: 1px solid rgba(197, 168, 128, 0.45);
    border-radius: 50%;
    font-family: 'Rubik', 'Segoe UI', 'Arial', sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.word-item-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.word-item-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}

.word-item-title {
    font-family: var(--font-serif);
    font-size: calc(14px * var(--sidebar-text-scale, 1));
    font-weight: 600;
    color: var(--accent-gold);
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal;
    line-height: 1.3;
}

.word-item-literal {
    font-size: calc(12px * var(--sidebar-text-scale, 1));
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 3px;
    line-height: 1.35;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    display: block;
}

.word-item-strong-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-start;
    gap: 3px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-top: 0;
    max-width: 90px;
}

.word-item-strong-stack .strong-tag,
.word-item-strong {
    font-size: calc(9.5px * var(--sidebar-text-scale, 1));
    color: var(--text-secondary);
    background-color: var(--bg-dark-input);
    border: 1px solid var(--border-glass);
    padding: 1.5px 5px;
    border-radius: 4px;
    font-family: monospace;
    white-space: nowrap;
    text-align: right;
}

/* ==========================================================================
   LIGHTBOX MODAL FOR IMAGE INSPECTION (ZOOM INTERACTIF V4)
   ========================================================================== */
.image-container img {
    cursor: zoom-in !important;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
}

.image-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox-modal.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* Fond d'écran sombre protecteur et élégant avec flou */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Conteneur flottant minimaliste */
.lightbox-content {
    position: relative;
    z-index: 10001;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    max-width: 85vw !important;
    max-height: 90vh !important;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 78vw;
    max-height: 65vh;
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(197, 168, 128, 0.35);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Bloc Légende séparé, ajusté STRICTEMENT à la même largeur dynamique que l'image */
.lightbox-caption-box {
    background: rgba(15, 22, 38, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 12px auto 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    text-align: center;
    transition: width 0.15s ease, max-width 0.15s ease;
}

.lightbox-caption {
    margin: 0;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--accent-gold, #c5a880);
    text-align: center;
    line-height: 1.45;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.lightbox-ai-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 3px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    font-size: 0.74rem;
    color: #10b981;
    font-family: var(--font-sans, Inter, sans-serif);
    font-weight: 500;
}

.lightbox-ai-tag.hidden {
    display: none !important;
}

/* Responsive Mobile & Smartphone */
@media (max-width: 768px) {
    .lightbox-content img {
        max-width: 82vw;
        max-height: 52vh;
        border-radius: 10px;
    }

    .lightbox-caption-box {
        padding: 8px 12px;
    }

    .lightbox-caption {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

/* -------------------------------------
   FOOTER LEGAL BUTTON & SEPARATOR
------------------------------------- */
.footer-legal-separator {
    margin: 0 8px;
    color: var(--accent-gold, #c5a880);
    opacity: 0.6;
}

.footer-legal-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: var(--accent-gold, #c5a880);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-legal-btn:hover {
    opacity: 1;
    color: #ffffff;
}

/* -------------------------------------
   MODAL MENTIONS LÉGALES & TRANSPARENCE IA
------------------------------------- */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.legal-modal.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.legal-modal-container {
    position: relative;
    z-index: 10001;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    background: #141619;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(197, 168, 128, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e2e8f0;
    animation: legalModalAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes legalModalAppear {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.legal-modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-modal-icon {
    font-size: 1.3rem;
}

.legal-modal-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent-gold, #c5a880);
}

.legal-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.legal-modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.legal-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
}

.legal-section h4 {
    margin: 0 0 10px 0;
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-section p {
    margin: 0 0 8px 0;
    color: #cbd5e1;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--accent-gold, #c5a880);
    text-decoration: underline;
}

.ai-transparency-box {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.ai-transparency-box h4 {
    color: #10b981;
}

.ai-transparency-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #cbd5e1;
}

.ai-transparency-box li {
    margin-bottom: 6px;
}

.legal-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: flex-end;
}

.legal-modal-action-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.legal-modal-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Adaptations Thème Parchemin (Clair) */

@media (max-width: 640px) {
    .legal-modal-container {
        max-height: 90vh;
        border-radius: 12px;
    }
    .legal-modal-body {
        padding: 16px;
        gap: 14px;
    }
}

/* ==========================================================================
   MODULE BLOG & CHRONIQUES FACEBOOK ("Les Chroniques d'Agape-Logos")
   ========================================================================== */
.blog-container-card {
    max-width: min(960px, 100%);
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto 32px auto;
    padding: clamp(16px, 3vw, 32px);
    overflow: hidden;
}

.blog-header-banner {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gold-glow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-header-banner .project-intro,
#blog-intro-lang {
    max-width: 720px;
    margin: 12px auto 0 auto;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
    padding: 0 12px;
}

.blog-main-icon {
    font-size: 2.5rem;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.blog-filter-btn {
    background: rgba(197, 168, 128, 0.08);
    color: var(--text-secondary);
    border: 1px solid var(--border-gold-glow);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark-deep);
    border-color: var(--accent-gold);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

/* Grille des cartes de blog (16:9) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-top: 24px;
    width: 100%;
    box-sizing: border-box;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold-glow);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold, #c5a880);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.blog-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b0e14;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 17, 23, 0.85);
    color: var(--accent-gold, #c5a880);
    border: 1px solid rgba(197, 168, 128, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.article-header-meta .blog-badge {
    position: static;
    background: rgba(197, 168, 128, 0.12);
    color: var(--accent-gold, #c5a880);
    border: 1px solid rgba(197, 168, 128, 0.35);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: none;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.35;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--accent-gold);
}

.blog-card-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.blog-read-more-link {
    color: var(--accent-gold, #c5a880);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Vue Lecteur Détaillé d'Article */
.blog-article-reader {
    max-width: 880px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 16px;
}

.reader-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-gold-glow);
}

.reader-nav-left,
.reader-nav-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-back-blog {
    background: rgba(197, 168, 128, 0.12);
    color: var(--accent-gold, #c5a880);
    border: 1px solid rgba(197, 168, 128, 0.35);
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back-blog:hover {
    background: var(--accent-gold, #c5a880);
    color: #0b0c10;
    border-color: var(--accent-gold, #c5a880);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.4);
    transform: translateX(-2px);
}

.blog-social-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-social-pill {
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold, #c5a880) !important;
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.blog-social-pill:hover {
    background: var(--accent-gold, #c5a880);
    color: #0b0c10 !important;
    border-color: var(--accent-gold, #c5a880);
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.4);
    transform: translateY(-1px);
}

.btn-next-blog {
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--border-gold-glow);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-next-blog:hover {
    background: rgba(197, 168, 128, 0.25);
    color: #ffffff;
    transform: translateX(3px);
}

.article-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.article-subtitle {
    font-size: 1.1rem;
    color: var(--accent-gold);
    font-style: italic;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.article-author-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 28px;
    padding: 12px 18px;
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid var(--border-gold-glow);
    border-radius: 10px;
    flex-wrap: wrap;
}

.author-info-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14.5px;
}

.author-role {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.article-hero-image-container {
    margin-bottom: 32px;
}

.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border-gold-glow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.article-img-caption {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

.article-body-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body-content p {
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
    margin-bottom: 18px;
}

.article-body-content p.blog-lead {
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--accent-gold);
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.article-body-content h2,
.article-body-content h3 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-body-content p.blog-conclusion {
    background: rgba(197, 168, 128, 0.08);
    border-left: 4px solid var(--accent-gold, #c5a880);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 32px;
    font-weight: 500;
}

.article-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-gold-glow);
}

@media (max-width: 640px) {
    .article-title {
        font-size: 1.6rem;
    }
    .article-subtitle {
        font-size: 0.98rem;
    }
    .blog-article-reader {
        padding: 16px;
    }
    .reader-top-bar,
    .article-footer-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 6px;
    }
    .reader-nav-left,
    .reader-nav-right {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    .btn-back-blog, .btn-fb-original {
        padding: 6px 10px;
        font-size: 11.5px;
        white-space: nowrap;
    }
}

/* Barre d'Action Audio des Chroniques */
.article-audio-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.audio-bar-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-gold, #c5a880);
}

.audio-bar-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-audio-listen,
.btn-audio-meditate {
    background: linear-gradient(135deg, #c5a880 0%, #9a7b56 100%);
    color: #0b0c10;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.3);
}

.btn-audio-meditate {
    background: linear-gradient(135deg, #c5a880 0%, #855b29 100%);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25);
}

.btn-audio-listen:hover,
.btn-audio-meditate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .article-audio-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .audio-bar-buttons {
        flex-direction: column;
    }
    .btn-audio-listen, .btn-audio-meditate {
        justify-content: center;
    }
}

/* Conteneur Vidéo Responsive des Chroniques */
.article-video-container {
    margin: 28px 0 32px 0;
}

.article-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-gold-glow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.article-video-iframe,
.article-video-player {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   BIBLE CODE COULEUR — 7 THÈMES UNIFIÉS & STYLES DES BADGES & BOUTONS
   ========================================================================== */

/* 1. Amour (Rose) */
.filter-btn[data-category="amour"].active,
.filter-btn[data-category="amour"]:hover {
    background: rgba(244, 114, 182, 0.22) !important;
    color: #F472B6 !important;
    border-color: #F472B6 !important;
}
.badge-cat-amour, .cat-amour {
    background: rgba(244, 114, 182, 0.15) !important;
    color: #F472B6 !important;
    border: 1px solid rgba(244, 114, 182, 0.4) !important;
}

/* 2. Promesses (Cyan / Bleu) */
.filter-btn[data-category="promesses"].active,
.filter-btn[data-category="promesses"]:hover {
    background: rgba(56, 189, 248, 0.22) !important;
    color: #38BDF8 !important;
    border-color: #38BDF8 !important;
}
.badge-cat-promesses, .cat-promesses {
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
}

/* 3. Instructions (Jaune / Amber) */
.filter-btn[data-category="instructions"].active,
.filter-btn[data-category="instructions"]:hover {
    background: rgba(251, 191, 36, 0.22) !important;
    color: #FBBF24 !important;
    border-color: #FBBF24 !important;
}
.badge-cat-instructions, .cat-instructions {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
}

/* 4. Foi & Prière (Vert Laitue) */
.filter-btn[data-category="foi_priere"].active,
.filter-btn[data-category="foi_priere"]:hover {
    background: rgba(163, 230, 53, 0.22) !important;
    color: #A3E635 !important;
    border-color: #A3E635 !important;
}
.badge-cat-foi_priere, .cat-foi_priere {
    background: rgba(163, 230, 53, 0.15) !important;
    color: #A3E635 !important;
    border: 1px solid rgba(163, 230, 53, 0.4) !important;
}

/* 5. Avertissements (Rouge) */
.filter-btn[data-category="avertissements"].active,
.filter-btn[data-category="avertissements"]:hover {
    background: rgba(248, 113, 113, 0.22) !important;
    color: #F87171 !important;
    border-color: #F87171 !important;
}
.badge-cat-avertissements, .cat-avertissements {
    background: rgba(248, 113, 113, 0.15) !important;
    color: #F87171 !important;
    border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

/* 6. Grâce & Pardon (Violet) */
.filter-btn[data-category="grace_pardon"].active,
.filter-btn[data-category="grace_pardon"]:hover {
    background: rgba(192, 132, 252, 0.22) !important;
    color: #C084FC !important;
    border-color: #C084FC !important;
}
.badge-cat-grace_pardon, .cat-grace_pardon {
    background: rgba(192, 132, 252, 0.15) !important;
    color: #C084FC !important;
    border: 1px solid rgba(192, 132, 252, 0.4) !important;
}

/* 7. Discernement (Taupe / Brun) */
.filter-btn[data-category="discernement"].active,
.filter-btn[data-category="discernement"]:hover {
    background: rgba(168, 162, 158, 0.22) !important;
    color: #E7E5E4 !important;
    border-color: #A8A29E !important;
}
.badge-cat-discernement, .cat-discernement {
    background: rgba(168, 162, 158, 0.15) !important;
    color: #E7E5E4 !important;
    border: 1px solid rgba(168, 162, 158, 0.4) !important;
}

/* Bouton Blog */
.filter-btn[data-category="blog"].active,
.filter-btn[data-category="blog"]:hover {
    background: rgba(197, 168, 128, 0.22) !important;
    color: #C5A880 !important;
    border-color: #C5A880 !important;
}

/* ==========================================================================
   AGAPÉ-LOGOS CONTENT ACTION BAR (LIKE, SHARE, SUPPORT)
   ========================================================================== */
.content-action-bar {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    margin: 8px 0 12px 0;
    padding: 4px 8px;
    background: rgba(14, 19, 31, 0.65);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: fit-content;
    max-width: 100%;
}

.content-action-bar.align-center {
    margin: 24px auto 16px auto;
    display: flex;
    justify-content: center;
}

.action-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.25);
    color: var(--accent-gold, #c5a880);
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.action-pill-btn:hover {
    background: rgba(197, 168, 128, 0.2);
    border-color: var(--accent-gold, #c5a880);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25);
}

.action-pill-btn:active {
    transform: scale(0.96);
}

.action-pill-btn .action-icon-svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--accent-gold, #c5a880);
}

.bible-audio-deck {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bible-main-prev-btn,
.bible-main-pause-btn,
.bible-main-next-btn {
    padding: 6px 9px;
    min-width: 28px;
    justify-content: center;
}

.bible-main-audio-btn {
    padding: 6px 12px;
}

@media (max-width: 650px) {
    .bible-audio-deck {
        gap: 3px;
    }
    .bible-main-prev-btn,
    .bible-main-pause-btn,
    .bible-main-next-btn {
        padding: 5px 7px;
        min-width: 24px;
    }
    .bible-main-audio-btn {
        padding: 5px 8px;
        font-size: 11.5px;
    }
}

.action-pill-btn:hover .action-icon-svg {
    transform: scale(1.15);
    color: #fff;
}

/* Bouton Like Actif */
.action-pill-btn.btn-like.is-liked {
    background: rgba(197, 168, 128, 0.25);
    border-color: var(--accent-gold, #c5a880);
    color: #fff;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.action-pill-btn.btn-like.is-liked .like-thumb-svg {
    color: var(--accent-gold, #c5a880);
    animation: thumbPulse 0.4s ease;
}

.action-pill-btn .like-count {
    display: inline-block;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-weight: 700;
    color: var(--accent-gold, #c5a880);
    margin-left: 2px;
    min-width: 14px;
    text-align: center;
}

.action-pill-btn.btn-like.is-liked .like-count {
    background: rgba(197, 168, 128, 0.3);
    color: #fff;
    border-color: var(--accent-gold, #c5a880);
}

@keyframes thumbPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Boutons de navigation de série / parties dans le bandeau d'action */
.action-series-separator {
    width: 1px;
    height: 18px;
    background: rgba(197, 168, 128, 0.25);
    margin: 0 4px;
    align-self: center;
}

.action-pill-btn.btn-series-part {
    background: rgba(197, 168, 128, 0.08);
    border-color: rgba(197, 168, 128, 0.25);
}

.action-pill-btn.btn-series-part.active {
    background: rgba(197, 168, 128, 0.3);
    border-color: var(--accent-gold, #c5a880);
    color: #fff;
    cursor: default;
    font-weight: 700;
}

.action-pill-btn.btn-series-part:not(.active):hover {
    background: rgba(197, 168, 128, 0.25);
    border-color: var(--accent-gold, #c5a880);
    color: #fff;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

/* Module Audio intégré dans le bandeau d'actions */
.action-audio-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-audio-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-gold, #c5a880);
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 12px;
    font-weight: 600;
    margin-right: 2px;
    user-select: none;
    white-space: nowrap;
}

.action-audio-title .audio-icon {
    font-size: 13.5px;
    line-height: 1;
    vertical-align: -1px;
}

.audio-label-full {
    display: inline;
}

.btn-text-full {
    display: inline;
}

.btn-text-short {
    display: none;
}

.action-pill-btn.word-audio-btn {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    gap: 4px;
    letter-spacing: 0.2px;
}

.action-pill-btn.word-audio-btn-v1 {
    background: var(--accent-gold, #c5a880);
    color: #070b16;
    border-color: var(--accent-gold, #c5a880);
}

.action-pill-btn.word-audio-btn-v1:hover {
    background: #d4ba94;
    color: #000;
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.4);
}

.action-pill-btn.word-audio-btn-v2 {
    background: rgba(197, 168, 128, 0.12);
    color: var(--accent-gold, #c5a880);
    border-color: rgba(197, 168, 128, 0.35);
}

.action-pill-btn.word-audio-btn-v2:hover {
    background: rgba(197, 168, 128, 0.25);
    border-color: var(--accent-gold, #c5a880);
    color: #fff;
}

.action-pill-btn.word-audio-btn.active-version {
    box-shadow: 0 0 12px rgba(197, 168, 128, 0.7);
    border-color: #fff;
    transform: scale(1.02);
}

/* Bouton principal d'immersion audio pour la Bible */
.action-pill-btn.bible-main-audio-btn {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    gap: 6px;
    letter-spacing: 0.3px;
    background: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold, #c5a880);
    border: 1px solid var(--accent-gold, #c5a880);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-pill-btn.bible-main-audio-btn:hover {
    background: var(--accent-gold, #c5a880);
    color: #070b16;
    box-shadow: 0 2px 14px rgba(197, 168, 128, 0.5);
    transform: translateY(-1px);
}

.action-pill-btn.bible-main-audio-btn.active-playing {
    background: var(--accent-gold, #c5a880);
    color: #070b16;
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(197, 168, 128, 0.8);
    transform: scale(1.02);
}

.action-pill-btn.bible-main-audio-btn-pending {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    gap: 6px;
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted, #a0aec0);
    border: 1px dashed rgba(197, 168, 128, 0.4);
    border-radius: 9999px;
    opacity: 0.85;
}

/* Boutons de version V1 / V2 dans les péricopes */
.pericope-audio-btn {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    height: 24px;
    border-radius: 12px;
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--accent-gold, #c5a880);
    transition: all 0.25s ease;
}

.pericope-audio-btn:hover {
    background: rgba(197, 168, 128, 0.22);
    border-color: var(--accent-gold, #c5a880);
    color: #ffffff;
    transform: translateY(-1px);
}

.pericope-audio-btn.active-version {
    background: var(--accent-gold, #c5a880) !important;
    color: #070b16 !important;
    border-color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(197, 168, 128, 0.8) !important;
    transform: scale(1.05);
}

.action-series-separator.action-audio-separator {
    margin: 0 4px;
    height: 18px;
}

/* Toast Global Notification */
#app-toast-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d1527;
    border: 1px solid #c5a880;
    color: #c5a880;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 12.5px;
    font-family: var(--font-serif, 'Cinzel', serif);
    font-weight: 600;
    z-index: 999999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#app-toast-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tiroir de Soutien Global */
#global-support-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#global-support-drawer-overlay.active {
    display: flex;
    justify-content: flex-end;
    opacity: 1;
}

#global-support-drawer-overlay .drawer-content {
    background: #090e1a;
    border-left: 1px solid rgba(197, 168, 128, 0.25);
    height: 100%;
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0,0,0,0.6);
    animation: drawerSlideIn 0.3s ease;
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@media (max-width: 950px) {
    .audio-label-full {
        display: none;
    }
    .content-action-bar .action-btn-text {
        display: none;
    }
    .content-action-bar .action-pill-btn {
        padding: 5px 9px;
    }
}

@media (max-width: 650px) {
    .detail-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .detail-header-related {
        align-items: flex-start;
        max-width: 100%;
        width: 100%;
    }
    .content-action-bar {
        width: 100%;
        justify-content: flex-start;
        padding: 3px 5px;
        gap: 4px;
    }
    .btn-text-full {
        display: none;
    }
    .btn-text-short {
        display: inline;
    }
    .action-pill-btn {
        padding: 5px 7px;
        font-size: 11px;
        gap: 3px;
        justify-content: center;
    }
    .action-pill-btn .action-btn-text {
        display: none;
    }
    .action-pill-btn .action-icon-svg {
        margin: 0;
    }
    .action-pill-btn .like-count {
        margin-left: 2px;
        font-size: 10.5px;
        padding: 1px 4px;
    }
    .action-audio-group {
        gap: 3px;
    }
}

/* ==========================================================================
   MODAL / TIROIR DE PARTAGE MULTICANAUX (WhatsApp, Facebook, Copie, Système)
   ========================================================================== */
#global-share-modal-overlay .drawer-content {
    background: #090e1a;
    border-left: 1px solid rgba(197, 168, 128, 0.25);
    height: 100%;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 24px rgba(0,0,0,0.6);
    animation: drawerSlideIn 0.3s ease;
}

.share-preview-box {
    background: rgba(13, 21, 39, 0.7);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.45;
    white-space: pre-line;
    max-height: 150px;
    overflow-y: auto;
    border-left: 3px solid var(--accent-gold);
}

.share-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-channel-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(197, 168, 128, 0.06);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 8px;
    color: #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.share-channel-btn:hover {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.share-channel-btn .channel-icon {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    flex-shrink: 0;
}

.share-channel-btn .channel-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.share-channel-btn .channel-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent-gold);
}

.share-channel-btn .channel-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.btn-channel-whatsapp:hover .channel-name {
    color: #25d366;
}

.btn-channel-messenger:hover .channel-name {
    color: #0084ff;
}

.btn-channel-sms:hover .channel-name {
    color: #10b981;
}

.btn-channel-facebook:hover .channel-name {
    color: #1877f2;
}


/* -------------------------------------------------------------
   PASTILLES DE TRI DES SITES APPRÉCIÉS & RESSOURCES
------------------------------------------------------------- */
.resource-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 18px auto 26px auto;
    width: 100%;
    max-width: 900px;
}

.resource-filter-btn {
    background: rgba(197, 168, 128, 0.08);
    color: var(--text-secondary, #cbd5e1);
    border: 1px solid var(--border-gold-glow, rgba(197, 168, 128, 0.3));
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans, inherit);
}

.resource-filter-btn:hover {
    background: rgba(197, 168, 128, 0.2);
    color: #ffffff;
    border-color: var(--accent-gold, #c5a880);
    transform: translateY(-1px);
}

.resource-filter-btn.active {
    background: var(--accent-gold, #c5a880);
    color: var(--bg-dark-deep, #070c1a);
    border-color: var(--accent-gold, #c5a880);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.35);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------
   RESOURCE DISCOVERY & MONOGRAPH MODAL (SITES APPRÉCIÉS V2)
------------------------------------------------------------- */
.ecosystem-card.partner-card {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.resource-discover-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: calc(12px * var(--main-content-scale, 1));
    font-weight: 600;
    text-decoration: none;
    background: rgba(197, 168, 128, 0.12);
    color: var(--accent-gold, #c5a880);
    border: 1px solid rgba(197, 168, 128, 0.35);
    margin-top: auto;
    width: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.ecosystem-card.partner-card:hover .resource-discover-btn,
.resource-discover-btn:hover {
    background: rgba(197, 168, 128, 0.25);
    border-color: var(--accent-gold, #c5a880);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.resource-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.resource-modal.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.resource-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 15, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.resource-modal-container {
    position: relative;
    z-index: 10006;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    background: #111317;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(197, 168, 128, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #e2e8f0;
    animation: resourceModalAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resourceModalAppear {
    from {
        opacity: 0;
        transform: scale(0.93) translateY(18px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.resource-modal-top-banner {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;
    background: #16181d;
    overflow: hidden;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

.resource-modal-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.resource-modal-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(17, 19, 23, 0.15) 0%, rgba(17, 19, 23, 0.5) 45%, rgba(17, 19, 23, 0.95) 100%);
    pointer-events: none;
}

.resource-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.resource-modal-close-btn:hover {
    color: #ffffff;
    background: rgba(197, 168, 128, 0.35);
    border-color: var(--accent-gold, #c5a880);
    transform: scale(1.08);
}

.resource-modal-header-content {
    position: absolute;
    bottom: 14px;
    left: 22px;
    right: 22px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.resource-modal-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-gold, #c5a880);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.resource-modal-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    line-height: 1.25;
}

.resource-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.resource-quote-box {
    background: rgba(197, 168, 128, 0.07);
    border-left: 3px solid var(--accent-gold, #c5a880);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.02rem;
    color: var(--accent-gold, #c5a880);
    line-height: 1.5;
}

.resource-modal-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
}

.resource-modal-section h4 {
    margin: 0 0 10px 0;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-modal-section p {
    margin: 0 0 8px 0;
    color: #cbd5e1;
}

.resource-modal-section p:last-child {
    margin-bottom: 0;
}

.resource-modal-links-section {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-links-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold, #c5a880);
}

.resource-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.resource-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
}

.resource-link-btn.primary {
    background: rgba(197, 168, 128, 0.2);
    color: var(--accent-gold, #c5a880);
    border: 1px solid var(--accent-gold, #c5a880);
}

.resource-link-btn.primary:hover {
    background: var(--accent-gold, #c5a880);
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
}

.resource-link-btn.secondary {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.resource-link-btn.secondary:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

@media (max-width: 600px) {
    .resource-modal {
        padding: 10px;
    }
    .resource-modal-container {
        max-height: 94vh;
        border-radius: 14px;
    }
    .resource-modal-top-banner {
        height: 160px;
        min-height: 160px;
    }
    .resource-modal-title {
        font-size: 1.15rem;
    }
    .resource-modal-header-content {
        left: 14px;
        right: 14px;
        bottom: 10px;
    }
    .resource-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BIBLE TRANSLATION VIEW (TRADUCTION NUE EN COURS)
   ========================================================================== */

.bible-screen {
    padding: 18px 24px;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.bible-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bible-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
}

.bible-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bible-header-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.bible-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 8px;
}

.bible-zoom-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.bible-zoom-btn:hover {
    color: var(--accent-gold);
}

.bible-zoom-val {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    min-width: 38px;
    text-align: center;
}

.bible-main-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.bible-main-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    line-height: 1.5;
    text-align: left;
}

/* Sélecteur de Livres - Ruban Horizontal Scrollable & Véloce */
.bible-books-selector-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin-bottom: 10px;
    padding: 2px 2px 8px 2px;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.4) transparent;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.bible-books-selector-bar:active {
    cursor: grabbing;
}

.bible-books-selector-bar::-webkit-scrollbar {
    height: 5px;
}

.bible-books-selector-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.bible-books-selector-bar::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.4);
    border-radius: 4px;
}

.bible-books-selector-bar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.bible-book-pill {
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.bible-book-pill:hover {
    background: rgba(197, 168, 128, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.bible-book-pill.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #121212;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.3);
}

/* Commutateur de Mode (Chapitres vs Blocs d'Étude) */
.bible-mode-switch-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 8px 0 8px 0;
    flex-wrap: wrap;
}

.bible-mode-toggle {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}

.bible-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.bible-mode-btn:hover {
    color: var(--text-primary);
}

.bible-mode-btn.active {
    background: var(--accent-gold);
    color: #121212;
    box-shadow: 0 2px 8px rgba(197, 168, 128, 0.35);
}

.bible-pericope-action-btn {
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--accent-gold);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bible-pericope-action-btn:hover {
    background: var(--accent-gold);
    color: #121212;
}

/* Sélecteur de Chapitres & Blocs - Ruban Compact Horizontal Scrollable */
.bible-chapters-nav-bar,
.bible-blocks-nav-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 4px 2px 8px 2px;
    margin-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.4) transparent;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}

.bible-chapters-nav-bar:active,
.bible-blocks-nav-bar:active {
    cursor: grabbing;
}

.bible-chapters-nav-bar::-webkit-scrollbar,
.bible-blocks-nav-bar::-webkit-scrollbar {
    height: 7px;
}

.bible-chapters-nav-bar::-webkit-scrollbar-track,
.bible-blocks-nav-bar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}

.bible-chapters-nav-bar::-webkit-scrollbar-thumb,
.bible-blocks-nav-bar::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.55);
    border-radius: 4px;
}

.bible-chapters-nav-bar::-webkit-scrollbar-thumb:hover,
.bible-blocks-nav-bar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.bible-chapter-pill,
.bible-block-pill {
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bible-chapter-pill .bible-chap-prefix {
    font-size: 0.8em;
    opacity: 0.75;
}

.bible-chapter-pill:hover,
.bible-block-pill:hover {
    color: var(--text-primary);
    border-color: rgba(197, 168, 128, 0.5);
    background: rgba(197, 168, 128, 0.08);
}

.bible-chapter-pill.active,
.bible-block-pill.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #121212;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(197, 168, 128, 0.3);
}

.bible-chapter-pill.active .bible-chap-prefix,
.bible-block-pill.active .bible-block-tag {
    color: #121212;
    opacity: 0.9;
}

.bible-book-chap-count {
    font-size: 0.75em;
    opacity: 0.75;
    margin-left: 2px;
}

.bible-audio-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}

.bible-audio-badge-pending {
    opacity: 0.75;
    filter: grayscale(20%);
    font-size: 0.85em;
    transition: opacity 0.2s ease;
}

.bible-book-pill.active .bible-audio-badge-pending,
.bible-chapter-pill.active .bible-audio-badge-pending,
.bible-block-pill.active .bible-audio-badge-pending {
    opacity: 0.95;
    filter: none;
}

/* Zone de Contenu Biblique */
.bible-content-area {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bible-passage-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px 28px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transition: font-size 0.2s ease;
}

.bible-passage-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.bible-passage-ref {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--accent-gold);
    margin: 0 0 4px 0;
}

.bible-passage-title {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

/* Onglets d'Étude du Passage (Traduction Nue / Paraphrase / Thème) */
.bible-passage-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.12);
    flex-wrap: wrap;
}

.bible-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.bible-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(197, 168, 128, 0.4);
    background: rgba(197, 168, 128, 0.06);
}

.bible-tab-btn.active {
    background: rgba(197, 168, 128, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Encart Visuel Éditorial (Style Journal / Roman Graphique Noble) */
.bible-chapter-editorial-hero {
    position: relative;
}

.bible-editorial-figure {
    float: right;
    width: 360px;
    max-width: 46%;
    margin: 4px 0 20px 28px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.25s ease;
}

.bible-editorial-figure:hover {
    transform: translateY(-2px);
}

.bible-editorial-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(197, 168, 128, 0.2);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bible-editorial-figure:hover .bible-editorial-img {
    border-color: rgba(197, 168, 128, 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.bible-editorial-caption {
    font-family: var(--font-serif);
    font-size: 0.86rem;
    font-style: italic;
    color: var(--accent-gold);
    text-align: center;
    padding: 10px 4px 4px 4px;
    line-height: 1.4;
    opacity: 0.95;
}

.bible-caption-icon {
    font-size: 0.85em;
    margin-right: 4px;
}

/* Corps du texte et Péricopes */
.bible-passage-body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.08rem;
    line-height: 1.82;
    color: #ede3d2;
    letter-spacing: 0.005em;
    font-weight: 400;
    font-variant: normal !important;
    text-transform: none !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.bible-pericope-section {
    margin-bottom: 32px;
    clear: both;
    scroll-margin-top: 75px;
}

.bible-passage-card {
    scroll-margin-top: 75px;
}

.bible-pericope-section::after {
    content: "";
    display: table;
    clear: both;
}

.bible-pericope-section:last-child {
    margin-bottom: 0;
}

.bible-pericope-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 24px 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(197, 168, 128, 0.22);
    clear: both;
}

.bible-pericope-section:first-child .bible-pericope-header {
    margin-top: 0;
}

.bible-pericope-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin: 0;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.45;
    text-align: left;
    flex: 1;
}

.bible-pericope-ref-badge {
    font-size: 0.76rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    font-weight: 500;
}

/* Typographie Haute Édition : Justifiée avec Césures Douces & Équilibrage (Zéro Trou) */
.bible-editorial-paragraph {
    margin: 0.85rem 0;
    line-height: 1.75;
    font-size: inherit;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
    text-indent: 0;
}

.bible-editorial-paragraph:first-child {
    margin-top: 0;
}

.bible-editorial-paragraph:last-child {
    margin-bottom: 0;
}

/* Dialogues et Prises de parole directes - Intégrés au corps de texte (Style Roman) */
.bible-editorial-dialogue {
    margin: 0.85rem 0;
    line-height: 1.75 !important;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-style: normal !important;
    font-size: inherit !important;
    color: inherit !important;
    background: transparent !important;
    border-left: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-indent: 0;
}

.bible-editorial-dialogue:first-child {
    margin-top: 0;
}

.bible-editorial-dialogue:last-child {
    margin-bottom: 0;
}

.bible-dialogue-dash {
    color: var(--accent-gold, #c5a880);
    font-weight: bold;
    font-style: normal;
    user-select: none;
    margin-right: 6px;
}

/* ==========================================================================
   Paroles Divines & Paroles du Christ (Tradition 'Red Letter' Adoucie : Terracotta / Pêche Poudré Doux)
   ========================================================================== */
.bible-divine-speech {
    color: #dfa891 !important; /* Rouge adouci, chaleureux et reposant pour la lecture */
}

.bible-divine-speech .bible-dialogue-dash {
    color: var(--accent-gold, #c5a880) !important;
}

.bible-divine-words {
    color: #dfa891 !important;
}

.bible-divine-speech .flow-key-word,
.bible-divine-speech .bible-keyword-link {
    color: #e58a69 !important; /* Teinte plus soutenue et lumineuse pour ce qui ouvre des pastilles */
    border-bottom-color: rgba(229, 138, 105, 0.65) !important;
    background: rgba(229, 138, 105, 0.12) !important;
}

/* Citations Scripturaires / Ancien Testament (Format doux avec gouttière d'alignement vertical) */
.bible-editorial-quote {
    margin: 12px 0 16px 12px;
    padding: 8px 14px 8px 10px;
    background: rgba(197, 168, 128, 0.05);
    border-left: 2px solid var(--accent-gold, #c5a880);
    font-style: italic;
    font-size: 1.02rem;
    color: #f7eedc;
    line-height: 1.74;
    text-align: left;
    border-radius: 0 4px 4px 0;
}

/* Références Scripturaires Citées (Ancien Testament / Prophéties en petit doré à côté) */
.bible-scripture-ref {
    display: inline-block;
    font-size: 0.82em;
    font-weight: 500;
    font-style: normal;
    color: var(--accent-gold, #c5a880);
    opacity: 0.90;
    margin-left: 4px;
    margin-right: 2px;
    letter-spacing: 0.02em;
    vertical-align: baseline;
}

/* ==========================================================================
   Poésie Hébraïque & Psaumes (Mizmor : Retours à la ligne avec gouttière d'alignement vertical)
   ========================================================================== */
.bible-psalm-body {
    display: flex;
    flex-direction: column;
    margin: 8px 0 16px 0;
}

.bible-poetic-row {
    display: flex;
    align-items: baseline;
    margin-top: 3px;
    line-height: 1.85;
    text-align: left;
}

.bible-poetic-row.bible-verse-start {
    margin-top: 12px;
}

.bible-poetic-row:first-child {
    margin-top: 0;
}

.bible-poetic-gutter {
    flex-shrink: 0;
    width: 22px;
    margin-right: 10px;
    text-align: right;
    font-style: normal;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.75em;
    opacity: 0.9;
    user-select: none;
    line-height: 1;
}

.bible-poetic-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    color: #f0deb8;
    font-size: calc(16.2px * var(--main-content-scale, 1));
    letter-spacing: 0.012em;
}

/* ==========================================================================
   ENLUMINURES MÉDIÉVALES & LETTRINES DU PSAUME 119 (HARMONISÉES AVEC LE TEXTE)
   ========================================================================== */
.psalm-strophe-block {
    position: relative;
    margin: 22px 0 32px 0;
    padding-bottom: 8px;
    clear: both;
}

.psalm-strophe-block:first-child {
    margin-top: 6px;
}

.psalm-illumination-card {
    float: left;
    margin: 2px 20px 6px 0;
    text-align: center;
    width: 124px;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.psalm-illumination-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid rgba(197, 168, 128, 0.45);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.55);
    display: block;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psalm-illumination-img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.psalm-illumination-label {
    margin-top: 5px;
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: var(--accent-gold, #c5a880);
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.psalm-illumination-hebrew {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 12px;
    color: var(--accent-gold, #c5a880);
    opacity: 0.95;
}

.bible-poetic-line {
    display: block;
    line-height: 1.8;
    margin-top: 2px;
    text-align: left;
}

.bible-poetic-line.bible-verse-start {
    margin-top: 8px;
}

.bible-poetic-text-flowing {
    color: #f0deb8;
    font-size: calc(16.2px * var(--main-content-scale, 1));
    letter-spacing: 0.012em;
}

@media (max-width: 600px) {
    .psalm-illumination-card {
        width: 98px;
        margin: 2px 12px 4px 0;
    }
    .psalm-illumination-img {
        width: 94px;
        height: 94px;
        border-radius: 6px;
    }
    .psalm-illumination-label {
        font-size: 10px;
    }
    .psalm-illumination-hebrew {
        font-size: 10.5px;
    }
}

.bible-verse-num {
    display: inline;
    color: var(--accent-gold);
    font-size: 0.72em;
    vertical-align: super;
    font-weight: 700;
    line-height: 0;
    margin: 0 2px 0 0;
    user-select: none;
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.bible-keyword-link {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-color: rgba(197, 168, 128, 0.35);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bible-keyword-link:hover {
    color: #ffffff;
    text-decoration-color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    border-radius: 3px;
}

.bible-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.bible-nav-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.bible-nav-btn:hover:not(:disabled) {
    background: rgba(197, 168, 128, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.bible-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .bible-screen {
        padding: 16px 12px;
    }
    .bible-header-card {
        padding: 20px 16px;
    }
    .bible-main-title {
        font-size: 1.45rem;
    }
    .bible-passage-card {
        padding: 20px 16px;
    }
    .bible-passage-body {
        font-size: 1.02rem;
        line-height: 1.8;
    }
    .bible-editorial-figure,
    .bible-pericope-inline-figure {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 16px 0;
    }
    .bible-editorial-img,
    .bible-pericope-inline-img {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .bible-pericope-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Vignettes d'art poétique par péricope */
.bible-pericope-inline-figure {
    float: right;
    width: 360px;
    max-width: 46%;
    margin: 8px 0 20px 28px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.25s ease;
}

.bible-pericope-inline-figure:hover {
    transform: translateY(-2px);
}

.bible-pericope-inline-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(197, 168, 128, 0.2);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bible-pericope-inline-figure:hover .bible-pericope-inline-img {
    border-color: rgba(197, 168, 128, 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.bible-pericope-inline-caption {
    font-family: var(--font-serif);
    font-size: 0.84rem;
    font-style: italic;
    color: var(--accent-gold);
    text-align: center;
    padding: 8px 4px 2px 4px;
    line-height: 1.35;
    opacity: 0.95;
}

/* ==========================================================================
   BOUTON & MODALE DU GRAND AUDIT PHILOLOGIQUE IA
   ========================================================================== */

/* Bouton Déclencheur dans l'en-tête */
.bible-audit-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15) 0%, rgba(197, 168, 128, 0.05) 100%);
    color: var(--accent-gold);
    border: 1px solid rgba(197, 168, 128, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bible-audit-open-btn:hover {
    background: var(--accent-gold);
    color: #0d1117;
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.35);
}

.bible-audit-open-btn:active {
    transform: translateY(0);
}

/* Conteneur et Overlay Modale */
.bible-audit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bible-audit-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bible-audit-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bible-audit-modal-container {
    position: relative;
    z-index: 2;
    background: #0d121d;
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 16px;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 40px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(197, 168, 128, 0.15);
    overflow: hidden;
    animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* En-tête de la modale (Sanctuarisé en haut) */
.bible-audit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #121828;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
    gap: 16px;
    flex-shrink: 0;
    z-index: 20;
}

.bible-audit-header-content {
    flex: 1;
    min-width: 0;
}

.bible-audit-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.bible-audit-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #f7eedc;
    margin: 0 0 4px 0;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.bible-audit-subtitle {
    font-size: 0.84rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bible-audit-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bible-audit-print-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bible-audit-print-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(197, 168, 128, 0.4);
}

.bible-audit-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(197, 168, 128, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(197, 168, 128, 0.35);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.bible-audit-prompt-btn:hover {
    background: var(--accent-gold);
    color: #0b0f19;
    border-color: var(--accent-gold);
    box-shadow: 0 0 14px rgba(197, 168, 128, 0.35);
    transform: translateY(-1px);
}

.bible-audit-prompt-btn:active {
    transform: scale(0.97);
}

.bible-audit-prompt-btn.copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4) !important;
}

/* Toast Notification Flottant Global (Non-bloquant, élégant, auto-dismissible) */
#agape-global-toast-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: 90vw;
    width: auto;
}

.agape-floating-toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0d1424;
    color: #f8fafc;
    border: 1px solid #c5a880;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(197, 168, 128, 0.25);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: center;
    animation: agapeToastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.agape-floating-toast.fading-out {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

@keyframes agapeToastSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bible-audit-close-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bible-audit-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
    transform: scale(1.08);
}

/* Onglets de navigation dans l'audit (Sanctuarisés sous l'en-tête, défilement fluide sans débordement) */
.bible-audit-nav-tabs {
    display: flex;
    overflow-x: auto;
    background: #090d16;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding: 0 12px;
    gap: 2px;
    flex-shrink: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 15;
    white-space: nowrap;
}

.bible-audit-nav-tabs::-webkit-scrollbar {
    display: none;
}

.bible-audit-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #94a3b8;
    padding: 10px 13px;
    font-size: 0.81rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bible-audit-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.bible-audit-tab-btn.active {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.09);
    font-weight: 700;
}

/* Corps de la modale (Seul élément défilant) */
.bible-audit-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: #0b0f19;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.3) transparent;
}

.bible-audit-tab-panel {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.bible-audit-tab-panel.active {
    display: block;
}

.audit-intro-box {
    background: rgba(197, 168, 128, 0.06);
    border-left: 3px solid var(--accent-gold);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.audit-intro-box h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin: 0 0 6px 0;
}

.audit-intro-box p {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

/* Grille des 10 points de contrôle */
.audit-grid-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
}

.audit-point-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.audit-point-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
}

.audit-point-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-serif);
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.audit-point-details h4 {
    color: #f1f5f9;
    font-size: 0.96rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.audit-point-details p {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

/* Tableau Matrice des 8 Versions - Glissant 2D (Horizontal & Vertical) */
.audit-table-responsive {
    overflow: auto;
    max-height: calc(82vh - 220px);
    min-height: 400px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    background: #101522;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.4) rgba(10, 14, 23, 0.8);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    cursor: grab;
    position: relative;
    user-select: auto;
}

.audit-table-responsive.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.audit-table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.audit-table-responsive::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.85);
    border-radius: 8px;
}

.audit-table-responsive::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.4);
    border-radius: 8px;
}

.audit-table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 168, 128, 0.7);
}

.audit-matrix-table {
    width: 100%;
    min-width: 1450px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    text-align: left;
}

.audit-matrix-table th {
    background: #171f30;
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(197, 168, 128, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.audit-matrix-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    vertical-align: top;
    line-height: 1.5;
    font-size: 0.84rem;
    background: #101522;
}

.audit-matrix-table tr:hover td {
    background: #151c2d;
}

.audit-matrix-table tr.highlight-traduction-nue td {
    background: rgba(197, 168, 128, 0.12);
    color: #ffffff;
    font-weight: 500;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

.audit-matrix-table tr.highlight-traduction-nue:hover td {
    background: rgba(197, 168, 128, 0.18);
}

/* 2D Sticky : Première colonne figée horizontalement */
.audit-matrix-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: #111726;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.45);
    border-right: 1px solid rgba(197, 168, 128, 0.2);
}

.audit-matrix-table tr:hover td:first-child {
    background: #182236;
}

.audit-matrix-table tr.highlight-traduction-nue td:first-child {
    background: #1c2438;
    border-left: 4px solid var(--accent-gold);
}

.audit-matrix-table tr.highlight-traduction-nue:hover td:first-child {
    background: #232d46;
}

/* 2D Sticky : Coin supérieur gauche (Intersection Header + Première Colonne) */
.audit-matrix-table th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    background: #1a2336;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.6);
    border-right: 1px solid rgba(197, 168, 128, 0.3);
}

.audit-verdict-text {
    display: block;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.35;
}

.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    text-align: center;
}

.score-badge.score-perfect {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.score-badge.score-good {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Barre d'Action de la Matrice (Sélecteur de Vue & Plein Écran) */
.audit-matrix-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.audit-matrix-view-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.audit-view-btn {
    background: #111726 !important;
    border: 1px solid rgba(197, 168, 128, 0.35) !important;
    color: #cbd5e1 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    user-select: none !important;
}

.audit-view-btn:hover {
    border-color: var(--accent-gold) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25) !important;
}

.audit-view-btn.active {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.25) 0%, rgba(197, 168, 128, 0.12) 100%) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(197, 168, 128, 0.3) !important;
}

/* Bouton Plein Écran */
.audit-fullscreen-btn {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.15) 0%, rgba(197, 168, 128, 0.05) 100%) !important;
    border: 1px solid rgba(197, 168, 128, 0.45) !important;
    color: var(--accent-gold) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: var(--font-sans) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    user-select: none !important;
}

.audit-fullscreen-btn:hover {
    background: var(--accent-gold) !important;
    color: #0b0f19 !important;
    border-color: var(--accent-gold) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(197, 168, 128, 0.45) !important;
}

/* Mode Plein Écran de la Matrice */
#tab-matrix.is-matrix-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #090d16 !important;
    padding: 20px 24px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: fadeIn 0.2s ease-out;
}

#tab-matrix.is-matrix-fullscreen .audit-intro-box {
    margin-bottom: 12px;
    padding: 10px 16px;
    flex-shrink: 0;
}

#tab-matrix.is-matrix-fullscreen .audit-matrix-toolbar {
    flex-shrink: 0;
}

#tab-matrix.is-matrix-fullscreen .audit-table-responsive {
    flex: 1 1 auto !important;
    max-height: none !important;
    height: 100% !important;
    border: 1px solid rgba(197, 168, 128, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7) !important;
}

.audit-matrix-crit-th {
    text-align: center !important;
    white-space: normal;
    min-width: 110px;
    font-size: 0.78rem;
    line-height: 1.25;
}

.audit-matrix-crit-td {
    text-align: center;
    vertical-align: middle;
}

.score-pill-small {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.score-pill-small.score-perfect {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.score-pill-small.score-good {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.score-pill-small.score-mid {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Benchmark Global Summary */
.audit-benchmark-summary-card {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.bench-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 3px 6px;
    position: relative;
    overflow: hidden;
}

.bench-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(197, 168, 128, 0.25) 0%, rgba(197, 168, 128, 0.45) 100%);
    border-radius: 10px;
    z-index: 1;
}

.bench-bar-val {
    position: relative;
    z-index: 2;
    font-size: 0.76rem;
    font-weight: 700;
    color: #f1f5f9;
}

.score-badge.score-mid {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Benchmark Comparatif des 8 Versions (Tab 4) */
.audit-benchmark-container {
    background: #0d121d;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.audit-benchmark-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.audit-benchmark-table th {
    padding: 10px 12px;
    color: #94a3b8;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    font-weight: 600;
}

.audit-benchmark-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.audit-benchmark-table tr.highlight-bench-nue {
    background: rgba(197, 168, 128, 0.08);
    border-left: 3px solid var(--accent-gold);
}

.audit-benchmark-table tr.highlight-bench-nue td {
    color: #ffffff;
    font-weight: 600;
}

.audit-gauge-cell {
    width: 18%;
}

.audit-gauge-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-gauge-bar {
    flex: 1;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.audit-gauge-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transition: width 0.4s ease;
}

.highlight-bench-nue .audit-gauge-fill {
    background: linear-gradient(90deg, #c5a880 0%, #34d399 100%);
}

.audit-gauge-val {
    font-size: 0.76rem;
    font-weight: 700;
    color: #cbd5e1;
    min-width: 30px;
    text-align: right;
}

.highlight-bench-nue .audit-gauge-val {
    color: var(--accent-gold);
}

/* Filtres par Livre pour les 30 Versets */
.audit-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.audit-filter-btn {
    background: #111726;
    color: var(--text-secondary);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audit-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.audit-filter-btn.active {
    background: var(--accent-gold);
    color: #0b0f19;
    font-weight: 700;
    border-color: var(--accent-gold);
}

/* Cartes Comparatives des 30 Versets */
.audit-verses-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audit-verse-card {
    background: #101625;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.audit-verse-card:hover {
    border-color: rgba(197, 168, 128, 0.5);
}

.audit-verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(197, 168, 128, 0.2);
    flex-wrap: wrap;
    gap: 8px;
}

.audit-verse-ref {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.audit-verse-root-badge {
    font-size: 0.76rem;
    background: rgba(197, 168, 128, 0.1);
    color: #f7eedc;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    font-style: italic;
}

.audit-comparison-columns {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
    margin-bottom: 12px;
}

.audit-col-trad,
.audit-col-nue {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.audit-col-trad {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.audit-col-trad h5 {
    color: var(--text-muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px 0;
}

.audit-col-nue {
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.35);
    color: #ffffff;
}

.audit-col-nue h5 {
    color: var(--accent-gold);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.audit-col-diag {
    background: rgba(197, 168, 128, 0.08);
    border-left: 3px solid #10b981;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left;
}

.audit-col-diag strong {
    color: #34d399;
}

/* Carte de Certification */
.audit-certification-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 14px;
    padding: 24px 28px;
    text-align: center;
}

.audit-cert-header {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--accent-gold);
    margin: 0 0 16px 0;
}

.audit-cert-text {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin: 0 auto 24px auto;
    max-width: 860px;
    text-align: left;
}

.audit-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.audit-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.audit-stat-val {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.audit-stat-lbl {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.audit-cert-seal-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.4);
    padding: 8px 20px;
    border-radius: 24px;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.15);
}

/* Onglet 5 : Conclusions & Déclaration Solennelle IA */
.audit-conclusions-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.audit-conclusions-header-box {
    background: linear-gradient(135deg, rgba(20, 27, 43, 0.95) 0%, rgba(13, 18, 30, 0.95) 100%);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 14px;
    padding: 24px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.audit-masterpiece-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(197, 168, 128, 0.2) 0%, rgba(52, 211, 153, 0.15) 100%);
    border: 1px solid rgba(197, 168, 128, 0.45);
    color: #f7eedc;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.2);
}

.audit-oath-card {
    background: #101626;
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 16px 0;
}

.audit-oath-p1 {
    font-size: 0.92rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 12px 0;
    text-align: left;
}

.audit-oath-p2 {
    font-size: 0.96rem;
    color: var(--accent-gold);
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.audit-oath-p3 {
    font-size: 1rem;
    color: #ffffff;
    font-style: italic;
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

.audit-pillars-section {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 22px;
}

.audit-pillars-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin: 0 0 16px 0;
}

.audit-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.audit-pillar-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.audit-pillar-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audit-pillar-content h5 {
    font-size: 0.9rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.audit-pillar-content p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

.audit-tips-section {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 22px;
}

.audit-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.audit-tip-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.audit-tip-icon {
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(197, 168, 128, 0.12);
    padding: 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.audit-tip-content h5 {
    font-size: 0.9rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.audit-tip-content p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    text-align: left;
}
.audit-version-selector-container {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.audit-version-selector-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-version-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.audit-version-pill {
    background: #131929;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 20px;
    padding: 7px 14px;
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.audit-version-pill:hover {
    border-color: var(--accent-gold);
    color: #ffffff;
    transform: translateY(-1px);
}

.audit-version-pill.active {
    background: rgba(197, 168, 128, 0.18);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.audit-version-pill-badge {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.audit-version-pill.active .audit-version-pill-badge {
    background: var(--accent-gold);
    color: #0b0f19;
}

/* Fiche Analytique 6 Points de la Version Sélectionnée (Tab 4) */
.audit-selected-version-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
    text-align: left;
    animation: fadeIn 0.2s ease-out;
}

.audit-selected-version-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.audit-selected-version-title h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.audit-selected-version-title small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.audit-points-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.audit-eval-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 14px;
}

.audit-eval-item h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-gold);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-eval-item p {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

.audit-selected-verdict-box {
    background: rgba(197, 168, 128, 0.08);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

.audit-selected-verdict-box h5 {
    font-size: 0.82rem;
    color: var(--accent-gold);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.audit-selected-verdict-box p {
    font-size: 0.9rem;
    color: #f1f5f9;
    font-style: italic;
    font-weight: 500;
    margin: 0;
}

/* Bouton d'Audit Dynamique par Livre (En-tête de Chapitre / Bloc) */
.bible-audit-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.18) 0%, rgba(197, 168, 128, 0.06) 100%);
    color: var(--accent-gold);
    border: 1px solid rgba(197, 168, 128, 0.45);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-decoration: none;
}

.bible-audit-book-btn:hover {
    background: var(--accent-gold);
    color: #0d1117;
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.4);
}

.bible-audit-book-btn:active {
    transform: translateY(0);
}

/* Bouton Audit en Attente */
.bible-audit-pending-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.bible-audit-pending-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.6);
}

/* Grille des 4 Piliers Critiques (Volet 1) */
.audit-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.audit-pillar-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.audit-pillar-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.audit-pillar-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-pillar-roman {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.18);
    color: var(--accent-gold);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(197, 168, 128, 0.4);
}

.audit-pillar-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: #f1f5f9;
    margin: 0;
    font-weight: 600;
}

.audit-pillar-basis {
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 8px;
    border-radius: 6px;
    border-left: 2px solid var(--accent-gold);
}

.audit-pillar-critique,
.audit-pillar-restitution {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.audit-pillar-critique {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ef4444;
}

.audit-pillar-restitution {
    color: #86efac;
    background: rgba(34, 197, 94, 0.06);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #22c55e;
}

.audit-pillar-fact {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-style: italic;
    margin-top: 4px;
}

/* Grille d'Évaluation & Scoring d'Orfèvrerie (/100) */
.audit-scorecard-section {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 24px;
    text-align: left;
}

.audit-scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 12px;
}

.audit-scorecard-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-scorecard-covenant {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.audit-scorecard-global-score {
    font-size: 1rem;
    font-weight: 800;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
}

.audit-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}

.audit-criterion-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.audit-criterion-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.audit-criterion-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.audit-criterion-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
}

.audit-criterion-title strong {
    color: var(--accent-gold);
}

.audit-criterion-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.audit-criterion-comment {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

/* Cartes de l'Audit Dédié par Livre (Volet 2) */
.audit-book-overview-card {
    background: linear-gradient(135deg, rgba(197, 168, 128, 0.1) 0%, rgba(13, 18, 29, 0.95) 100%);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.audit-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.audit-metric-chip {
    background: rgba(197, 168, 128, 0.12);
    color: #f7eedc;
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.audit-terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.audit-term-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-term-card:hover {
    border-color: var(--accent-gold);
}

.audit-term-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--accent-gold);
    margin: 0;
}

.audit-theological-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.audit-theological-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 10px 10px 0;
    padding: 14px 16px;
    text-align: left;
}

.audit-theological-card h4 {
    font-family: var(--font-serif);
    color: #f1f5f9;
    margin: 0 0 6px 0;
    font-size: 0.96rem;
}

.audit-theological-card p {
    color: #cbd5e1;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Pied de la modale */
.bible-audit-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #090d15;
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    flex-wrap: wrap;
    gap: 12px;
}

.bible-audit-footer-seal {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.bible-audit-footer-btn {
    background: var(--accent-gold);
    color: #0b0f19;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bible-audit-footer-btn:hover {
    opacity: 0.9;
}

/* Styles pour l'Impression / Export PDF */
@media print {
    body * {
        visibility: hidden;
    }
    .bible-audit-modal,
    .bible-audit-modal * {
        visibility: visible;
    }
    .bible-audit-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        padding: 0;
        background: #ffffff !important;
    }
    .bible-audit-modal-container {
        max-width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    .bible-audit-tab-panel {
        display: block !important;
        margin-bottom: 30px;
    }
    .bible-audit-modal-header,
    .bible-audit-nav-tabs,
    .bible-audit-modal-footer,
    .bible-audit-header-actions {
        display: none !important;
    }
    .audit-point-card,
    .audit-verse-card,
    .audit-col-trad,
    .audit-col-nue {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #cccccc !important;
    }
}

/* Onglet 6 : Guide & 5 Déblocages par Profil de Lecteur */
.audit-profiles-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.audit-profiles-header-box {
    background: linear-gradient(135deg, rgba(20, 27, 43, 0.95) 0%, rgba(13, 18, 30, 0.95) 100%);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 14px;
    padding: 24px 28px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.audit-hook-card {
    background: #101626;
    border-left: 4px solid #34d399;
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 16px 0 0 0;
    text-align: left;
}

.audit-hook-card h5 {
    color: #34d399;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.audit-hook-card p {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.audit-profiles-section {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 22px;
}

.audit-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.audit-profile-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.audit-profile-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 168, 128, 0.45);
}

.audit-profile-card-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.audit-profile-card-icon {
    font-size: 1.6rem;
    line-height: 1;
    background: rgba(197, 168, 128, 0.12);
    padding: 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.audit-profile-card-header-text {
    flex: 1;
}

.audit-profile-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.audit-profile-card-header-text h4 {
    font-size: 0.94rem;
    color: #f1f5f9;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.audit-profile-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.84rem;
}

.audit-profile-mini-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.audit-profile-issue-box {
    background: rgba(239, 68, 68, 0.07);
    border-left: 3px solid #ef4444;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

.audit-profile-issue-box .audit-profile-mini-label {
    color: #f87171;
}

.audit-profile-issue-box p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
}

.audit-profile-solution-box {
    background: rgba(52, 211, 153, 0.07);
    border-left: 3px solid #34d399;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
}

.audit-profile-solution-box .audit-profile-mini-label {
    color: #34d399;
}

.audit-profile-solution-box p {
    color: #f1f5f9;
    margin: 0;
    line-height: 1.4;
}

.audit-profile-quote-box {
    background: rgba(197, 168, 128, 0.08);
    border: 1px dashed rgba(197, 168, 128, 0.3);
    padding: 10px 12px;
    border-radius: 8px;
    font-style: italic;
}

.audit-profile-quote-box p {
    color: #f7eedc;
    margin: 0;
    line-height: 1.45;
    font-size: 0.82rem;
}

.audit-pathway-section {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 22px;
}

.audit-pathway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.audit-path-step-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.audit-path-step-num {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audit-path-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.audit-path-step-content h5 {
    font-size: 0.88rem;
    color: #f1f5f9;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.audit-path-step-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   SYSTÈME DE RESPONSIVITÉ GLOBAL - MODALE AUDIT PHILOLOGIQUE
   (Mobile <600px, Phablette/Tablette <900px, Tablette/Laptop <1200px)
   ========================================================================== */

/* 1. Colonne de gauche collante (Sticky) pour les tableaux larges */
.audit-matrix-table th:first-child,
.audit-matrix-table td:first-child,
.audit-benchmark-table th:first-child,
.audit-benchmark-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 4;
    background: #111726;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.45);
}

.audit-matrix-table th:first-child {
    z-index: 8;
    background: #171f30;
}

.audit-matrix-table tr.highlight-traduction-nue td:first-child {
    background: #1c2438;
}

.audit-benchmark-table tr.highlight-bench-nue td:first-child {
    background: #1b2336;
}

/* 2. Breakpoint Grand Tablette & Petit Laptop (< 1024px) */
@media (max-width: 1024px) {
    .bible-audit-modal-container {
        width: 96vw;
        max-height: 96vh;
    }
    
    .audit-grid-points {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }

    .audit-points-evaluation-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .audit-profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .audit-pathway-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Breakpoint Tablette Portrait & Phablette (< 850px) */
@media (max-width: 850px) {
    .bible-audit-modal {
        padding: 8px;
    }

    .bible-audit-modal-container {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 10px;
        margin: 0;
    }

    .bible-audit-modal-header {
        padding: 12px 16px;
    }

    .bible-audit-title {
        font-size: 1.18rem;
    }

    .bible-audit-subtitle {
        font-size: 0.78rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bible-audit-modal-body {
        padding: 16px;
    }

    .audit-grid-points {
        grid-template-columns: 1fr;
    }

    .audit-comparison-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .audit-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .audit-pillars-grid,
    .audit-tips-grid {
        grid-template-columns: 1fr;
    }

    .audit-profiles-grid {
        grid-template-columns: 1fr;
    }

    .audit-pathway-grid {
        grid-template-columns: 1fr;
    }
}

/* 4. Breakpoint Smartphone (< 600px) */
@media (max-width: 600px) {
    .bible-audit-modal {
        padding: 0;
    }

    .bible-audit-modal-container {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .bible-audit-modal-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .bible-audit-badge {
        font-size: 0.64rem;
        padding: 1px 7px;
        margin-bottom: 2px;
    }

    .bible-audit-title {
        font-size: 1.02rem;
        line-height: 1.25;
    }

    .bible-audit-subtitle {
        font-size: 0.72rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bible-audit-print-btn {
        display: none;
    }

    .bible-audit-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .bible-audit-nav-tabs {
        padding: 0 6px;
        gap: 2px;
        position: sticky;
        top: 0;
        z-index: 25;
        background: #090d16;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .bible-audit-tab-btn {
        padding: 8px 9px;
        font-size: 0.73rem;
        scroll-snap-align: start;
    }

    .bible-audit-modal-body {
        padding: 12px 10px;
    }

    .audit-intro-box {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .audit-intro-box h3 {
        font-size: 0.98rem;
    }

    .audit-intro-box p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    /* Tab 1 : 10 Points */
    .audit-point-card {
        padding: 12px;
        gap: 10px;
    }

    .audit-point-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .audit-point-details h4 {
        font-size: 0.88rem;
    }

    .audit-point-details p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Tab 2 : Matrice Table */
    .audit-matrix-table {
        min-width: 1000px;
        font-size: 0.78rem;
    }

    .audit-matrix-table th {
        padding: 10px 8px;
        font-size: 0.76rem;
    }

    .audit-matrix-table td {
        padding: 10px 8px;
        font-size: 0.76rem;
    }

    .score-badge {
        font-size: 0.74rem;
        padding: 2px 7px;
    }

    /* Tab 3 : 30 Versets */
    .audit-filter-bar {
        gap: 6px;
        margin-bottom: 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .audit-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .audit-filter-btn {
        padding: 4px 10px;
        font-size: 0.74rem;
        flex-shrink: 0;
    }

    .audit-verse-card {
        padding: 12px;
    }

    .audit-verse-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .audit-verse-ref {
        font-size: 0.95rem;
    }

    .audit-verse-root-badge {
        font-size: 0.72rem;
    }

    .audit-col-trad,
    .audit-col-nue {
        padding: 10px 12px;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .audit-col-diag {
        padding: 8px 10px;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Tab 4 : Benchmark */
    .audit-version-selector-container {
        padding: 12px;
        margin-bottom: 14px;
    }

    .audit-version-pills-row {
        gap: 6px;
    }

    .audit-version-pill {
        padding: 5px 9px;
        font-size: 0.74rem;
        gap: 5px;
    }

    .audit-selected-version-card {
        padding: 14px 12px;
    }

    .audit-selected-version-title h4 {
        font-size: 1.05rem;
    }

    .audit-points-evaluation-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .audit-eval-item {
        padding: 10px 12px;
    }

    .audit-eval-item h5 {
        font-size: 0.76rem;
    }

    .audit-eval-item p {
        font-size: 0.8rem;
    }

    .audit-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .audit-stat-box {
        padding: 10px 6px;
    }

    .audit-stat-val {
        font-size: 1.35rem;
    }

    .audit-stat-lbl {
        font-size: 0.7rem;
    }

    .audit-benchmark-table {
        min-width: 650px;
    }

    /* Tab 5 : Conclusions */
    .audit-conclusions-header-box {
        padding: 16px 12px;
    }

    .audit-masterpiece-badge {
        font-size: 0.72rem;
        padding: 4px 10px;
        letter-spacing: 0.02em;
    }

    .audit-cert-header {
        font-size: 1.1rem;
    }

    .audit-oath-card {
        padding: 12px 14px;
        margin: 12px 0;
    }

    .audit-oath-p1,
    .audit-oath-p2,
    .audit-oath-p3 {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 8px;
    }

    .audit-cert-seal-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .audit-pillars-section,
    .audit-tips-section {
        padding: 14px 12px;
    }

    .audit-pillars-title {
        font-size: 1.02rem;
        margin-bottom: 12px;
    }

    .audit-pillar-item,
    .audit-tip-card {
        padding: 12px;
        gap: 10px;
    }

    .audit-pillar-num,
    .audit-tip-icon {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .audit-pillar-content h5,
    .audit-tip-content h5 {
        font-size: 0.84rem;
    }

    .audit-pillar-content p,
    .audit-tip-content p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* Tab 6 : Profils */
    .audit-profiles-header-box {
        padding: 16px 12px;
    }

    .audit-hook-card {
        padding: 12px 14px;
        margin-top: 10px;
    }

    .audit-hook-card h5 {
        font-size: 0.88rem;
    }

    .audit-hook-card p {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .audit-profiles-section,
    .audit-pathway-section {
        padding: 14px 12px;
    }

    .audit-profile-card {
        padding: 12px;
        gap: 8px;
    }

    .audit-profile-card-icon {
        font-size: 1.3rem;
        padding: 6px;
    }

    .audit-profile-card-header-text h4 {
        font-size: 0.88rem;
    }

    .audit-profile-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .audit-profile-issue-box,
    .audit-profile-solution-box {
        padding: 6px 10px;
    }

    .audit-profile-issue-box p,
    .audit-profile-solution-box p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .audit-profile-quote-box {
        padding: 8px 10px;
    }

    .audit-profile-quote-box p {
        font-size: 0.76rem;
    }

    .audit-path-step-card {
        padding: 10px 12px;
        gap: 10px;
    }

    .audit-path-step-num {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .audit-path-step-content h5 {
        font-size: 0.82rem;
    }

    .audit-path-step-content p {
        font-size: 0.75rem;
    }

    /* Footer */
    .bible-audit-modal-footer {
        padding: 10px 12px;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .bible-audit-footer-seal {
        font-size: 0.7rem;
        text-align: center;
    }

    .bible-audit-footer-btn {
        width: 100%;
        padding: 9px 14px;
        font-size: 0.82rem;
    }
}


/* ==========================================
   EXTENSIONS DU GRAND AUDIT PHILOLOGIQUE IA
   ========================================== */

/* Volet 1 : Tableau Comparatif Impartial */
.audit-impartial-versions-box {
    background: #0d121e;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.audit-section-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin: 0 0 14px 0;
}

.audit-versions-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.audit-version-summary-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-version-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.audit-version-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.92rem;
}

.audit-version-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.12);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.audit-version-corpus,
.audit-version-strength,
.audit-version-limitation {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.45;
}

.audit-version-strength strong {
    color: #34d399;
}

.audit-version-limitation strong {
    color: #f87171;
}

/* Volet 2 : Fiche d'Audit Spécifique par Livre */
.audit-book-hero-card {
    background: linear-gradient(135deg, rgba(20, 27, 43, 0.95) 0%, rgba(13, 18, 30, 0.95) 100%);
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.audit-book-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.audit-book-greek-title {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    font-style: italic;
    margin-bottom: 4px;
}

.audit-book-main-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.audit-book-score-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.audit-book-score-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: #34d399;
    line-height: 1;
}

.audit-book-score-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.audit-book-metrics-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(197, 168, 128, 0.15);
    margin-bottom: 14px;
}

.audit-metric-item {
    font-size: 0.82rem;
    color: #cbd5e1;
}

.audit-book-executive-summary {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

/* Termes Clés Décontaminés */
.audit-terms-section {
    margin-bottom: 24px;
}

.audit-terms-table-wrap {
    overflow: auto;
    max-height: 480px;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 10px;
    background: #111726;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 168, 128, 0.4) rgba(10, 14, 23, 0.8);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    cursor: grab;
}

.audit-terms-table-wrap.is-dragging {
    cursor: grabbing !important;
    user-select: none !important;
}

.audit-terms-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.audit-terms-table-wrap::-webkit-scrollbar-track {
    background: rgba(10, 14, 23, 0.85);
    border-radius: 8px;
}

.audit-terms-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.4);
    border-radius: 8px;
}

.audit-terms-table {
    width: 100%;
    min-width: 780px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.84rem;
}

.audit-terms-table th {
    background: #171f30;
    color: var(--accent-gold);
    font-weight: 600;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(197, 168, 128, 0.3);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.audit-terms-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
    line-height: 1.5;
    background: #111726;
}

.audit-terms-table tr:hover td {
    background: #161e31;
}

.audit-terms-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    background: #111726;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.4);
}

.audit-terms-table th:first-child {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 20;
    background: #171f30;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.audit-term-bias {
    color: #f87171;
    font-style: italic;
}

.audit-term-restored {
    color: #34d399;
    font-weight: 600;
}

.audit-term-explanation {
    color: #cbd5e1;
}

/* Percées Théologiques */
.audit-breakthroughs-section {
    margin-bottom: 24px;
}

.audit-breakthroughs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.audit-breakthrough-card {
    background: #101625;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 10px;
    padding: 16px;
}

.audit-breakthrough-title {
    color: var(--accent-gold);
    font-size: 0.92rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.audit-breakthrough-desc {
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0;
}

.audit-verdict-box {
    background: rgba(197, 168, 128, 0.08);
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
}

.audit-verdict-text {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.55;
}

/* Volet 4 : Matrice & Volet 6 : Benchmark */
.audit-row-nue {
    background: rgba(197, 168, 128, 0.12) !important;
    border-left: 4px solid var(--accent-gold) !important;
}

.audit-benchmark-selector-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.audit-benchmark-detail-card {
    background: #111726;
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 12px;
    padding: 22px;
}

.audit-benchmark-detail-card.nue-highlight {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(197, 168, 128, 0.15);
}

.audit-benchmark-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.audit-benchmark-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.audit-benchmark-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #ffffff;
    margin: 4px 0 6px 0;
}

.audit-benchmark-philosophy {
    font-size: 0.86rem;
    color: #cbd5e1;
    margin: 0;
}

.audit-benchmark-big-score {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.big-score-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1;
}

.big-score-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.audit-benchmark-gauges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.audit-gauge-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
}

.gauge-label {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.gauge-bar {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #c5a880 0%, #34d399 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gauge-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    display: block;
    text-align: right;
}

.audit-benchmark-critique-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(197, 168, 128, 0.15);
}

.audit-benchmark-critique-box p {
    font-size: 0.86rem;
    color: #e2e8f0;
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.audit-benchmark-critique-box p:last-child {
    margin-bottom: 0;
}

/* Volet 5 : Comparatif Versets Développé */
.audit-verse-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 8px;
}

.audit-verse-ref-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-verse-ref {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.audit-verse-root {
    font-size: 0.78rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 6px;
    font-style: italic;
}

.audit-verse-score {
    font-size: 0.82rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
}

.audit-verse-comparison-split {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 14px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .audit-verse-comparison-split {
        grid-template-columns: 1fr;
    }
}

.audit-verse-trad-col,
.audit-verse-nue-col {
    padding: 12px 14px;
    border-radius: 8px;
}

.audit-verse-trad-col {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-verse-nue-col {
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.35);
}

.audit-col-tag {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.audit-col-tag.trad {
    color: #f87171;
}

.audit-col-tag.nue {
    color: var(--accent-gold);
}

.audit-col-verse-text {
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

.audit-verse-diagnostic-box {
    background: rgba(52, 211, 153, 0.08);
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
}

.audit-diag-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 4px;
}

.audit-diag-text {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   MODE RUBAN INTERLINÉAIRE PAR UNITÉS SOLIDAIRES (CSS OFFICIEL AVEC TYPOGRAPHIE NOBLE)
   ========================================================================== */

.flow-text-paragraph {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 1.08rem;
  line-height: 1.82;
  color: #ede3d2;
  letter-spacing: 0.005em;
  text-transform: none !important;
  font-variant: normal !important;
  font-feature-settings: normal !important;
  padding: 8px 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.flow-verse-unit {
  display: inline;
}

.flow-verse-content {
  display: inline;
}

/* Badge de verset cliquable */
.flow-verse-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 168, 128, 0.12);
  color: var(--accent-gold, #c5a880);
  border: 1px solid rgba(197, 168, 128, 0.35);
  font-size: 0.72em;
  font-weight: 700;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  padding: 0 4px;
  border-radius: 3px;
  margin: 0 4px 0 2px;
  cursor: pointer;
  vertical-align: super;
  line-height: 1.2;
  transition: all 0.2s ease;
  user-select: none;
}

.flow-verse-badge:hover {
  background: var(--accent-gold, #c5a880);
  color: #0b0c10;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.6);
  transform: scale(1.08);
}

.flow-plain-word {
  display: inline;
  color: #ede3d2;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 1.08rem;
  text-transform: none !important;
  font-variant: normal !important;
  font-feature-settings: normal !important;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* --- ÉTAT FERMÉ : LE MOT EST INLINE (OR D'ALLIANCE #c5a880 FLUIDE ET CONTINU) --- */
.flow-key-unit {
  display: inline;
  position: relative;
  cursor: pointer;
}

.flow-key-word {
  display: inline;
  color: var(--accent-gold, #c5a880) !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-weight: 600;
  font-size: inherit;
  line-height: inherit;
  text-transform: none !important;
  font-variant: normal !important;
  font-feature-settings: normal !important;
  letter-spacing: inherit;
  border-bottom: 1.5px dotted rgba(197, 168, 128, 0.7);
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  white-space: normal !important;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.flow-key-unit:hover .flow-key-word {
  color: #ffffff !important;
  border-bottom-color: var(--accent-gold, #c5a880);
  background: rgba(197, 168, 128, 0.18) !important;
  border-radius: 2px !important;
}

.flow-branch-stem,
.flow-branch-callout {
  display: none !important;
}

/* --- ÉTAT OUVERT : COLONNE SOLIDAIRE (MOT EN HAUT + TIGE + PASTILLE EN BAS) --- */
.flow-verse-unit.expanded .flow-key-unit,
.flow-key-unit.single-expanded {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  vertical-align: top !important;
  margin: 2px 4px 6px 2px !important;
}

.flow-verse-unit.expanded .flow-key-word,
.flow-key-unit.single-expanded .flow-key-word {
  background: rgba(22, 27, 34, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(197, 168, 128, 0.5);
  border-bottom: 2px solid var(--accent-gold, #c5a880) !important;
  border-radius: 4px;
  padding: 2px 7px !important;
  font-weight: 700;
}

/* Tige verticale de raccordement */
.flow-verse-unit.expanded .flow-branch-stem,
.flow-key-unit.single-expanded .flow-branch-stem {
  display: block !important;
  width: 2px;
  height: 6px;
  background: var(--accent-gold, #c5a880) !important;
  box-shadow: 0 0 6px rgba(197, 168, 128, 0.5) !important;
  margin-left: 14px;
}

/* Pastille sous le mot */
.flow-verse-unit.expanded .flow-branch-callout,
.flow-key-unit.single-expanded .flow-branch-callout {
  display: block !important;
  width: max-content;
  min-width: 180px;
  max-width: min(290px, 85vw);
  background: rgba(13, 17, 23, 0.97);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11.5px;
  font-family: var(--font-sans, -apple-system, sans-serif);
  line-height: 1.45;
  color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  text-align: left;
}

.branch-strong {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--accent-gold, #c5a880);
  background: rgba(197, 168, 128, 0.15);
  border: 1px solid rgba(197, 168, 128, 0.35);
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 4px;
}

.branch-original {
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  font-style: italic;
}

.branch-study-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 168, 128, 0.15);
  color: var(--accent-gold, #c5a880);
  border: 1px solid rgba(197, 168, 128, 0.4);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-sans, sans-serif);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.branch-study-btn:hover {
  background: var(--accent-gold, #c5a880);
  color: #0b0c10;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.6);
  transform: translateY(-1px);
}

.flow-callout-desc {
  color: #cbd5e1;
  font-size: 11.5px;
  display: inline;
}

.branch-strong {
  color: var(--accent-gold, #c5a880);
  font-weight: 700;
  font-size: 10.5px;
  background: rgba(197, 168, 128, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(197, 168, 128, 0.3);
  display: inline-block;
  margin-right: 3px;
}

.branch-original,
.branch-greek {
  color: #e2e8f0;
  font-style: italic;
  font-weight: 600;
  font-size: 11.5px;
  display: inline;
}

/* Bouton passerelle compact vers l'étude du dictionnaire (taille badge Strong) */
.branch-study-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(197, 168, 128, 0.16);
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 3px;
  color: var(--accent-gold, #c5a880);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-sans, -apple-system, sans-serif);
  padding: 1px 5px;
  margin-left: 5px;
  cursor: pointer;
  vertical-align: baseline;
  text-decoration: none;
  line-height: 1.35;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.branch-study-btn:hover {
  background: var(--accent-gold, #c5a880);
  color: #0b0c10;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
  transform: translateY(-1px);
}

.flow-callout-dict-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(197, 168, 128, 0.16);
  border: 1px solid rgba(197, 168, 128, 0.4);
  border-radius: 3px;
  color: var(--accent-gold, #c5a880);
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-sans, -apple-system, sans-serif);
  padding: 1px 5px;
  margin-left: 5px;
  cursor: pointer;
  vertical-align: baseline;
  text-decoration: none;
  line-height: 1.35;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.flow-callout-dict-btn:hover {
  background: var(--accent-gold, #c5a880);
  color: #0b0c10;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
  transform: translateY(-1px);
}

/* Bandeau de retour intelligent dans l'étude du mot */
.study-bible-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(197, 168, 128, 0.12);
  border: 1px solid var(--accent-gold, #c5a880);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.study-bible-return-title {
  color: var(--accent-gold, #c5a880);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-serif);
}

.study-bible-return-btn {
  background: var(--accent-gold, #c5a880);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.study-bible-return-btn:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   MODALE VIDÉO IMMERSIVE INTÉGRÉE (AGAPÉ VIDEO MODAL)
   ========================================================================== */
.agape-video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(11, 12, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.agape-video-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.agape-video-modal-container {
    background: #0f111a;
    border: 1px solid rgba(197, 168, 128, 0.4);
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(197, 168, 128, 0.15);
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(1);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.agape-video-modal-overlay.hidden .agape-video-modal-container {
    transform: scale(0.95);
}

.agape-video-modal-header {
    background: #0d1527;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

.agape-video-modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.agape-video-modal-icon {
    font-size: 1.25rem;
}

.agape-video-modal-title {
    color: var(--accent-gold, #c5a880);
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agape-video-modal-close {
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 50%;
    color: var(--accent-gold, #c5a880);
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.agape-video-modal-close:hover {
    background: rgba(197, 168, 128, 0.25);
    color: #fff;
    transform: scale(1.08);
}

.agape-video-modal-body {
    padding: 0;
    background: #000;
}

.agape-video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.agape-video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Optimisation Responsive Smartphone & Mobile (< 640px) */
@media (max-width: 640px) {
    .agape-video-modal-overlay {
        padding: 8px;
    }
    
    .agape-video-modal-container {
        border-radius: 10px;
        max-width: 100%;
    }
    
    .agape-video-modal-header {
        padding: 10px 12px;
    }
    
    .agape-video-modal-title {
        font-size: 0.92rem;
    }
    
    .agape-video-modal-close {
        width: 28px;
        height: 28px;
        font-size: 0.95rem;
    }

    .study-video-box {
        padding: 12px 14px !important;
        gap: 12px !important;
    }

    .study-video-box a.video-modal-trigger-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}



