/* style.css - Grimoire Catena Sombre 2025 - PCtamalou.fr */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
    color: #0ff; /* Neon cyan */
}

/* Body and Background */
body {
    background: #000; /* Pure black */
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas for Matrix Effect */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15; /* Subtle matrix glow */
}

/* Header Banner */
header.banner {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(45deg, #0ff2, #f0f2);
    border-bottom: 2px solid #0ff;
    box-shadow: 0 0 25px #0ff, 0 0 50px #f0f;
    animation: neonPulse 1.5s infinite alternate;
}

header h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    text-shadow: 0 0 15px #0ff, 0 0 30px #f0f;
}

header p {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    color: #f0f; /* Neon violet */
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.85);
    padding: 1.2rem;
    border-bottom: 1px solid #0ff;
}

nav a {
    color: #0ff;
    text-decoration: none;
    margin: 0.5rem 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    color: #f0f;
    text-shadow: 0 0 10px #f0f;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #f0f;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: rgba(0, 0, 0, 0.75);
    padding: 2.2rem;
    margin: 1.5rem 0;
    border: 1px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    transition: all 0.5s;
    transform: perspective(1000px) translateZ(0);
}

section:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: perspective(1000px) translateZ(25px);
    box-shadow: 0 0 40px #f0f;
}

h2, h3, h4 {
    color: #f0f;
    text-shadow: 0 0 8px #f0f;
    margin-bottom: 1.2rem;
}

p, li {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

ul, ol {
    margin-left: 2rem;
}

code {
    background: rgba(0, 255, 255, 0.15);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

pre {
    background: rgba(0, 0, 0, 0.9);
    padding: 1.2rem;
    border: 1px solid #0ff;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px #0ff;
}

/* Warning Box */
.warning {
    background: rgba(255, 0, 0, 0.25);
    border: 2px solid #f00;
    padding: 1.2rem;
    margin: 1.5rem 0;
    box-shadow: 0 0 15px #f00;
    color: #f00;
    text-shadow: 0 0 5px #f00;
}

/* Popup Legal */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 2.5rem;
    border: 2px solid #0ff;
    box-shadow: 0 0 40px #0ff;
    max-width: 650px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.popup-content h2 {
    margin-bottom: 1.2rem;
}

.popup-content p {
    margin-bottom: 1.2rem;
}

.popup-content a {
    color: #f0f;
    text-decoration: underline;
}

.popup-content input[type="checkbox"] {
    margin: 1.2rem 0;
}

.popup-content button {
    background: #0ff;
    color: #000;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-content button:disabled {
    background: #444;
    cursor: not-allowed;
}

.popup-content button:hover:not(:disabled) {
    background: #f0f;
    box-shadow: 0 0 15px #f0f;
}

/* Neon Popup (Japanese Vibe) */
.neon-popup .neon-popup-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #f0f;
    box-shadow: 0 0 40px #f0f, 0 0 60px #0ff;
    position: relative;
}

.neon-popup .heart {
    font-size: 2.5rem;
    position: absolute;
    top: -1.8rem;
    left: 50%;
    transform: translateX(-50%);
    animation: heartPulse 0.8s infinite;
}

.neon-popup button {
    background: #f0f;
    color: #000;
}

.neon-popup button:hover {
    background: #0ff;
    box-shadow: 0 0 15px #0ff;
}

/* Tables (for Malware Comparison) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0ff;
}

th, td {
    padding: 0.8rem;
    border: 1px solid #0ff;
    text-align: left;
}

th {
    background: rgba(0, 255, 255, 0.2);
    color: #f0f;
}

td {
    color: #0ff;
}

/* Images (for Catena Diagram) */
img {
    max-width: 100%;
    border: 1px solid #0ff;
    box-shadow: 0 0 20px #0ff;
    margin-bottom: 1.5rem;
}

/* Footer */
footer.footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #0ff;
    margin-top: 2.5rem;
}

footer p {
    color: #0ff;
}

footer a {
    color: #f0f;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes neonPulse {
    0% { box-shadow: 0 0 15px #0ff, 0 0 30px #f0f; }
    100% { box-shadow: 0 0 25px #0ff, 0 0 50px #f0f; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes heartPulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.3); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    nav a {
        margin: 0.5rem;
        font-size: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .popup-content {
        width: 90%;
        padding: 1.5rem;
    }
}