/* ═══════════════════════════════════════════
   ARSENICK.FR - Main Stylesheet
   ═══════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
    --bg-dark: #0d1117;
    --bg-panel: #161b22;
    --text-light: #fefefe;
    --text-muted: #d1d5db;
    --text-code: #839496;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;
    --border-color: #30363d;
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
}

/* ── Reset ─────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
}

.font-mono {
    font-family: var(--font-mono);
}

/* ── Bordure theme ─────────────────────────── */
.border-solar {
    border-color: var(--border-color);
}

/* ── Selection texte ───────────────────────── */
::selection {
    background-color: rgba(249, 115, 22, 0.3);
}

/* ── Block titre module ────────────────────── */
.block-title {
    font-family: var(--font-mono);
    color: var(--accent-green);
    font-weight: bold;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

/* ── Terminal code area ────────────────────── */
.code-area {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-code);
    overflow: auto;
}

/* ── Info box (cat-voyage, txt-home) ───────── */
.info-box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.info-box--orange {
    border-left: 4px solid var(--accent-orange-dark);
}

.info-box--green {
    border-left: 4px solid #16a34a;
    font-style: italic;
}

/* ── Metadata overlay (sur images) ─────────── */
.metadata-overlay {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #9ca3af;
    padding: 0.25rem;
}

/* ── CTA button ────────────────────────────── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(234, 88, 12, 0.5);
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: inherit;
}

.cta-btn:hover {
    background-color: var(--accent-orange-dark);
    color: black;
}

/* ── Location badge (intro) ────────────────── */
.location-badge {
    border-left: 4px solid var(--accent-orange);
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 0.5rem 1rem;
}

/* ── Categorie label ───────────────────────── */
.category-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-orange);
}

/* ── Terminal Modal ────────────────────────── */
#terminal-modal {
    animation: termFadeIn 0.2s ease;
}

@keyframes termFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#terminal-input {
    caret-color: var(--accent-green);
}

#terminal-input::placeholder {
    color: #374151;
    font-style: italic;
}

#terminal-output::-webkit-scrollbar {
    width: 6px;
}
#terminal-output::-webkit-scrollbar-track {
    background: transparent;
}
#terminal-output::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

/* ── Effet : Grayscale (La Haine) ─────────── */
.grayscale-mode {
    filter: grayscale(1) !important;
    transition: filter 0.8s ease;
}

/* ── Effet : Inverted (darkmode) ──────────── */
.inverted-mode {
    filter: invert(1) hue-rotate(180deg);
    transition: filter 0.5s ease;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 0.75rem;
    }

    #terminal-modal .relative {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border: none;
    }

    #terminal-output {
        font-size: 0.75rem;
    }
}
