/* Reset & Base Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { width: 100%; height: 100%; background-color: #000; color: #fff; font-family: 'Inter', sans-serif; overflow-x: hidden; }

/* Typography */
h1, h2 { font-family: 'Cinzel', serif; font-weight: 400; letter-spacing: 2px; }
.cuneiform { font-size: 5rem; color: #aaa; text-shadow: 0 0 20px rgba(255,255,255,0.1); margin-bottom: 2rem; }

/* Language Toggle */
#lang-toggle { position: fixed; top: 20px; right: 30px; z-index: 1000; font-size: 0.8rem; letter-spacing: 2px; opacity: 0.6; transition: opacity 0.3s ease; }
#lang-toggle:hover { opacity: 1; }
#lang-toggle span { cursor: pointer; }
#lang-toggle span.active { color: #fff; font-weight: 600; }
#lang-toggle span:not(.active) { color: #555; }

/* The Threshold */
#threshold { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; display: flex; justify-content: center; align-items: center; z-index: 50; transition: opacity 2s ease; }
.center-content { text-align: center; }
#enter-btn { background: transparent; color: #fff; border: 1px solid #333; padding: 15px 40px; font-family: 'Cinzel', serif; font-size: 1rem; letter-spacing: 3px; cursor: pointer; transition: all 0.4s ease; }
#enter-btn:hover { background: #fff; color: #000; border-color: #fff; }

/* The Sanctum & Video */
#sanctum { display: none; width: 100%; position: relative; }
#bg-video { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    object-fit: cover; 
    z-index: 1; /* Elevated from -1 to ensure it breaks through the body background */
    pointer-events: none; 
}

/* Content Overlay */
#content-overlay { 
    position: relative; 
    width: 100%; 
    background: rgba(0,0,0,0.85); /* Slightly darker to ensure text contrast against the video */
    z-index: 10; 
    margin-top: 100vh; /* Changed from padding to margin. This leaves the first 100vh of the screen crystal clear for the video induction */
    padding-bottom: 5rem;
}

/* The Scroll Command */
#scroll-prompt {
    position: absolute;
    top: -120px; /* Anchors it exactly 120px above the black dossier */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0; /* Hidden until the video finishes */
    z-index: 5;
    transition: opacity 2s ease;
    pointer-events: none;
}
#scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #aaa;
    display: block;
    margin-bottom: 15px;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(170,170,170,0.8), transparent);
    margin: 0 auto;
}

