/* ============================================
   DASHBOARD - ONGLET ACCUEIL
   ============================================ */

/* Section Video */
.dashboard-video-section {
    margin-bottom: 30px;
}

.dashboard-video-container {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BOUTON TELEGRAM - DESIGN ÉPURÉ MOBILE-FIRST
   Style minimaliste et accessible
   ======================================== */

.telegram-banner-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Taille tactile optimale pour mobile (min 44x44px) */
    min-width: 48px;
    min-height: 48px;
    padding: 12px 28px;
    
    /* Couleur Telegram officielle simplifiée */
    background: rgba(0, 136, 204, 0.95);
    
    /* Bordure nette et simple */
    border: none;
    
    color: white;
    text-decoration: none;
    border-radius: 24px;
    
    /* Typographie claire et lisible */
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    
    /* Ombre douce unique */
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
    
    /* Transition rapide et fluide */
    transition: all 0.25s ease;
    
    cursor: pointer;
    
    /* Touch optimization */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    
    /* Anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Effet subtil de brillance au survol uniquement */
.telegram-banner-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.telegram-banner-btn:hover::before {
    opacity: 1;
}

/* Effet au survol - Simple et efficace */
.telegram-banner-btn:hover {
    transform: translateY(-3px);
    background: rgba(0, 150, 220, 0.95);
    box-shadow: 0 6px 24px rgba(0, 136, 204, 0.5);
}

/* Effet au clic - Feedback tactile clair */
.telegram-banner-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.4);
}

/* État focus pour accessibilité clavier */
.telegram-banner-btn:focus {
    outline: 3px solid rgba(0, 170, 255, 0.5);
    outline-offset: 2px;
}

.telegram-banner-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Icône Telegram simple et claire */
.telegram-banner-btn i {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Texte du bouton épuré */
.telegram-banner-btn span {
    font-weight: 600;
    white-space: nowrap;
}

/* Badge "Nouveau" simple (optionnel) */
.telegram-banner-btn .badge-new {
    position: absolute;
    top: -8px;
    right: -8px;
    padding: 4px 8px;
    
    background: #ff3366;
    border: 2px solid white;
    
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.4);
}

.dashboard-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.dashboard-video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: white;
}

.dashboard-video-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    color: white;
}

.dashboard-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
}

/* ========================================
   OVERLAY TEXTE ORBITE - DESIGN SPATIAL
   Refonte graphique moderne avec thème orbital
   ======================================== */

.video-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    padding: 40px;
    
    /* Overlay radial pour effet spatial */
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%
    );
}

.video-hero-text {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    max-width: 1100px;
    
    /* Animation d'apparition avec effet spatial */
    animation: orbitReveal 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Marque "Leadia" - Style spatial premium */
.video-hero-text .text-brand {
    font-weight: 800;
    font-size: 1.2em;
    letter-spacing: 2px;
    text-transform: uppercase;
    
    /* Gradient spatial cyan/violet */
    background: linear-gradient(
        135deg,
        #00f0ff 0%,
        #00d4ff 20%,
        #8b5cf6 50%,
        #a855f7 80%,
        #c084fc 100%
    );
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation orbitale du gradient */
    animation: orbitGradient 5s ease infinite;
    
    /* Glow spatial multi-couches */
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.8))
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 45px rgba(168, 85, 247, 0.4))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    
    position: relative;
    display: inline-block;
    
    /* Effet de brillance qui traverse */
    overflow: hidden;
}

/* Effet de brillance sur Leadia */
.video-hero-text .text-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shineSweep 3s ease-in-out infinite;
}

/* Texte principal - Style élégant */
.video-hero-text .text-main {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.6),
        0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Highlight "opportunités en orbite" - Style orbital */
