/* 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; }