/* Reset et variables CSS */
:root {
    --primary-red: #8B0000;
    --faded-red: #A05252;
    --light-red: #CD5C5C;
    --primary-beige: #F5F5DC;
    --faded-beige: #E8E8D0;
    --dark-beige: #D2B48C;
    --text-dark: #2C1810;
    --text-light: #8B7355;
    --accent-gold: #DAA520;
    --shadow-dark: rgba(139, 0, 0, 0.3);
    --shadow-light: rgba(245, 245, 220, 0.2);
    --gradient-red: linear-gradient(135deg, var(--primary-red), var(--faded-red));
    --gradient-beige: linear-gradient(135deg, var(--primary-beige), var(--faded-beige));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    background: var(--gradient-beige);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay pour effet vintage */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* Header */
.header {
    background: var(--gradient-red);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-dark);
    z-index: 10;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-beige);
    text-shadow: 3px 3px 0px var(--shadow-dark);
    position: relative;
    z-index: 2;
}

.title-line {
    display: block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.header-decoration {
    margin-top: 1rem;
    position: relative;
}

.snow-line {
    width: 100px;
    height: 2px;
    background: var(--primary-beige);
    margin: 0 auto;
    position: relative;
}

.snow-line::before,
.snow-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-beige);
    border-radius: 50%;
    top: -1px;
}

.snow-line::before { left: -10px; }
.snow-line::after { right: -10px; }

.blood-drop {
    width: 8px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 1rem auto;
    position: relative;
    animation: drop 2s infinite;
}

@keyframes drop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Navigation */
.navigation {
    background: var(--faded-beige);
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--primary-red);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary-red);
    color: var(--primary-beige);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.nav-btn i {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-red);
    text-shadow: 2px 2px 0px var(--shadow-light);
}

/* Search */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--primary-red);
    border-radius: 25px;
    background: var(--primary-beige);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--light-red);
    box-shadow: 0 0 15px var(--shadow-dark);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-red);
    font-size: 1.1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--faded-beige);
    border: 2px solid var(--primary-red);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    color: var(--primary-beige);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

/* Characters Grid */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background: var(--primary-beige);
    border: 3px solid var(--primary-red);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.character-card:hover::before {
    left: 100%;
}

.character-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-dark);
    border-color: var(--light-red);
}

.character-image {
    width: 100%;
    height: 280px;
    background: var(--faded-beige);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-beige);
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.character-card:hover .character-image img {
    transform: scale(1.1);
}

.character-image.placeholder {
    background: var(--gradient-beige);
    color: var(--text-light);
    font-size: 3rem;
}

.character-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0px var(--shadow-light);
}

.character-role {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.character-traits {
    list-style: none;
    margin-bottom: 1rem;
}

.character-traits li {
    padding: 0.25rem 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.character-traits li::before {
    content: '•';
    color: var(--primary-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.character-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-killer {
    background: var(--primary-red);
    color: var(--primary-beige);
}

.status-victim {
    background: var(--text-light);
    color: var(--primary-beige);
}

.status-witness {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.status-official {
    background: var(--dark-beige);
    color: var(--text-dark);
}

.status-civilian {
    background: var(--faded-red);
    color: var(--primary-beige);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--primary-beige);
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid var(--primary-red);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: var(--primary-red);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: all 0.3s ease;
}

.close:hover {
    color: var(--light-red);
    transform: scale(1.2);
}

.character-detail {
    margin-top: 1rem;
}

.character-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.character-header .character-image {
    width: 280px;
    height: 350px;
    flex-shrink: 0;
}

.character-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.character-info p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.character-body {
    display: grid;
    gap: 2rem;
}

.character-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.character-section ul {
    list-style: none;
}

.character-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--faded-beige);
    position: relative;
    padding-left: 1.5rem;
}

.character-section li::before {
    content: '→';
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.character-section p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-red);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--primary-red);
    color: var(--primary-beige);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.timeline-content {
    background: var(--primary-beige);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 2rem;
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.music-item {
    background: var(--primary-beige);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.music-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-dark);
}

.music-cover {
    width: 150px;
    height: 150px;
    background: var(--gradient-red);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-beige);
    font-size: 3rem;
    transition: all 0.3s ease;
}

.music-item:hover .music-cover {
    transform: scale(1.1) rotate(5deg);
}

.music-item h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.music-item p {
    color: var(--text-light);
    font-style: italic;
}

.music-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.youtube-link {
    color: var(--primary-beige);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.youtube-link:hover {
    color: #FF0000;
    transform: scale(1.2);
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF0000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.youtube-btn:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.music-status {
    display: inline-block;
    background: var(--text-light);
    color: var(--primary-beige);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* About Section */
.about-content {
    background: var(--primary-beige);
    border: 3px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 2px 2px 0px var(--shadow-light);
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--gradient-red);
    color: var(--primary-beige);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--primary-beige);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--faded-beige);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .character-header {
        flex-direction: column;
        text-align: center;
    }
    
    .character-header .character-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 4rem;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .character-card {
        padding: 1rem;
    }
    
    .filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations supplémentaires */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.character-card:hover .character-status {
    animation: pulse 1s infinite;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--faded-beige);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-red);
}
