/* Assurer que le contenu principal est au-dessus */
main {
    position: relative;
    z-index: 2;
}

/* Styles spécifiques à la page Credits */
.credits-hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-light) 100%);
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
}

.credits-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e31f1f" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.credits-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.credits-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.credits-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.credits-section {
    padding: 60px 0;
    background-color: var(--dark-bg);
}

.credits-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.credits-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.credits-intro h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.credits-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
    border-color: var(--primary-color);
}

.team-card.horizonmw::before {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.team-card.h2m::before {
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
}

.team-card.activision::before {
    background: linear-gradient(90deg, var(--accent-color), #ffdd44);
}

.team-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.team-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: var(--glow-primary);
}

.team-card.h2m .team-icon {
    background: var(--secondary-color);
    box-shadow: var(--glow-secondary);
}

.team-card.activision .team-icon {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(250, 205, 3, 0.5);
}

.team-icon i {
    color: white;
    font-size: 1.5rem;
}

.team-title {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.team-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.member-item:last-child {
    border-bottom: none;
}

.member-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    padding-left: 10px;
}

.member-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.team-card.h2m .member-avatar {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
}

.team-card.activision .member-avatar {
    background: linear-gradient(45deg, var(--accent-color), #ffdd44);
    color: var(--dark-bg);
}

.member-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.special-thanks {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(227, 31, 31, 0.1), rgba(22, 66, 133, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.special-thanks h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.special-thanks p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations spécifiques */
.team-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .credits-hero-title {
        font-size: 2.5rem;
    }
    
    .credits-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-card {
        padding: 20px;
    }
    
    .credits-intro {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .credits-hero-title {
        font-size: 2rem;
    }
    
    .credits-hero-subtitle {
        font-size: 1rem;
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
    }
    
    .team-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}