/* ==========================================================================
   1. VARIABLES & BASE
   ========================================================================== */
:root {
    --primary: #e94560;
    --primary-light: #ff6b81;
    --bg-light: #f8fafb;
    --card-white: #ffffff;
    --text-dark: #2d3436;
    --border-soft: #edf2f7;
    --online-green: #10b981;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding-bottom: 100px;
}

/* ==========================================================================
   2. HEADER PRO (LOGO & BOUTONS ALIGNÉS - OPTIMISÉ MOBILE)
   ========================================================================== */
nav {
    background: #fff;
    padding: 10px 10px; /* Padding réduit pour gagner de la place latérale */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 16px; /* Taille réduite pour laisser de la place aux boutons */
    font-weight: 900;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 6px; /* Espace très réduit pour coller les éléments sur une ligne */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-size: 11px; /* Police plus petite pour le mode mobile */
    font-weight: 700;
    color: var(--text-dark);
    padding: 4px 5px;
    transition: 0.2s;
    white-space: nowrap; /* Interdit le retour à la ligne du texte */
}

.nav-links a:hover { color: var(--primary); }

/* Style spécifique pour le bouton Quitter (btn-logout) */
.nav-links a.btn-logout {
    background: rgba(233, 69, 96, 0.1);
    color: var(--primary);
    border: 1px solid rgba(233, 69, 96, 0.2);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
}

.nav-links a.btn-logout:hover {
    background: var(--primary);
    color: #fff;
}

/* ==========================================================================
   3. TICKER DÉDICACES (SPEED & DESIGN)
   ========================================================================== */
.ticker-container {
    width: 100%;
    height: 40px;
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.ticker-badge {
    background: var(--primary);
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    z-index: 10;
}

.ticker-text {
    display: flex;
    white-space: nowrap;
    animation: ticker-animation 30s linear infinite;
}

@keyframes ticker-animation {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   4. UTILISATEURS EN LIGNE (STYLE PULSE AMÉLIORÉ)
   ========================================================================== */
.sidebar-box h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.online-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    transition: 0.2s;
    cursor: pointer;
    margin-bottom: 5px;
}

.online-user:hover {
    background: rgba(233, 69, 96, 0.05);
}

.online-user img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--online-green);
    animation: pulse-green 2s infinite;
    object-fit: cover;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   5. LECTEUR STYLE FMR (SANS VOLUME - ESPACE MAX)
   ========================================================================= */
#sticky-player-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.player-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.player-album-art img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.sticky-play-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marquee-wrapper {
    flex: 1;
    overflow: hidden;
}

.marquee-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    display: block;
}

/* Cache le volume pour libérer toute la place au titre */
.volume-container, #volume-slider, .volume-icon, .player-volume {
    display: none !important;
}

/* ==========================================================================
   6. CONTENU & CARTES
   ========================================================================== */
.container {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.ephemeride-box, .dedi-form, .sidebar-box {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    margin-bottom: 20px;
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}
