/* ═══════════════════════════════════════════════
   JURY DIVISION — Shared Styles
   Linked from all divisions/jury-*.html pages
   ═══════════════════════════════════════════════ */

@keyframes jFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Layout ── */
.jury-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }

/* ── Hero Header ── */
.jury-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(231,76,60,0.06), rgba(231,76,60,0.01));
    border: 1px solid rgba(231,76,60,0.12);
    border-radius: 10px;
    padding: 1.6rem 2rem 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    overflow: hidden;
    animation: jFadeIn 0.4s ease;
}
.jury-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, #e74c3c, transparent 95%);
}
.jury-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    color: #e74c3c;
    letter-spacing: 2px;
    margin-bottom: 0.35rem;
}
.jury-hero-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.jury-hero-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.7rem;
    background: rgba(231,76,60,0.06);
    border: 1px solid rgba(231,76,60,0.15);
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.6rem;
    color: rgba(231,76,60,0.6);
    letter-spacing: 1.5px;
}

/* ── Main Navigation (3 sections: Opérations / Documents / Archives) ── */
.jury-nav-main {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    animation: jFadeIn 0.4s ease 0.1s both;
}
.jury-nav-main a, .jury-nav-main span {
    padding: 0.6rem 1.3rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(231,76,60,0.08);
    border-radius: 5px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(231,76,60,0.015);
}
.jury-nav-main a:hover {
    background: rgba(231,76,60,0.05);
    color: #fff;
    border-color: rgba(231,76,60,0.2);
}
.jury-nav-main .active {
    background: rgba(231,76,60,0.08);
    color: #e74c3c;
    font-weight: 700;
    border-color: rgba(231,76,60,0.25);
    cursor: default;
}

