/* Layout page rassemblement */
.rassemblement-page {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    min-height: calc(100vh - 140px);
}

.rassemblement-main {
    flex: 1;
}

.rassemblement-sidebar {
    width: 450px;
    flex-shrink: 0;
}

/* En-tête événement */
.event-header {
    margin-bottom: 30px;
}

.back-link {
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.event-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.event-title-row h1 {
    margin: 0;
    font-size: 2rem;
}

.live-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    animation: pulse-badge 2s infinite;
}

.live-badge i {
    margin-right: 5px;
    font-size: 10px;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.event-meta {
    display: flex;
    gap: 25px;
    color: #888;
    font-size: 15px;
    flex-wrap: wrap;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections */
.event-section {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.event-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3498db;
}

.event-section p {
    margin: 0;
    color: #ccc;
    line-height: 1.6;
}

/* Bouton rejoindre */
.btn-join {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Zone vidéo */
.video-container {
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.video-container.empty {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Grille vidéos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.video-item {
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Chat */
.chat-container {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    height: calc(100vh - 200px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
}

.chat-container h3 {
    margin: 0 0 15px 0;
    color: #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

.chat-message .author {
    color: #3498db;
    font-weight: bold;
    margin-right: 8px;
}

.chat-message .text {
    color: #fff;
}

.chat-message .time {
    color: #666;
    font-size: 11px;
    margin-left: 10px;
}

#chat-form {
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 14px;
}

#chat-input::placeholder {
    color: #666;
}

#chat-form button {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

#chat-form button:hover {
    background: #2980b9;
}

/* Modal Navigation */
.navigation-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: #3498db;
}

.nav-option img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-option i {
    font-size: 28px;
    width: 32px;
    text-align: center;
    color: #3498db;
}

/* Chat header */
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chat-header h3 {
    margin: 0;
    color: #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-count {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-count i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .rassemblement-page {
        flex-direction: column;
        padding: 20px;
    }
    
    .rassemblement-sidebar {
        width: 100%;
    }
    
    .chat-container {
        height: 400px;
        min-height: 400px;
        position: static;
    }
    
    .event-title-row h1 {
        font-size: 1.5rem;
    }
}