/* ═══════════════════════════════════════════════════════════════
   La Marche avec Dieu — Design System Premium & Mobile-First Overhaul
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #0b091a;
    --primary-light: #161233;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --gold: #d4a853;
    --gold-light: #f5e6c8;
    --emerald: #10b981;
    --rose: #f43f5e;
    --sky: #38bdf8;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.3);
    --radius: 20px;
    --radius-sm: 14px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--primary);
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: #000000;
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 70px;
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(124, 58, 237, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(16, 185, 129, 0.14) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(212, 168, 83, 0.07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { transition: color 0.3s var(--transition), opacity 0.3s var(--transition); }

/* ─── Scroll Progress Bar ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--emerald));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
}

/* ─── Navbar ─── */
.navbar-glass {
    background: rgba(0, 0, 0, 0.88) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transition: all 0.4s var(--transition);
}

.navbar-glass.scrolled {
    background: rgba(0, 0, 0, 0.98) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand .logo {
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 83, 0.4);
    transition: transform 0.5s var(--transition), box-shadow 0.5s var(--transition);
}

.navbar-brand:hover .logo {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.7);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--accent-light));
    transition: width 0.35s var(--transition), left 0.35s var(--transition);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    left: 20%;
}

.search-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff;
    padding: 0.45rem 1.25rem;
    transition: all 0.3s var(--transition);
}

.search-box:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
    color: #fff;
    outline: none;
}

.search-box::placeholder { color: rgba(255, 255, 255, 0.5); }

/* ─── Custom Auth Buttons ─── */
.btn-login-custom {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff !important;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.55rem 1.4rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-login-custom:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--gold);
    color: var(--gold-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-register-custom {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: #0b091a !important;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.35);
    transition: all 0.3s ease;
}

.btn-register-custom:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.55);
    color: #0b091a !important;
}

/* ─── Flutter-Like Mobile Drawer (Offcanvas) ─── */
.flutter-drawer {
    width: 300px !important;
    background: linear-gradient(180deg, #05040a 0%, #110d29 100%) !important;
    border-right: 1px solid var(--glass-border) !important;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.8) !important;
}

.flutter-drawer-header {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(212, 168, 83, 0.2) 100%);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 1.25rem;
}

.flutter-drawer-body {
    padding: 1rem 0.75rem;
}

.flutter-drawer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 14px;
    margin-bottom: 4px;
    transition: all 0.25s var(--transition);
}

.flutter-drawer-item i {
    font-size: 1.25rem;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.flutter-drawer-item:hover,
.flutter-drawer-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35) 0%, rgba(212, 168, 83, 0.25) 100%);
    color: #fff;
    transform: translateX(4px);
}

