/**
 * DJ Prestige Sound - Client App Styles
 * Design Dark Gold Premium avec Slideshow Background
 */

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

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 80px;
}

:root {
    /* Palette Dark Gold Premium (depuis l'espace client) */
    --primary: #C9A961;
    --gold: #C9A961;
    --gold-light: #E5D4A8;
    --gold-dark: #A08760;
    --gold-glow: rgba(201, 169, 97, 0.4);

    /* Backgrounds Dark */
    --bg-dark: #0A0A0A;
    --bg-card: #1C1C1E;
    --bg-card-light: #2C2C2E;
    --bg-overlay: rgba(10, 10, 10, 0.85);

    /* Gold Gradient */
    --gold-gradient: linear-gradient(135deg, rgba(201, 169, 97, 0.9) 0%, rgba(160, 135, 96, 0.9) 100%);

    /* Texte */
    --white: #FFFFFF;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* États */
    --success: #4CAF50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196F3;

    /* Ombres Premium Dark */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 169, 97, 0.1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 97, 0.2);
    --shadow-gold: 0 0 30px rgba(201, 169, 97, 0.3);

    /* Transitions */
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ==================== BACKGROUND SLIDESHOW ANIMÉ ==================== */
.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.background-slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 2;
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 30s infinite;
    filter: blur(3px);
}

.background-slide:nth-child(1) { animation-delay: 0s; }
.background-slide:nth-child(2) { animation-delay: 6s; }
.background-slide:nth-child(3) { animation-delay: 12s; }
.background-slide:nth-child(4) { animation-delay: 18s; }
.background-slide:nth-child(5) { animation-delay: 24s; }

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1.1); }
    25% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* Overlay gold subtil sur les images */
.background-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* ==================== HEADER DARK GOLD ==================== */
.client-header {
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 97, 0.1);
}

.client-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-header .logo-image {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px var(--gold-glow));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 2px 8px var(--gold-glow)); }
    50% { filter: drop-shadow(0 4px 16px var(--gold-glow)); }
}

.client-header h1 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.3px;
}

.client-header .user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.client-header .user-badge:hover {
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.client-header .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

/* Bouton WhatsApp dans le header */
.header-whatsapp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.header-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.header-whatsapp-btn:active {
    transform: scale(0.95);
}

/* ==================== CARDS DARK GOLD ==================== */
.section {
    padding: 20px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-title i {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    filter: drop-shadow(0 0 10px rgba(201, 169, 97, 0.3));
}

.card {
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-light) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(201, 169, 97, 0.15);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.3);
}

.card:active {
    transform: translateY(-2px) scale(0.98);
}

/* ==================== BADGES DARK PREMIUM ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.badge.paid {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.4);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.badge.gold {
    background: rgba(201, 169, 97, 0.2);
    color: var(--gold-light);
    border: 1px solid rgba(201, 169, 97, 0.4);
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.3);
}

/* ==================== BUTTONS DARK GOLD ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--gold-gradient);
    color: white;
    box-shadow: 0 10px 40px rgba(201, 169, 97, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 50px rgba(201, 169, 97, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(201, 169, 97, 0.3);
}

.btn-secondary:hover {
    border-color: rgba(201, 169, 97, 0.5);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(201, 169, 97, 0.1);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.btn-block {
    width: 100%;
}

/* ==================== BOTTOM NAV DARK GOLD ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 0;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    z-index: 1000;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 97, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item .icon {
    font-size: 22px;
    transition: var(--transition-fast);
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active .icon {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(201, 169, 97, 0.4));
}

.nav-item:active {
    transform: scale(0.92);
}

/* Indicateur actif avec animation gold */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.5);
    animation: pulseGoldGlow 2s ease-in-out infinite;
}

@keyframes pulseGoldGlow {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(201, 169, 97, 0.5);
        opacity: 1;
    }
    50% {
        box-shadow: 0 4px 16px rgba(201, 169, 97, 0.8);
        opacity: 0.8;
    }
}

/* ==================== WHATSAPP WIDGET ==================== */
.whatsapp-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    animation: fadeInScale 0.5s ease-out;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    position: relative;
}

.whatsapp-button::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    opacity: 0;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(28, 28, 30, 0.95);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    right: 70px;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 360px) {
    .client-header h1 {
        font-size: 16px;
    }

    .section {
        padding: 16px;
    }
}

/* Prévenir le zoom accidentel sur iOS */
input, textarea, select {
    font-size: 16px !important;
}

/* Désactiver gestures de zoom */
body {
    touch-action: pan-y pinch-zoom;
}

/* Effet shimmer gold sur hover pour les cards interactives */
@keyframes shimmerGold {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.card:hover {
    background:
        linear-gradient(
            110deg,
            rgba(28, 28, 30, 1) 45%,
            rgba(201, 169, 97, 0.15) 50%,
            rgba(28, 28, 30, 1) 55%
        );
    background-size: 200% 100%;
    animation: shimmerGold 2s linear infinite;
    backdrop-filter: blur(20px) saturate(180%);
}