.modality, .admission { min-height: 50vh; padding: 5rem 10%; max-width: 900px; margin: 0 auto; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.modality h2, .admission h2 { font-size: 2rem; margin-bottom: 1.5rem; color: #ddd; }
.modality p { font-size: 1.1rem; line-height: 1.8; color: #aaa; font-weight: 300; }
.admission ul { list-style: none; margin-bottom: 3rem; }
.admission li { font-size: 1.1rem; color: #aaa; margin-bottom: 1.5rem; font-style: italic; }
.contact-email { display: inline-block; color: #fff; text-decoration: none; font-family: 'Cinzel', serif; font-size: 1.5rem; border-bottom: 1px solid #fff; padding-bottom: 5px; transition: opacity 0.3s ease; }
.contact-email:hover { opacity: 0.6; }

/* L'Autorité - Split Layout */
.dossier-split { display: flex; flex-direction: column; align-items: center; max-width: 1000px; margin: 0 auto; padding: 5rem 10%; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dossier-text { width: 100%; text-align: center; margin-bottom: 3rem; }
.dossier-text h2 { font-size: 2rem; margin-bottom: 1.5rem; color: #fff; }
.dossier-text p { font-size: 1.1rem; line-height: 1.8; color: #aaa; font-weight: 300; }
.dossier-image { width: 100%; max-width: 450px; }
.dossier-image img { width: 100%; height: auto; display: block; border: 1px solid #222; }

@media (min-width: 768px) {
    .dossier-split { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
    .dossier-text { width: 50%; text-align: left; margin-bottom: 0; padding-right: 3rem; }
    .dossier-image { width: 45%; }
}

/* The Interrogation Block */
.interrogation-block { margin-bottom: 3rem; text-align: left; background: #050505; padding: 2rem; border-left: 2px solid #333; }
.interrogation-block p { font-size: 1rem; color: #aaa; margin-bottom: 1rem; font-style: italic; }
.interrogation-block p:last-child { margin-bottom: 0; }

/* The Classified Form Interface */
#audit-form { display: flex; flex-direction: column; width: 100%; text-align: left; }
#audit-form textarea, #audit-form input { 
    background: transparent; 
    border: 1px solid #333; 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: none; /* Prevents user from dragging the box out of proportion */
}
#audit-form textarea:focus, #audit-form input:focus { border-color: #888; outline: none; }
#audit-form textarea { height: 150px; }
#audit-form button { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 1.2rem; 
    font-family: 'Cinzel', serif; 
    font-size: 1rem; 
    letter-spacing: 3px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    margin-top: 1rem;
}
#audit-form button:hover { background: #aaa; }

/* =========================================
   LA BIBLIOTHÈQUE (LIBRARY MODULE)
   ========================================= */

.library-body {
    background-color: #030303;
    color: #e0e0e0;
    overflow-y: auto; /* Allows normal scrolling */
}

/* Navigation Bar */
.library-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
}
.library-nav a { color: #888; text-decoration: none; transition: color 0.3s ease; }
.library-nav a:hover { color: #fff; }
.nav-title { font-family: 'Cinzel', serif; letter-spacing: 4px; color: #fff; }
.lang-links .active { color: #fff; border-bottom: 1px solid #fff; }

/* Library Index Container */
.library-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.library-header {
    margin-bottom: 4rem;
    text-align: center;
    border-bottom: 1px solid #222;
    padding-bottom: 2rem;
}
.library-header h1 { font-family: 'Cinzel', serif; font-size: 2.5rem; margin-bottom: 1rem; }
.library-header p { font-family: 'Inter', sans-serif; color: #aaa; line-height: 1.6; }

/* Dossier List */
.dossier-entry {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #333;
}
.dossier-meta { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #666; letter-spacing: 2px; margin-bottom: 1rem; display: flex; gap: 1.5rem; }
.dossier-entry h2 { font-family: 'Cinzel', serif; font-size: 1.5rem; margin-bottom: 1rem; }
.dossier-entry h2 a { color: #fff; text-decoration: none; transition: color 0.3s; }
.dossier-entry h2 a:hover { color: #aaa; }
.dossier-abstract { font-family: 'Lora', serif; font-size: 1.1rem; line-height: 1.8; color: #bbb; margin-bottom: 1.5rem; }
.read-btn { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 2px; color: #fff; text-decoration: none; border: 1px solid #555; padding: 0.5rem 1rem; transition: background 0.3s; }
.read-btn:hover { background: #222; }

/* Archive Footer Link */
.archive-link {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}
.archive-link a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #555; /* Very dark grey, barely visible */
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.archive-link a:hover {
    color: #fff; /* Ignites only when hovered */
}

/* =========================================
   ARTICLE READING ENVIRONMENT
   ========================================= */

.academic-paper {
    max-width: 750px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.paper-header { margin-bottom: 3rem; text-align: left; }
.paper-category { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 2px; color: #888; text-transform: uppercase; }
.paper-header h1 { font-family: 'Cinzel', serif; font-size: 2.2rem; line-height: 1.3; margin: 1rem 0; color: #fff; }
.paper-authorship { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: #888; line-height: 1.5; border-left: 2px solid #555; padding-left: 1rem; margin-top: 2rem; }

.paper-content { font-family: 'Lora', serif; font-size: 1.15rem; line-height: 1.9; color: #dcdcdc; }
.paper-content p { margin-bottom: 1.5rem; }
.paper-content h2 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: #fff; margin: 3rem 0 1.5rem 0; }
.abstract { padding: 1.5rem; background: #080808; border: 1px solid #222; font-size: 1rem; }
.paper-content blockquote { margin: 2rem 0; padding: 1.5rem 2rem; font-style: italic; border-left: 3px solid #fff; background: #050505; color: #fff; font-size: 1.25rem; line-height: 1.6; }

.paper-footer { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid #333; text-align: center; }
.paper-footer h3 { font-family: 'Cinzel', serif; margin-bottom: 1rem; }
.paper-footer p { font-family: 'Inter', sans-serif; color: #aaa; margin-bottom: 2rem; }
.action-btn { background: #fff; color: #000; padding: 1rem 2rem; font-family: 'Cinzel', serif; font-weight: bold; letter-spacing: 2px; text-decoration: none; transition: background 0.3s; }
.action-btn:hover { background: #aaa; }

/* =========================================
   TRANSMISSIONS (STANDALONE VIDEO MODULE)
   ========================================= */

.transmission-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.transmission-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.transmission-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.transmission-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    background: #000;
    border: 1px solid #333;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    outline: none;
}