/* ─── Mobile Bottom Sticky Nav ─── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .mobile-bottom-nav { display: flex; }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
}

.mobile-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.25s var(--transition);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--gold-light);
}

.mobile-nav-item.active i {
    color: var(--gold);
    transform: translateY(-2px) scale(1.15);
}

.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.mobile-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.4);
    transition: transform 0.25s var(--transition), border-color 0.25s var(--transition);
}

.mobile-nav-item.active .mobile-nav-avatar,
.mobile-nav-item:hover .mobile-nav-avatar {
    transform: scale(1.15);
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.7);
}

/* ─── Hero Section with Background Carousel & Dark Blend ─── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 1rem 4rem;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1.06);
}

.hero-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(11, 9, 26, 0.88) 50%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(2px);
    mix-blend-mode: multiply;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    z-index: 2;
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(212, 168, 83, 0.15) 0%, transparent 50%);
    animation: meshMove 14s ease-in-out infinite alternate;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

@keyframes meshMove {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.12) rotate(4deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    padding: 0.55rem 1.35rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    animation: fadeSlideDown 0.8s var(--transition) both;
}

.hero-badge .pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    50% { opacity: 0.8; transform: scale(1.25); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-align: center;
    width: 100%;
    animation: fadeSlideUp 0.9s var(--transition) 0.15s both;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 45%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 660px;
    margin: 0 auto 2.5rem;
    text-align: center;
    width: 100%;
    animation: fadeSlideUp 0.9s var(--transition) 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    animation: fadeSlideUp 0.9s var(--transition) 0.45s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 3.5rem;
    flex-wrap: wrap;
    width: 100%;
    animation: fadeSlideUp 0.9s var(--transition) 0.6s both;
}

.hero-stat { text-align: center; }

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
}

.hero-stat .label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Perfect Centering and Scaling for Mobile Viewports */
@media (max-width: 768px) {
    .hero {
        min-height: 82vh;
        padding: 3rem 1rem 3.5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
        text-align: center !important;
        align-items: center !important;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.45rem 1rem;
        margin-bottom: 1.25rem;
        text-align: center;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        text-align: center !important;
        word-break: break-word;
    }

    .hero .lead {
        font-size: 0.95rem !important;
        line-height: 1.55;
        margin-bottom: 1.75rem;
        text-align: center !important;
        padding: 0 0.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        gap: 0.85rem;
        margin: 0 auto;
    }

    .hero-actions .btn-glow,
    .hero-actions .btn-outline-glass {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 2.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-stat .number {
        font-size: 1.7rem;
    }

    .hero-stat .label {
        font-size: 0.72rem;
    }
}

/* ─── Buttons ─── */
.btn-glow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 50%, var(--gold) 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    z-index: 0;
}

.btn-glow span, .btn-glow i {
    position: relative;
    z-index: 1;
    color: #fff;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 45px rgba(124, 58, 237, 0.55);
    color: #fff;
}

.btn-outline-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s var(--transition);
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-3px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: #0b091a !important;
    font-weight: 700;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    background: transparent;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #0b091a !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ─── Glass Card & Forms ─── */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--transition);
}

.glass-input {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.75rem 1rem !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.25) !important;
    outline: none !important;
}

.glass-input::placeholder { color: rgba(255, 255, 255, 0.45) !important; }

/* Seamless Input Groups & Chrome Autofill Override */
.custom-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--transition);
    overflow: hidden;
}

.custom-input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.25);
}

.custom-input-group .input-icon {
    padding: 0.75rem 0.2rem 0.75rem 1rem;
    color: var(--gold);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-input-group .form-control {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 0.9rem !important;
    box-shadow: none !important;
    font-size: 0.95rem;
}

.custom-input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Chrome/Safari Autofill Background Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #0b081e inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

/* ─── Profile Styling ─── */
.profile-main-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 168, 83, 0.4);
}

.custom-pills .nav-link {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.custom-pills .nav-link.active,
.custom-pills .nav-link:hover {
    background: linear-gradient(135deg, var(--accent), #6366f1) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.notification-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.notification-item.unread {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
}

.notification-item:hover {
    transform: translateX(4px);
}

.pulse-badge {
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

/* ─── Global Audio Player Overlay Bar ─── */
.global-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 8, 22, 0.97);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid var(--glass-border);
    z-index: 1040;
    padding: 0.65rem 1rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    display: none;
    transition: transform 0.4s var(--transition);
}

@media (max-width: 768px) {
    .global-audio-player { bottom: 65px; }
}

.global-audio-player.active { display: block; }

.player-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--gold);
}

/* Equalizer Bars Animation */
.equalizer-wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.equalizer-wave span {
    width: 3px;
    background: var(--gold);
    border-radius: 3px;
    animation: bounceWave 1.2s ease-in-out infinite alternate;
}

.equalizer-wave span:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.equalizer-wave span:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.equalizer-wave span:nth-child(3) { height: 40%; animation-delay: 0.2s; }
.equalizer-wave span:nth-child(4) { height: 80%; animation-delay: 0.4s; }

@keyframes bounceWave {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* ─── Badges ─── */
.badge-type {
    padding: 0.4rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-type.badge-audio {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.85) 0%, rgba(99, 102, 241, 0.85) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.badge-type.badge-video {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85) 0%, rgba(56, 189, 248, 0.85) 100%);
    color: #0b091a;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.badge-date {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    border-radius: 50px;
}