/* ── Operations Sub-Tabs (Rapports / Plaintes / Enquêtes / Inventaire) ── */
.jury-ops-tabs {
    display: flex;
    gap: 0;
    border: 1px solid rgba(231,76,60,0.12);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    animation: jFadeIn 0.4s ease 0.15s both;
}
.jury-ops-tab {
    flex: 1;
    min-width: 100px;
    padding: 0.55rem 0.5rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    background: rgba(231,76,60,0.015);
    border: none;
    border-right: 1px solid rgba(231,76,60,0.08);
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
}
.jury-ops-tab:last-child { border-right: none; }
.jury-ops-tab:hover { background: rgba(231,76,60,0.05); color: #fff; }
.jury-ops-tab.active { background: rgba(231,76,60,0.08); color: #e74c3c; font-weight: 700; }
.jury-tab-content { display: none; }
.jury-tab-content.active { display: block; animation: jFadeIn 0.3s ease; }

/* ── Document Sub-Navigation (5 doc links) ── */
.jury-nav-docs {
    display: flex;
    gap: 0;
    border: 1px solid rgba(231,76,60,0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    animation: jFadeIn 0.4s ease 0.15s both;
}
.jury-nav-docs a {
    flex: 1;
    min-width: 90px;
    padding: 0.5rem 0.3rem;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    background: rgba(231,76,60,0.015);
    border-right: 1px solid rgba(231,76,60,0.07);
    text-decoration: none;
    transition: all 0.2s;
}
.jury-nav-docs a:last-child { border-right: none; }
.jury-nav-docs a:hover { background: rgba(231,76,60,0.05); color: #fff; }
.jury-nav-docs a.active { background: rgba(231,76,60,0.08); color: #e74c3c; font-weight: 700; }

/* ── Document Index Card Grid ── */
.jury-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.jury-doc-card {
    display: block;
    padding: 1.2rem;
    background: rgba(231,76,60,0.02);
    border: 1px solid rgba(231,76,60,0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
    animation: jFadeIn 0.4s ease both;
}
.jury-doc-card:nth-child(1) { animation-delay: 0.05s; }
.jury-doc-card:nth-child(2) { animation-delay: 0.1s; }
.jury-doc-card:nth-child(3) { animation-delay: 0.15s; }
.jury-doc-card:nth-child(4) { animation-delay: 0.2s; }
.jury-doc-card:nth-child(5) { animation-delay: 0.25s; }
.jury-doc-card:hover {
    background: rgba(231,76,60,0.06);
    border-color: rgba(231,76,60,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(231,76,60,0.08);
}
.jury-doc-card-icon { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }
.jury-doc-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    color: #e74c3c;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}
.jury-doc-card p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Content Container ── */
.jury-content { animation: jFadeIn 0.4s ease 0.2s both; }
.jury-content-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(231,76,60,0.1);
}
.jury-content-header .ico { font-size: 1.4rem; }
.jury-content-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: #e74c3c;
    letter-spacing: 1px;
}

/* ── Rich Body Content ── */
.doc-rich-body { font-family: 'Share Tech Mono', monospace; font-size: 0.82rem; color: var(--text-primary); line-height: 1.7; }
.doc-rich-body h3 { font-family: 'Orbitron', sans-serif; font-size: 0.82rem; color: #e74c3c; margin: 1.2rem 0 0.6rem; letter-spacing: 0.5px; border-bottom: 1px solid rgba(231,76,60,0.12); padding-bottom: 0.3rem; }
.doc-rich-body h4 { font-family: 'Orbitron', sans-serif; font-size: 0.75rem; color: rgba(231,76,60,0.8); margin: 0.8rem 0 0.4rem; }
.doc-rich-body p { margin: 0.4rem 0; }
.doc-rich-body strong { color: #e74c3c; }
.doc-rich-body em { color: var(--text-muted); font-style: italic; }
.doc-rich-body ul, .doc-rich-body ol { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; }
.doc-rich-body li { margin-bottom: 0.25rem; }
.doc-rich-body li::marker { color: rgba(231,76,60,0.5); }
.doc-rich-body blockquote { margin: 0.6rem 0; padding: 0.5rem 0.8rem; border-left: 3px solid rgba(231,76,60,0.4); background: rgba(231,76,60,0.04); border-radius: 0 4px 4px 0; font-style: italic; color: rgba(255,255,255,0.7); }

/* ── Callouts ── */
.doc-callout { background: rgba(231,76,60,0.05); border: 1px solid rgba(231,76,60,0.15); border-radius: 4px; padding: 0.6rem 0.8rem; margin: 0.6rem 0; }
.doc-callout.warning { border-color: rgba(255,200,0,0.25); background: rgba(255,200,0,0.04); }
.doc-callout.warning strong { color: #ffc800; }
.doc-callout.danger { border-color: rgba(255,60,60,0.3); background: rgba(255,60,60,0.05); }
.doc-callout.danger strong { color: #ff4444; }
.doc-callout.info { border-color: rgba(0,170,255,0.2); background: rgba(0,170,255,0.04); }
.doc-callout.info strong { color: #00aaff; }

/* ── Steps ── */
.doc-step { display: flex; gap: 0.6rem; margin: 0.5rem 0; padding: 0.5rem 0; border-bottom: 1px solid rgba(231,76,60,0.05); }
.doc-step-num { min-width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3); border-radius: 50%; font-family: 'Orbitron', sans-serif; font-size: 0.65rem; font-weight: 700; color: #e74c3c; flex-shrink: 0; }
.doc-step-content { flex: 1; }

/* ── Tables ── */
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; margin: 0.5rem 0; }
.doc-table th { text-align: left; padding: 0.4rem 0.5rem; color: #e74c3c; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; letter-spacing: 0.5px; border-bottom: 2px solid rgba(231,76,60,0.2); background: rgba(231,76,60,0.04); }
.doc-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(231,76,60,0.05); color: var(--text-primary); }
.doc-table tr:hover { background: rgba(231,76,60,0.03); }

/* ── Badges ── */
.doc-badge { display: inline-block; padding: 0.1rem 0.4rem; border-radius: 2px; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.3px; }
.doc-badge.red { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; }
.doc-badge.yellow { background: rgba(255,200,0,0.1); border: 1px solid rgba(255,200,0,0.3); color: #ffc800; }
.doc-badge.green { background: rgba(0,200,80,0.1); border: 1px solid rgba(0,200,80,0.3); color: #00cc55; }
.doc-badge.blue { background: rgba(0,170,255,0.1); border: 1px solid rgba(0,170,255,0.3); color: #00aaff; }

/* ── Spoiler / Reveal ── */
.doc-spoiler { background: rgba(231,76,60,0.03); border: 1px solid rgba(231,76,60,0.1); border-radius: 4px; margin: 0.5rem 0; overflow: hidden; }
.doc-spoiler-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.8rem; cursor: pointer; user-select: none; transition: background 0.15s; }
.doc-spoiler-header:hover { background: rgba(231,76,60,0.06); }
.doc-spoiler-header .spoiler-arrow { color: var(--text-muted); font-size: 0.7rem; transition: transform 0.3s; }
.doc-spoiler-header.open .spoiler-arrow { transform: rotate(90deg); }
.doc-spoiler-header .spoiler-title { font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; color: #e74c3c; letter-spacing: 0.5px; }
.doc-spoiler-body { padding: 0 0.8rem; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.doc-spoiler-header.open + .doc-spoiler-body { max-height: 2000px; padding: 0.5rem 0.8rem 0.8rem; }

/* ── Oath / Serment ── */
.doc-oath { position: relative; margin: 0.8rem 0; padding: 1rem 1.2rem; background: rgba(231,76,60,0.04); border: 1px solid rgba(231,76,60,0.2); border-radius: 4px; text-align: center; }
.doc-oath::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #e74c3c, transparent); }
.doc-oath p { font-style: italic; margin: 0.3rem 0; color: rgba(255,255,255,0.8); }
.doc-oath p:first-child { margin-top: 0; }
.doc-oath p:last-child { margin-bottom: 0; }

/* ── Copy Blocks ── */
.doc-copy-block { position: relative; background: rgba(0,0,0,0.3); border: 1px solid rgba(231,76,60,0.15); border-radius: 4px; padding: 0.8rem 1rem 2.8rem; font-family: 'Share Tech Mono', monospace; font-size: 0.8rem; color: var(--text-primary); margin-bottom: 0.6rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; transition: border-color 0.2s; }
.doc-copy-block:hover { border-color: rgba(231,76,60,0.35); }
.doc-copy-btn { position: absolute; bottom: 0.5rem; right: 0.5rem; background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; padding: 0.3rem 0.7rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px; text-transform: uppercase; }
.doc-copy-btn:hover { background: rgba(231,76,60,0.2); border-color: #e74c3c; box-shadow: 0 0 8px rgba(231,76,60,0.15); }
.doc-copy-btn.copied { background: rgba(0,200,80,0.12); border-color: rgba(0,200,80,0.4); color: #00cc55; }

/* ── Labels & Dividers ── */
.doc-label { font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.doc-label .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #e74c3c; animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.doc-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(231,76,60,0.15), transparent); margin: 1rem 0; }

/* ── Password Reveal ── */
.doc-password-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.doc-password { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(231,76,60,0.2); border-radius: 4px; padding: 0.5rem 0.8rem; }
.doc-pw-value { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 700; color: #e74c3c; letter-spacing: 1.5px; filter: blur(6px); transition: filter 0.3s; user-select: none; }
.doc-pw-value.revealed { filter: blur(0); user-select: auto; }
.doc-pw-toggle, .doc-inline-copy { background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; padding: 0.3rem 0.7rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px; text-transform: uppercase; }
.doc-pw-toggle:hover, .doc-inline-copy:hover { background: rgba(231,76,60,0.2); border-color: #e74c3c; box-shadow: 0 0 8px rgba(231,76,60,0.15); }
.doc-pw-toggle.active { background: rgba(231,76,60,0.15); border-color: #e74c3c; }
.doc-inline-copy.copied { background: rgba(0,200,80,0.12); border-color: rgba(0,200,80,0.4); color: #00cc55; }

/* ── Archive Sub-tabs ── */
.archive-subtabs {
    display: flex;
    gap: 0;
    border: 1px solid rgba(231,76,60,0.12);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}
.archive-subtab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    background: rgba(231,76,60,0.015);
    border: none;
    border-right: 1px solid rgba(231,76,60,0.08);
    transition: all 0.2s;
    user-select: none;
}
.archive-subtab:last-child { border-right: none; }
.archive-subtab:hover { background: rgba(231,76,60,0.05); color: #fff; }
.archive-subtab.active { background: rgba(231,76,60,0.08); color: #e74c3c; font-weight: 700; }
.archive-section { display: none; }
.archive-section.active { display: block; }