.video-hero-text .text-highlight {
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 1.2px;
    
    /* Gradient orbital doré/cyan */
    background: linear-gradient(
        135deg,
        #fbbf24 0%,
        #f59e0b 25%,
        #00f0ff 50%,
        #00d4ff 75%,
        #fbbf24 100%
    );
    background-size: 250% 250%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation orbitale */
    animation: orbitGradientGold 4s ease infinite;
    
    /* Glow orbital doré/cyan */
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.8))
            drop-shadow(0 0 35px rgba(0, 240, 255, 0.6))
            drop-shadow(0 0 50px rgba(245, 158, 11, 0.4))
            drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    
    position: relative;
    display: inline-block;
}

/* Particules orbitales autour du highlight */
.video-hero-text .text-highlight::after {
    content: '✦';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 0.6em;
    color: rgba(0, 240, 255, 0.8);
    animation: orbitParticle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.9));
}

/* Point final avec effet orbital */
.video-hero-text .text-punctuation {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    animation: orbitPulse 2.5s ease-in-out infinite;
    display: inline-block;
}

/* Animation orbitale du gradient cyan/violet */
@keyframes orbitGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation orbitale du gradient doré/cyan */
@keyframes orbitGradientGold {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation de brillance qui traverse */
@keyframes shineSweep {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* Animation de particule orbitale */
@keyframes orbitParticle {
    0%, 100% {
        transform: rotate(0deg) translateX(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: rotate(90deg) translateX(8px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) translateX(0) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: rotate(270deg) translateX(-8px) scale(1.2);
        opacity: 1;
    }
}

/* Animation du point orbital */
@keyframes orbitPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
    }
}

/* Animation de révélation orbitale */
@keyframes orbitReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Responsive - Tablette */
@media (max-width: 768px) {
    .video-hero-text {
        font-size: 2.2rem;
        letter-spacing: 0.8px;
        line-height: 1.35;
    }
    
    .video-hero-text .text-brand {
        font-size: 1.15em;
        letter-spacing: 1.5px;
    }
    
    .video-hero-text .text-highlight {
        font-size: 1.03em;
        letter-spacing: 1px;
    }
    
    .video-text-overlay {
        padding: 30px 20px;
    }
    
    /* Réduire légèrement les effets sur tablette */
    .video-hero-text .text-brand {
        filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7))
                drop-shadow(0 0 25px rgba(139, 92, 246, 0.5))
                drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    }
    
    .video-hero-text .text-highlight {
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.7))
                drop-shadow(0 0 30px rgba(0, 240, 255, 0.5))
                drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .video-hero-text {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
        line-height: 1.3;
    }
    
    .video-hero-text .text-brand {
        font-size: 1.1em;
        letter-spacing: 1px;
    }
    
    .video-hero-text .text-highlight {
        font-size: 1.02em;
        letter-spacing: 0.8px;
        font-weight: 600;
    }
    
    .video-text-overlay {
        padding: 20px 15px;
    }
    
    /* Effets allégés sur mobile pour performance */
    .video-hero-text .text-brand {
        filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6))
                drop-shadow(0 0 15px rgba(139, 92, 246, 0.4))
                drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    
    .video-hero-text .text-highlight {
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6))
                drop-shadow(0 0 20px rgba(0, 240, 255, 0.4))
                drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    }
    
    /* Masquer la particule orbitale sur mobile */
    .video-hero-text .text-highlight::after {
        display: none;
    }
    
    /* Simplifier l'animation de brillance */
    .video-hero-text .text-brand::before {
        animation: shineSweep 4s ease-in-out infinite;
    }
}

/* Section Statistiques */
.dashboard-stats-section {
    margin-bottom: 30px;
}

.dashboard-section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color, #fff);
    position: relative;
}

.dashboard-section-title i {
    color: #667eea;
}