/* ─── Media Cards Redesign ─── */
.media-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(16, 13, 35, 0.75);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition), border-color 0.4s var(--transition);
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 58, 237, 0.25);
    border-color: rgba(212, 168, 83, 0.45);
}

.media-card .card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #05040a;
}

.media-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.media-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.media-card .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
}

.media-card .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0.9;
    transition: opacity 0.3s var(--transition), background 0.3s var(--transition);
}

.media-card:hover .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 230, 200, 0.95) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 168, 83, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    cursor: pointer;
}

.media-card:hover .play-btn {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 168, 83, 0.7);
}

.play-btn i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-left: 3px;
}

.media-card .card-body {
    position: relative;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.media-card .card-title .title-link {
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-card .card-title .title-link:hover {
    color: var(--gold-light) !important;
}

.media-card .card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.btn-quick-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.35rem 0.95rem;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
}

.btn-quick-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--gold);
    color: var(--gold-light) !important;
    transform: translateY(-1px);
}

.btn-detail-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn-detail-link:hover {
    color: var(--gold-light) !important;
}

.btn-detail-link:hover i {
    transform: translateX(3px);
}

/* ─── Séries & Thèmes Cards ─── */
.cat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
    text-decoration: none;
    background: #0a0816;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition), border-color 0.4s var(--transition);
}

.cat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(124, 58, 237, 0.35);
    border-color: rgba(212, 168, 83, 0.5);
}

.cat-card .cat-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition);
}

.cat-card:hover img {
    transform: scale(1.12);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(6, 4, 16, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    z-index: 2;
}

.cat-badge-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    color: var(--gold-light);
    font-weight: 600;
    width: fit-content;
}

.cat-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.cat-count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-family: var(--font-body);
}

/* Custom Audio Player Seek Range */
.custom-player-range {
    height: 6px;
    border-radius: 10px;
    accent-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

/* ─── Annonces Cards ─── */
.annonce-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s var(--transition);
    height: 100%;
}

.annonce-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 83, 0.45);
    box-shadow: 0 20px 50px rgba(212, 168, 83, 0.2);
}

/* ─── Floating Actions Stack ─── */
.floating-mic,
.floating-whatsapp,
.back-to-top {
    position: fixed;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
    z-index: 1035;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition), opacity 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .floating-mic { bottom: 75px; }
    .floating-whatsapp { bottom: 140px; }
    .back-to-top { bottom: 205px; }
}

@media (min-width: 769px) {
    .floating-mic { bottom: 1.5rem; }
    .floating-whatsapp { bottom: 5.5rem; }
    .back-to-top { bottom: 9.5rem; }
}

.floating-mic {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
    border: none;
}

.floating-mic:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 40px rgba(244, 63, 94, 0.65);
    color: #fff;
}

.floating-mic .pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(244, 63, 94, 0.6);
    animation: micPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes micPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.floating-whatsapp {
    background: linear-gradient(135deg, var(--emerald), #22c55e);
}

.back-to-top {
    background: linear-gradient(135deg, var(--accent), #6366f1);
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ─── WhatsApp Vocal Testimonial Recording UI ─── */
.vocal-mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e 0%, #d97706 100%);
    border: 4px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition), background 0.3s ease;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.5);
}

.vocal-mic-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.7);
}

.vocal-mic-btn.recording {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    animation: recordingPulse 1.2s ease-in-out infinite alternate;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.8);
}

@keyframes recordingPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(220, 38, 38, 0.6); }
    100% { transform: scale(1.12); box-shadow: 0 0 45px rgba(220, 38, 38, 0.9); }
}

/* ─── Footer ─── */
footer {
    position: relative;
    z-index: 1;
    background: #000000;
    border-top: 1px solid var(--glass-border);
    padding: 3.5rem 0 2rem;
}

footer h5, footer h6 {
    color: #fff;
    font-family: var(--font-display);
}

footer p, footer li { color: var(--text-muted); }

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover { color: var(--gold); }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.4);
}

/* ─── Reveal Animations ─── */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

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

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
