/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --light-accent: #f39c12;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: #2a2a40;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.loader-logo {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== VISIBILITÉ ===== */
.hidden {
    display: none;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    margin-bottom: 20px;
}

.band-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px var(--shadow-color));
}

.band-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-color), var(--light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== MAIN ===== */
.main {
    padding: 60px 0;
}

/* ===== GRID DES MEMBRES ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.member-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.member-photo {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-photo img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(233, 69, 96, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.member-card:hover .member-overlay {
    opacity: 1;
}

.member-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.member-overlay span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-info {
    padding: 25px;
}

.member-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.member-role {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.member-social-preview {
    display: flex;
    gap: 10px;
    align-items: center;
}

.member-social-preview i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.member-social-preview i:hover {
    transform: scale(1.2);
}

.more-social {
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== NO MEMBERS ===== */
.no-members {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-members i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* ===== DETAIL HEADER ===== */
.detail-header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--accent-color);
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
}

.back-btn:hover {
    background: var(--light-accent);
    transform: translateX(-5px);
}

.band-logo-small img {
    max-height: 40px;
    width: auto;
}

/* ===== MEMBER DETAIL ===== */
.member-detail {
    padding: 40px 0;
}

.member-card-detail {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-color);
    max-width: 800px;
    margin: 0 auto;
}

.member-header {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--card-bg));
}

.member-photo-large {
    flex: 0 0 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.member-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-basic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name-large {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent-color), var(--light-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role-large {
    font-size: 1.3rem;
    color: var(--light-accent);
    margin-bottom: 20px;
    font-weight: 500;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    font-style: italic;
}

/* ===== SECTIONS ===== */
.contact-section,
.qr-section,
.social-section {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section:last-child,
.qr-section:last-child,
.social-section:last-child {
    border-bottom: none;
}

.contact-section h2,
.qr-section h2,
.social-section h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.contact-section h2 i,
.qr-section h2 i,
.social-section h2 i {
    font-size: 1.2rem;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--light-accent);
}

/* ===== QR CODE ===== */
.qr-container {
    text-align: center;
}

.qr-code {
    max-width: 200px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    margin-bottom: 20px;
    background: white;
    padding: 10px;
}

.qr-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.linktree-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.linktree-btn:hover {
    background: var(--light-accent);
    transform: translateY(-2px);
}

/* ===== SOCIAL LINKS ===== */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link i {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.social-name {
    font-weight: 600;
    font-size: 1rem;
}

.social-username {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: auto;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    padding: 30px 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: var(--text-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .band-name {
        font-size: 2rem;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .member-photo-large {
        flex: none;
    }

    .member-name-large {
        font-size: 1.8rem;
    }

    .contact-section,
    .qr-section,
    .social-section {
        padding: 25px 20px;
    }

    .quick-actions {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .detail-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .member-card-detail {
        margin: 0 10px;
    }

    .loader-logo {
        font-size: 3rem;
    }

    .loader-text {
        font-size: 1rem;
    }

    .member-header {
        padding: 20px;
    }
}