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

body {
    width: 1920px;
    height: 1080px;
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

/* Fond vert pour chroma key OBS */
.green-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00FF00; /* Vert pur pour chroma key */
    z-index: 1;
}

/* Conteneur principal de traduction */
.translation-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1600px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* En-tête avec langues */
.translation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    color: white;
}

.translation-header h2 {
    font-size: 24px;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.separator {
    font-size: 32px;
    color: #4CAF50;
    font-weight: bold;
}

/* Contenu de traduction */
.translation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.source-text,
.translated-text {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.source-text {
    border-left: 4px solid #2196F3;
}

.translated-text {
    border-left: 4px solid #FF9800;
}

.source-text p,
.translated-text p {
    color: white;
    font-size: 28px;
    line-height: 1.6;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.translated-text p {
    color: white;
    font-weight: 500;
}

/* Indicateur de statut */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 18px;
}

.status {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.status.ready {
    color: #4CAF50;
}

.status.processing {
    color: #FF9800;
}

.status.error {
    color: #F44336;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation pour le texte */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Boutons de contrôle */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.control-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.start-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

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

.start-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.stop-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.stop-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* Masquer les boutons quand le streaming est actif (pour OBS) */
.translation-container.streaming-active .control-buttons {
    display: none;
}

/* Responsive pour différentes résolutions OBS */
@media (max-width: 1920px) {
    body {
        width: 100vw;
        height: 100vh;
    }
    
    .translation-container {
        width: 95%;
        padding: 30px;
    }
    
    .source-text p,
    .translated-text p {
        font-size: 24px;
    }
}

