/* ==========================================================================
   CREDITS.CSS — Page crédits — Style Épique / Futuriste
   Dépend de : global.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Rajdhani:wght@400;500;600&display=swap');

/* === PAGE BASE === */
.credits-page {
    flex: 1;
    background: #060b14;
    color: #e2e8f0;
    font-family: 'Rajdhani', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Grille en fond */
.credits-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(251,191,36,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(251,191,36,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Halo doré */
.credits-page::after {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(251,191,36,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* === HERO === */
.credits-hero {
    text-align: center;
    padding: 80px 20px 50px;
    position: relative;
    z-index: 1;
}

.credits-hero::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 30px auto 0;
}

.credits-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(251,191,36,0.4), 0 0 60px rgba(251,191,36,0.15);
    margin: 0 0 16px;
}

.credits-sub {
    color: #64748b;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* === LAYOUT === */
.credits-page .credits-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 1;
}

/* === SECTIONS === */
.credits-section {
    margin: 60px 0;
}

.credits-section__title {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-section__title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(251,191,36,0.4), transparent);
}

/* === CARTES === */
.credits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.credits-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(251,191,36,0.12);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, transform 0.25s;
}

/* Coin décoratif */
.credits-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 32px;
    border-top: 2px solid rgba(251,191,36,0.4);
    border-left: 2px solid rgba(251,191,36,0.4);
    border-radius: 12px 0 0 0;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.credits-card:hover {
    border-color: rgba(251,191,36,0.35);
    background: rgba(251,191,36,0.04);
    transform: translateY(-3px);
}

.credits-card:hover::before {
    width: 48px; height: 48px;
    border-color: var(--gold);
}

/* Avatar initiales (à ajouter en PHP si besoin) */
.credits-card__avatar {
    width: 46px; height: 46px; min-width: 46px;
    border-radius: 10px;
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.credits-card__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credits-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 0.5px;
}

.credits-card__name a {
    color: var(--gold);
    text-decoration: none;
    transition: text-shadow 0.2s;
}

.credits-card__name a:hover {
    text-shadow: 0 0 12px rgba(251,191,36,0.5);
}

.credits-card__meta {
    color: #64748b;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === RESSOURCES === */
.credits-resources {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    gap: 10px;
}

.credits-resource {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-left: 3px solid rgba(251,191,36,0.35);
    border-radius: 0 8px 8px 0;
    transition: background 0.25s, border-left-color 0.25s, transform 0.25s;
    flex-wrap: wrap;
}

.credits-resource:hover {
    background: rgba(251,191,36,0.04);
    border-left-color: var(--gold);
    transform: translateX(5px);
}

.credits-resource__link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

a.credits-resource__link:hover {
    color: var(--gold);
}

.credits-resource__license {
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: auto;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .credits-title { letter-spacing: 3px; }
    .credits-hero  { padding: 50px 16px 36px; }
    .credits-list  { grid-template-columns: 1fr; }
    .credits-resource__license { margin-left: 0; margin-top: 4px; }
}