/* Indicateur de mise à jour en temps réel */
.stats-update-indicator {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stats-update-indicator i {
    font-size: 0.5rem;
    color: #43e97b;
    animation: pulse-dot 2s infinite;
}

.stats-update-indicator.pulse i {
    animation: pulse-dot-active 0.5s ease-out;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes pulse-dot-active {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dashboard-stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.2);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.dashboard-stat-info {
    flex: 1;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

.dashboard-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.dashboard-stat-trend {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard-stat-trend.up {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

.dashboard-stat-trend i.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Section Chat */
.dashboard-chat-section {
    margin-bottom: 30px;
}

.dashboard-chat-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dashboard-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.dashboard-chat-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    margin: 0;
}

.dashboard-chat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.dashboard-chat-online-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.dashboard-chat-online-count i {
    color: #43e97b;
}

.dashboard-chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.dashboard-chat-status i {
    color: #43e97b;
    animation: pulse 2s infinite;
}

/* Barre d'émojis */
.dashboard-emoji-bar {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: thin;
}

.dashboard-emoji-bar::-webkit-scrollbar {
    height: 4px;
}

.dashboard-emoji-bar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 2px;
}

.emoji-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.emoji-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: #667eea;
}

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

.dashboard-chat-messages {
    height: 550px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px 10px 0 0;
}

.dashboard-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.dashboard-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

/* Messages - Design bulle moderne */
.dashboard-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
    align-items: flex-start;
}

.dashboard-message.own-message {
    flex-direction: row-reverse;
}

.dashboard-message.system-message {
    justify-content: center;
    margin: 10px 0;
}

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

/* Avatar rond avec initiales */
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Contenu du message */
.message-content {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.dashboard-message.own-message .message-content {
    align-items: flex-end;
}

/* Header du message */
.message-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
    padding: 0 5px;
}

.message-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Bulle de message */
.message-bubble {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    padding: 12px 16px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.message-bubble:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-message.own-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

/* Messages système */
.system-message-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(67, 233, 123, 0.1);
    border: 1px solid rgba(67, 233, 123, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.system-message-content i {
    color: #43e97b;
}

.dashboard-chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.dashboard-chat-input-container input[type="text"] {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dashboard-chat-input-container input::placeholder {
    color: rgba(255,255,255,0.5);
}

#dashboardMessageInput {
    flex: 1;
}

.dashboard-chat-input-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

/* Bouton média */
.dashboard-media-button {
    padding: 12px 15px;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 10px;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-media-button:hover {
    background: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    border-color: #667eea;
}

.dashboard-media-button:active {
    transform: translateY(0);
}

/* Bouton vocal */
.dashboard-voice-button {
    padding: 12px 15px;
    background: rgba(245, 87, 108, 0.2);
    border: 1px solid rgba(245, 87, 108, 0.4);
    border-radius: 10px;
    color: #f5576c;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-voice-button:hover {
    background: rgba(245, 87, 108, 0.3);
    transform: translateY(-2px);
    border-color: #f5576c;
}

.dashboard-voice-button:active {
    transform: translateY(0);
}

.dashboard-voice-button.recording {
    background: #f5576c;
    border-color: #f5576c;
    color: white;
    animation: pulse 1.5s infinite;
}

/* Indicateur d'enregistrement */
.dashboard-recording-indicator {
    padding: 15px 20px;
    background: rgba(245, 87, 108, 0.1);
    border-top: 1px solid rgba(245, 87, 108, 0.3);
}

.recording-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: #f5576c;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.recording-text {
    font-weight: 600;
    color: #f5576c;
}

.recording-timer {
    font-family: monospace;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.recording-stop-btn {
    margin-left: auto;
    padding: 8px 20px;
    background: #f5576c;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recording-stop-btn:hover {
    background: #e04558;
    transform: translateY(-2px);
}

.recording-stop-btn:active {
    transform: translateY(0);
}

/* Prévisualisation média */
.dashboard-media-preview {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.media-preview-content {
    position: relative;
    display: inline-block;
    max-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.media-preview-content img,
.media-preview-content video {
    max-width: 100%;
    max-height: 200px;
    display: block;
    border-radius: 10px;
}

.media-preview-content audio {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

.media-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(245, 87, 108, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.media-remove-btn:hover {
    background: #f5576c;
    transform: scale(1.1);
}

/* Médias dans les messages */
.message-media {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.message-media img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-media img:hover {
    transform: scale(1.02);
}

.message-media video {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    display: block;
    border-radius: 12px;
}

.message-media audio {
    width: 100%;
    max-width: 350px;
    display: block;
    border-radius: 20px;
    margin-top: 8px;
}

/* Lightbox pour agrandir les images */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.media-lightbox.active {
    display: flex;
}

.media-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.media-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.media-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.dashboard-send-button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.dashboard-send-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-video-container {
        height: 250px;
    }
    
    /* Responsive Tablet - Taille compacte */
    .telegram-banner-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 24px;
        font-size: 0.9rem;
        gap: 8px;
        border-radius: 22px;
    }
    
    .telegram-banner-btn i {
        font-size: 1.2rem;
    }
    
    /* Responsive Mobile - Zone tactile optimale */
    @media (max-width: 480px) {
        .telegram-banner-btn {
            /* Position fixe pour rester accessible */
            position: fixed;
            bottom: 16px;
            right: 16px;
            
            /* Zone tactile minimale de 56x56px (Material Design) */
            min-width: 56px;
            min-height: 56px;
            padding: 0;
            
            /* Version circulaire compacte */
            border-radius: 50%;
            gap: 0;
            
            /* Couleur simplifiée */
            background: rgba(0, 136, 204, 0.95);
            
            /* Ombre douce */
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.5);
        }
        
        /* Masque le texte sur mobile */
        .telegram-banner-btn span {
            display: none;
        }
        
        /* Icône plus grande et centrée */
        .telegram-banner-btn i {
            font-size: 1.6rem;
            margin: 0;
        }
        
        /* Effet hover simplifié pour mobile */
        .telegram-banner-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 136, 204, 0.6);
        }
        
        /* Effet active plus prononcé pour feedback tactile */
        .telegram-banner-btn:active {
            transform: scale(0.95);
            box-shadow: 0 2px 8px rgba(0, 136, 204, 0.4);
        }
        
        /* Badge plus petit sur mobile */
        .telegram-banner-btn .badge-new {
            top: -6px;
            right: -6px;
            padding: 3px 6px;
            font-size: 8px;
            border-radius: 8px;
        }
    }
    
    /* Très petits écrans - Ajustement supplémentaire */
    @media (max-width: 360px) {
        .telegram-banner-btn {
            bottom: 12px;
            right: 12px;
            min-width: 52px;
            min-height: 52px;
        }
        
        .telegram-banner-btn i {
            font-size: 1.5rem;
        }
    }

    .dashboard-video-title {
        font-size: 2rem;
    }

    .dashboard-video-subtitle {
        font-size: 1.1rem;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-stat-trend {
        position: static;
        margin-top: 10px;
    }

    .dashboard-chat-messages {
        height: 400px;
    }

    .dashboard-chat-input-container {
        flex-direction: column;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .message-bubble {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .dashboard-emoji-bar {
        padding: 10px;
        gap: 6px;
    }
    
    .emoji-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
    
    .dashboard-media-button,
    .dashboard-voice-button {
        padding: 10px 12px;
    }
    
    .message-media img,
    .message-media video {
        max-height: 250px;
    }
    
    .message-media audio {
        max-width: 100%;
    }
    
    .media-preview-content {
        max-width: 200px;
    }
    
    .media-preview-content img,
    .media-preview-content video {
        max-height: 150px;
    }
    
    .recording-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .recording-stop-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}


/* Bouton Telegram Mobile - Visible uniquement sur mobile, en dessous de la bannière */
.telegram-banner-btn-mobile {
    display: none;
}

@media (max-width: 768px) {
    .telegram-banner-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 20px auto;
        background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
        color: white;
        padding: 14px 28px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
        transition: all 0.3s ease;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    .telegram-banner-btn-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 136, 204, 0.6);
        background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
    }
    
    .telegram-banner-btn-mobile:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 136, 204, 0.4);
    }
    
    .telegram-banner-btn-mobile i {
        font-size: 20px;
    }
    
    .telegram-banner-btn-mobile span {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .telegram-banner-btn-mobile {
        margin: 15px auto;
        padding: 12px 24px;
        font-size: 14px;
        max-width: 280px;
    }
    
    .telegram-banner-btn-mobile i {
        font-size: 18px;
    }
}
