/* --- STYLE GLOBAL & ACCUEIL --- */
body {
    margin: 0; padding: 0;
    background-color: #2b4b7c;
    font-family: 'Arial Black', sans-serif;
    color: white;
}

.header-band {
    min-height: 320px;
    background-color: #ffb347;
    display: flex; justify-content: center; align-items: center;
    border-bottom: 8px solid #e68a00;
}

.logo-area { text-align: center; }
.main-logo { width: 550px; max-width: 90%; height: auto; }
.archive-stamp { font-size: 5rem; margin: -10px 0 0 0; letter-spacing: 10px; text-shadow: 4px 4px 0px #2b4b7c; }

.content-grid { display: flex; justify-content: center; gap: 80px; margin-top: 50px; }

/* Le carré bleu interactif */
.journal-box {
    width: 280px; height: 380px;
    background-color: #e6ddd0; /* Fond papier interne */
    border: 6px solid #5b7fff;
    position: relative; overflow: hidden;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.3);
}

.journal-link { text-decoration: none; color: #1a1a1a; display: block; padding: 15px; height: 100%; }
.journal-preview h3 { font-family: serif; font-size: 1.1rem; border-top: 1px solid #1a1a1a; padding-top: 5px; }
.preview-date { font-size: 0.7rem; font-weight: bold; }

.hover-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: #2b4b7c; color: white; padding: 15px 0;
    text-align: center; transform: translateY(100%); transition: 0.3s;
}
.journal-box:hover .hover-overlay { transform: translateY(0); }

.archive-nav h2 { font-size: 2rem; border-bottom: 4px solid #ffb347; }
.archive-nav ul { list-style: none; padding: 0; }
.archive-nav a { color: white; text-decoration: none; font-size: 1.5rem; display: block; margin: 10px 0; }
.archive-nav a:hover { color: #ffb347; padding-left: 10px; transition: 0.2s; }

/* --- STYLE JOURNAL (newspaper.html) --- */
.news-bg { background: #d2c5b0; color: #1a1a1a; font-family: 'Times New Roman', serif; padding: 40px 20px; }
.news-paper { max-width: 750px; margin: 0 auto; background: #e6ddd0; padding: 40px; box-shadow: 0 0 20px rgba(0,0,0,0.1); border: 1px solid #bdae96; }
.news-header { border-bottom: 3px double #333; text-align: center; margin-bottom: 20px; }
.news-sub { border-top: 1px solid #333; padding: 5px 0; font-weight: bold; font-size: 0.9rem; }
.news-content h2 { font-size: 2.2rem; text-transform: uppercase; line-height: 1; }
.redacted-box { background: #1a1a1a; color: #1a1a1a; padding: 10px; margin: 20px 0; }
.redacted-box:hover { color: #333; } /* Secret : on voit un peu au survol */
.footer-nav { margin-top: 40px; text-align: center; }
.footer-nav a { color: #2b4b7c; font-weight: bold; text-decoration: none; }
/* --- STYLE PAGE JOURNAL --- */
.news-body {
    background-color: #d2c5b0; /* Beige papier jauni */
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    margin: 0;
    padding: 50px 20px;
    color: #1a1a1a;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
    background: #e6ddd0;
    padding: 40px 60px;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    border: 1px solid #bdae96;
}

.news-header {
    text-align: center;
    border-bottom: 4px double #333;
    margin-bottom: 30px;
}

.news-header h1 {
    font-family: 'Times New Roman', serif;
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: -1px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-family: serif;
    font-weight: bold;
    border-top: 1px solid #333;
    padding: 5px 0;
    font-size: 0.9rem;
}

.news-article h2 {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.news-article p {
    font-family: 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 1.5;
    text-align: justify;
}

.warning-box {
    border-left: 4px solid #333;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
}

.news-footer {
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #bdae96;
    padding-top: 20px;
}

.news-footer a {
    color: #2b4b7c;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
}

.news-footer a:hover {
    text-decoration: underline;
}
/* --- STYLE RAPPORT DE SÉCURITÉ (Archive 1) --- */
.archive-body {
    background-color: #121212;
    padding: 40px;
}

.security-report {
    max-width: 850px;
    margin: 0 auto;
    background-color: #f0f0f0; /* Gris papier administratif */
    padding: 50px;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid #999;
}

.report-header {
    text-align: center;
    border-bottom: 3px solid #333;
    margin-bottom: 20px;
}

.badge {
    border: 2px solid #333;
    width: 60px;
    margin: 0 auto 10px;
    font-weight: bold;
}

.report-meta table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.report-meta td {
    border: 1px solid #333;
    padding: 10px;
    font-size: 0.9rem;
}

.report-narrative h3 {
    text-decoration: underline;
}

.note-box {
    margin-top: 30px;
    padding: 15px;
    background-color: #e0e0e0;
    border-left: 5px solid #333;
    font-style: italic;
}

.stamp-approved {
    margin: 40px 0;
    width: fit-content;
    border: 4px solid #444;
    padding: 10px 20px;
    color: #444;
    font-weight: bold;
    font-size: 1.5rem;
    transform: rotate(-5deg);
    opacity: 0.5;
}
/* --- STYLE BLUEPRINT (Archive 2) --- */
.blueprint-body {
    background-color: #002b5c; /* Le bleu typique des plans */
    padding: 30px;
}

.blueprint-frame {
    max-width: 900px;
    margin: 0 auto;
    border: 3px solid #6699ff;
    padding: 20px;
    color: #6699ff; /* Texte bleu clair/blanc */
    font-family: 'Courier New', Courier, monospace;
    background-image: 
        linear-gradient(rgba(102, 153, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 153, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px; /* Grillage de fond */
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #6699ff;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.bp-title-box h1 {
    font-size: 1.5rem;
    margin: 5px 0;
}

.bp-serial {
    text-align: right;
    font-size: 0.8rem;
}

.ascii-art {
    white-space: pre; /* Garde les espaces pour le dessin */
    font-size: 1.2rem;
    text-align: center;
    margin: 40px 0;
    color: #fff;
    text-shadow: 0 0 5px #6699ff;
}

.technical-notes {
    border: 1px solid #6699ff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.technical-notes h3 {
    text-decoration: underline;
    margin-top: 0;
}

.bp-stamp {
    margin-top: 30px;
    font-size: 2rem;
    font-weight: bold;
    border: 4px solid #fff;
    width: fit-content;
    padding: 10px;
    opacity: 0.3;
    transform: rotate(-10deg);
}
/* --- STYLE BLUEPRINT (Archive 2) --- */
.blueprint-body {
    background-color: #002b5c; /* Bleu profond */
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.blueprint-frame {
    max-width: 900px;
    width: 100%;
    border: 3px solid #6699ff;
    padding: 30px;
    color: #6699ff;
    font-family: 'Courier New', Courier, monospace;
    /* Création du quadrillage technique */
    background-image: 
        linear-gradient(rgba(102, 153, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 153, 255, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #6699ff;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.bp-title-box h1 {
    font-size: 1.8rem;
    margin: 5px 0;
    color: #fff; /* On fait ressortir le titre en blanc */
}

.ascii-art {
    white-space: pre;
    font-size: 1.1rem;
    line-height: 1.2;
    text-align: center;
    margin: 40px 0;
    color: #fff;
    text-shadow: 0 0 8px #6699ff;
}

.technical-notes {
    border: 1px solid #6699ff;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.technical-notes h3 {
    text-decoration: underline;
    margin-top: 0;
}

.bp-stamp {
    margin-top: 30px;
    font-size: 1.8rem;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    padding: 5px 15px;
    transform: rotate(-5deg);
    opacity: 0.4;
}
/* --- STYLE MORE ARCHIVE (Page Liste) --- */
.more-body {
    background-color: #0c0c0c;
    color: #00ff41; /* Vert terminal classique */
    font-family: 'Courier New', Courier, monospace;
    padding: 50px 20px;
}

.terminal-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #00ff41;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.terminal-header {
    border-bottom: 1px solid #00ff41;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.db-category {
    margin-bottom: 40px;
}

.db-category h3 {
    background-color: #00ff41;
    color: #0c0c0c;
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: 15px;
}

.db-category ul {
    list-style: none;
    padding-left: 10px;
}

.db-category li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.3);
}

.db-link {
    color: #00ff41;
    text-decoration: none;
    transition: 0.2s;
}

.db-link:hover {
    background-color: #00ff41;
    color: #0c0c0c;
    padding-left: 10px;
}

.db-size {
    font-size: 0.8rem;
    opacity: 0.6;
}

.terminal-footer {
    margin-top: 50px;
    text-align: left;
}

.terminal-footer a {
    color: #00ff41;
    text-decoration: underline;
}
/* --- STYLE LOGIN --- */
.login-box {
    max-width: 400px !important;
    margin-top: 100px !important;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    background: #000;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 10px;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
}

.login-btn {
    background: #00ff41;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.login-btn:hover {
    background: #008f11;
}
/* --- STYLE TERMINAL AFTON --- */
.afton-body {
    background-color: #050000; /* Un noir encore plus profond */
}

.afton-border {
    border: 2px solid #ff0000 !important; /* Bordure rouge */
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.afton-welcome {
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-left: 5px solid #ff0000;
    padding-left: 10px;
}

.afton-cat h3 {
    background-color: #ff0000 !important; /* Fond rouge pour les catégories */
    color: #000 !important;
}

.afton-body .db-link {
    color: #ff0000;
}

.afton-body .db-link:hover, .afton-body .selected-file {
    background-color: #ff0000 !important;
    color: #000 !important;
}

.afton-body .db-size {
    color: #8b0000; /* Rouge foncé pour les tailles de fichiers */
}
/* --- OVERRIDE POUR LE TERMINAL AFTON --- */

/* On change le fond et la couleur du texte général */
.afton-body {
    background-color: #0a000a !important; /* Noir avec une pointe de violet */
    color: #cc00ff !important; /* Violet néon */
}

/* On change la bordure du container */
.afton-body .terminal-container {
    border-color: #cc00ff !important;
    box-shadow: 0 0 15px rgba(204, 0, 255, 0.4);
}

/* On change la couleur des titres de catégorie [ IMAGES ], etc. */
.afton-body .db-category h3 {
    background-color: #cc00ff !important;
    color: #000 !important;
}

/* On change la couleur des liens cliquables */
.afton-body .db-link {
    color: #cc00ff !important;
}

/* On change la couleur quand on survole ou sélectionne au clavier */
.afton-body .db-link:hover, 
.afton-body .selected-file {
    background-color: #cc00ff !important;
    color: #000 !important;
}

/* On change la couleur des lignes de séparation */
.afton-body .db-category li {
    border-bottom: 1px dashed rgba(204, 0, 255, 0.3);
}