@font-face {
    font-family: 'PixelHorror';
    src: url('../fonts/pixel-font.ttf') format('truetype');
}

:root {
    /* Palette "Little Nightmares" / Underground */
    --color-bg-deep: #0a0505;       /* Noir presque rouge */
    --color-blood: #4a0e0e;         /* Rouge sang séché */
    --color-mud: #2b1d14;           /* Marron terre humide */
    --color-rust: #8b4513;          /* Rouille */
    --color-bone: #cabfb1;          /* Blanc cassé / Os */
    --color-text-shadow: rgba(0, 0, 0, 0.9);
    
    --font-main: 'PixelHorror', 'Courier New', monospace;
}

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

body {
    background-color: rgba(10, 5, 5, 0.7);
    /* Image de fond fixe couvrant tout l'écran */
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: normal;
    
    font-family: var(--font-main);
    color: var(--color-bone);
    overflow-x: hidden; 
    height: 100vh;
}

/* --- 2. NAVBAR IMMERSIVE --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
}

.nav-item {
    text-decoration: none;
    color: var(--color-bone);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 0px #000;
}

.nav-item:hover {
    color: var(--color-blood);
    text-shadow: 0 0 10px var(--color-blood);
}

/* --- 3. SPLIT SCREEN LAYOUT --- */
.split-screen-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.split {
    flex: 1; /* Chaque partie prend 50% */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Partie Gauche : Image */
.left-side {
    background: rgba(0, 0, 0, 0.2); /* Légère teinte */
}

.floating-cassette {
    max-width: 60%;
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.8));
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Partie Droite : Texte */
.right-side {
    /* Dégradé sombre venant de la droite vers le centre */
    background: linear-gradient(to left, rgba(10, 5, 5, 0.95), rgba(43, 29, 20, 0.6));
    padding: 4rem;
    text-align: left;
}

.lore-box {
    max-width: 600px;
}

.glitch-title {
    font-size: 4rem;
    color: var(--color-rust);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px #000;
    letter-spacing: 5px;
}

.lore-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(202, 191, 177, 0.8); /* Os avec transparence */
}

/* --- 4. UI ELEMENTS (Boutons brutaux) --- */
.btn-primary {
    display: inline-block;
    padding: 1.5rem 3rem;
    background-color: rgba(74, 14, 14, 0.6); /* Sang transparent */
    border: 2px solid var(--color-blood);
    color: var(--color-bone);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: all 0.2s;
    
    /* STYLE "PC Full Screen" / Brutal */
    border-radius: 0; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.btn-primary:hover {
    background-color: var(--color-blood);
    color: #fff;
    box-shadow: 0 0 30px var(--color-blood);
    transform: scale(1.02);
    cursor: pointer;
}

/* Responsive Mobile : Stack au lieu de split */
@media (max-width: 768px) {
    .split-screen-container {
        flex-direction: column;
    }
    .glitch-title {
        font-size: 2.5rem;
    }
    .navbar {
        background: black;
        padding: 1rem;
    }
    .nav-links {
        gap: 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

/* --- 5. PAGES INTERNES (propre a chaque page)  (AJOUTS) --- */

.page-container {
    padding: 8rem 2rem 2rem 2rem; 
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    min-height: 100vh;
}

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-title {
    color: var(--color-blood);
    border-bottom: 2px solid var(--color-rust);
    display: inline-block;
    margin: 3rem 0 2rem 0;
    font-size: 2rem;
}

/* Grille Personnages & Shop */
.char-grid, .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.char-card, .shop-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-mud);
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.char-card:hover, .shop-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-blood);
    background: rgba(43, 29, 20, 0.4);
}   

.item-img-placeholder {
    width: 100%;
    height: 150px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-rust);
    margin-bottom: 1rem;
    border: 1px dashed var(--color-rust);
}

/* Formulaire Donation */
.ritual-box {
    background: rgba(10, 5, 5, 0.8);
    padding: 3rem;
    border: 1px solid var(--color-blood);
    max-width: 500px;
    width: 100%;
}

.scary-input {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 1rem 0 2rem 0;
    background: #000;
    border: none;
    border-bottom: 2px solid var(--color-bone);
    color: var(--color-blood);
    font-family: var(--font-main);
    font-size: 1.5rem;
    text-align: center;
}

.scary-input:focus {
    outline: none;
    border-bottom-color: var(--color-blood);
}

/* Liste des Crédits */
.credits-list {
    max-width: 800px;
    margin:  0 auto;
    text-align: left;
    border-left: 2px solid var(--color-rust);
    padding-left: 4rem;
    padding-top: 10px;
}

.credit-row {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    padding-bottom: 0.5rem;
}

.credit-row .role {
    color: var(--color-bone);
    opacity: 0.3;
}

.credit-row .name {
    color: var(--color-blood);
    font-weight: bold;
    letter-spacing: 1px;
}

.legal-footer {
    margin-top: 4rem;
    font-size: 0.8rem;
    opacity: 0.5;
}