/* Variables CSS */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.2s ease-in-out;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout principal */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    font-size: 2rem;
}

.logo h1 a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.logo h1 a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--border-light);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.status-dot.connected {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.status-dot.recording {
    background: var(--danger-color);
    animation: pulse 2s infinite;
}

.status-dot.disconnected {
    background: var(--text-muted);
}

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

/* Indicateur de statut du pod */
.pod-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--warning-color);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

.pod-status-indicator.hidden {
    display: none;
}

.pod-status-indicator.ready {
    background: var(--success-color);
}

.pod-status-indicator.starting {
    background: var(--warning-color);
}

.pod-status-indicator.error {
    background: var(--danger-color);
}

.pod-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: pulse 2s infinite;
}

.pod-status-indicator.ready .pod-status-dot {
    animation: none;
}

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

/* Timer Indicator */
.timer-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--warning-color);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: fadeIn 0.3s ease-in;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timer-indicator i {
    animation: spin-slow 3s linear infinite;
}

.timer-indicator.critical {
    background: var(--danger-color);
    animation: pulse-timer 1s infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-timer {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}


/* Contenu principal */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* ========================================
   PANNEAU DE CONTRÔLE - ULTRA MODERN
   ======================================== */
.control-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient line */
.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    border-radius: 24px 24px 0 0;
}

.control-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(226, 232, 240, 0.6);
}

.control-panel .panel-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-panel .panel-header h2 i {
    -webkit-text-fill-color: #6366f1;
    font-size: 1.25rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.control-group label i {
    color: #8b5cf6;
    font-size: 0.95rem;
}

/* Form Select - Modern Style */
.form-select {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.5);
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
}

.form-select:disabled,
.form-select.disabled {
    background-color: rgba(241, 245, 249, 0.8);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--border);
}

.form-select:focus {
    outline: none;
    border-color: #8b5cf6;
    background-color: white;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.1),
        0 4px 12px rgba(99, 102, 241, 0.1);
}

.form-select:hover:not(:disabled) {
    border-color: rgba(139, 92, 246, 0.4);
    background-color: white;
}

.form-select option {
    background: #ffffff;
    color: #1e293b;
    padding: 0.75rem;
}

/* ========================================
   VISUALISEUR AUDIO - ULTRA MODERN
   ======================================== */
.audio-visualizer-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.audio-visualizer-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 100px;
    padding: 0.75rem;
    position: relative;
    z-index: 1;
}

.visualizer-bar {
    width: 10px;
    min-height: 6px;
    background: linear-gradient(to top, #6366f1, #8b5cf6, #a855f7);
    border-radius: 6px 6px 0 0;
    transition: height 0.1s ease-out;
    box-shadow: 
        0 0 10px rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: pulse-bar 0.6s ease-in-out infinite;
    animation-delay: calc(var(--bar-index) * 0.02s);
}

.visualizer-bar.active {
    background: linear-gradient(to top, #6366f1, #8b5cf6, #c084fc);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@keyframes pulse-bar {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(0.3);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.audio-visualizer:not(.active) .visualizer-bar {
    animation: none;
    opacity: 0.25;
    height: 6px !important;
    background: linear-gradient(to top, #94a3b8, #cbd5e1);
    box-shadow: none;
}

/* Boutons d'action - Ultra Modern Design */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.btn-presentation {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    font-weight: 700;
    box-shadow: 
        0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-presentation:hover::before {
    left: 100%;
}

.btn-presentation:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #ec4899 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(139, 92, 246, 0.3);
}

.btn-presentation:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-presentation i {
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ========================================
   PANNEAUX DE CONTENU - ULTRA MODERN
   ======================================== */
.content-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .content-panels {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Panel Transcription - Accent violet */
.transcription-panel {
    position: relative;
}

.transcription-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 24px 24px 0 0;
}

/* Panel Traduction - Accent vert */
.translation-panel {
    position: relative;
}

.translation-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 24px 24px 0 0;
}

.panel-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.transcription-panel .panel-header h3 i {
    color: #8b5cf6;
}

.translation-panel .panel-header h3 i {
    color: #10b981;
}

.panel-controls {
    display: flex;
    gap: 0.6rem;
}

/* Boutons icône modernes */
.btn-icon {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0.6rem;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    transform: translateY(-2px);
}

.btn-icon.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-icon.active:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
}

/* Style pour l'icône de son coupé avec barre diagonale */
.btn-icon .fa-volume-off {
    position: relative;
}

.btn-icon .fa-volume-off::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 18px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
    opacity: 0.9;
}

.panel-content {
    padding: 1.75rem;
    min-height: 220px;
}

.text-content {
    min-height: 180px;
    padding: 1.25rem;
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 350px;
    text-align: left;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.text-content:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: white;
}

.text-content:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* Footer */
.app-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========================================
   QR CODE SECTION - ULTRA MODERN
   ======================================== */
.qr-code-section {
    margin: 3rem auto;
    padding: 2.5rem;
    text-align: center;
    max-width: 400px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    overflow: hidden;
}

/* Decorative gradient */
.qr-code-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
}

.qr-code-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.qr-code-label::before {
    content: '\f029';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    -webkit-text-fill-color: #8b5cf6;
}

.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    border: 2px solid rgba(139, 92, 246, 0.15);
    box-shadow: 
        0 10px 30px -5px rgba(99, 102, 241, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s ease;
}

.qr-code-container:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 15px 40px -5px rgba(99, 102, 241, 0.25),
        0 0 0 4px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: scale(1.03);
}

.qr-code-container:active {
    transform: scale(0.98);
}

/* Click indicator */
.qr-code-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.qr-code-container:hover::after {
    opacity: 1;
}

.qr-code-container {
    position: relative;
}

.qr-code-container img {
    display: block;
    border-radius: 12px;
}

.qr-code-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.qr-code-hint::before {
    content: '\f3cd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #8b5cf6;
}

/* Make QR container clickable */
.qr-code-container {
    cursor: pointer;
}

/* ========================================
   QR CODE MODAL - ULTRA MODERN
   ======================================== */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease-out;
}

.qr-modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 32px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.4),
        0 30px 60px -30px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Decorative gradient at top */
.qr-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    border-radius: 32px 32px 0 0;
}

.qr-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.qr-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.qr-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-modal-title i {
    -webkit-text-fill-color: #8b5cf6;
    font-size: 1.75rem;
}

.qr-modal-qr {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    display: inline-block;
    margin: 1rem 0 1.5rem;
    border: 3px solid rgba(139, 92, 246, 0.2);
    box-shadow: 
        0 15px 40px -10px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.qr-modal-qr img {
    display: block;
    border-radius: 12px;
}

.qr-modal-room {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 12px;
    display: inline-block;
}

.qr-modal-room span {
    color: #8b5cf6;
    font-weight: 700;
}

.qr-modal-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 500;
}

/* QR Modal Link Section */
.qr-modal-link-section {
    margin: 1.5rem 0 0.5rem;
    width: 100%;
}

.qr-modal-link-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.qr-modal-link-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.qr-modal-link-input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    font-size: 0.85rem;
    font-family: 'Monaco', 'Consolas', monospace;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    color: var(--text-primary);
    cursor: text;
    transition: all 0.3s ease;
    min-width: 0;
}

.qr-modal-link-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.qr-modal-copy-btn {
    padding: 0 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.qr-modal-copy-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.qr-modal-copy-btn:active {
    transform: translateY(0);
}

.qr-modal-copy-feedback {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    height: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qr-modal-copy-feedback.success {
    color: #10b981;
    animation: feedbackPop 0.3s ease;
}

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

/* Mobile adjustments */
@media (max-width: 480px) {
    .qr-modal-content {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    
    .qr-modal-title {
        font-size: 1.25rem;
    }
    
    .qr-modal-qr {
        padding: 1rem;
    }
    
    .qr-modal-qr img {
        width: 220px !important;
        height: 220px !important;
    }
}

/* Footer - Modern Glass Design */
.home-container .app-footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    margin-top: auto;
    position: relative;
    z-index: 1;
    padding: 1.5rem 0;
}

.home-container .app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.home-container .app-footer p {
    opacity: 0.9;
}

.home-container .app-footer a {
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    font-weight: 500;
}

.home-container .app-footer a:hover {
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Warning Section - Modern Style */
.warning-section {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.warning-section > div {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.warning-section h4 {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700 !important;
}

.warning-section p,
.warning-section li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.warning-section i {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Toast Notifications - Modern Glass Design */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    max-width: 360px;
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.toast.success::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.toast.error::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.toast.warning::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Loading Overlay - Ultra Modern Glass */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 12, 41, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-overlay.show {
    display: flex;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-spinner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 2.5rem 3rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: spinnerBounce 0.5s ease-out;
}

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

.loading-spinner i {
    font-size: 3rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    animation: spinnerRotate 1s linear infinite;
}

@keyframes spinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    display: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

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

/* Responsive */
@media (max-width: 640px) {
    .main-content {
        padding: 1rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ========================================
   STYLES HOME PAGE (home-conference.html)
   ULTRA MODERN DESIGN 2025
   ======================================== */

/* Animated gradient background */
.home-container {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.home-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs animation */
.home-container::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

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

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-100px, 100px) scale(1.1); }
    50% { transform: translate(-50px, 200px) scale(0.9); }
    75% { transform: translate(50px, 100px) scale(1.05); }
}

/* Ultra modern glassmorphic header */
.home-container .app-header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.home-container .logo {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.home-container .logo h1 a {
    color: white;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-container .status-indicator {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.home-main {
    padding: 2rem 1rem 4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.home-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Hero Section - Ultra Modern */
.hero-section {
    text-align: center;
    padding: 4rem 1rem 3rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: titleGlow 3s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.hero-title i {
    -webkit-text-fill-color: white;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.5)); }
}

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

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Hero Badge - Modern Pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: badgeFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-badge i {
    font-size: 0.85rem;
    animation: badgeIconPulse 2s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes badgeIconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

/* Info Card Modern - Glass Design */
.info-card-modern {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 
        0 15px 40px -10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.info-icon-wrapper {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-content {
    flex: 1;
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.info-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.info-content p strong {
    color: white;
    font-weight: 600;
}

/* Info Features List */
.info-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.info-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-feature i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

.info-feature i.fa-check-circle {
    color: #34d399;
}

.info-feature i.fa-exclamation-circle {
    color: #fbbf24;
}

.info-feature i.fa-times-circle {
    color: #f87171;
}

/* Responsive for info card */
@media (max-width: 640px) {
    .info-card-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .info-features {
        align-items: center;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Stats Section - Modern Glass Cards */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
    padding: 0 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-card i {
    font-size: 2.25rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Rooms Section - Ultra Modern Glass Panel */
.rooms-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.rooms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h3 {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.01em;
}

.section-header h3 i {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* Modern Neon Button */
.section-header .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    box-shadow: 
        0 4px 15px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2);
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.section-header .btn-primary:hover::before {
    left: 100%;
}

.section-header .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.5),
        0 0 50px rgba(139, 92, 246, 0.3);
}

/* Rooms Grid - Modern Layout */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* Room Card - Ultra Modern 3D Glass Design */
.room-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    padding: 1.75rem;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 10px 40px -10px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Decorative gradient line at top */
.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* Shine effect */
.room-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

/* Désactiver complètement le hover pour les cartes non disponibles */
.room-card.preparing,
.room-card.closing,
.room-card.occupied {
    cursor: default !important;
    pointer-events: auto;
}

.room-card.preparing:hover {
    transform: none !important;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 25%, rgba(241, 245, 249, 0.9) 25%, rgba(241, 245, 249, 0.9) 50%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.9) 75%, rgba(241, 245, 249, 0.9) 75%, rgba(241, 245, 249, 0.9) 100%) !important;
    background-size: 20px 20px !important;
    opacity: 0.9 !important;
}

.room-card.closing:hover {
    transform: none !important;
    background: rgba(254, 226, 226, 0.5) !important;
    opacity: 0.8 !important;
}

.room-card.occupied:hover {
    transform: none !important;
    background: rgba(254, 243, 199, 0.5) !important;
    opacity: 0.85 !important;
}

/* Hover uniquement pour les room-cards qui ne sont PAS en préparation, fermeture ou occupées */
.room-card:not(.preparing):not(.closing):not(.occupied):hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(99, 102, 241, 0.25),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.room-card:not(.preparing):not(.closing):not(.occupied):hover::before {
    transform: scaleX(1);
}

.room-card:not(.preparing):not(.closing):not(.occupied):hover::after {
    transform: translateX(100%) rotate(45deg);
}

.room-card.active {
    /* Pas de bordure */
}

/* Style pour les cartes cliquables (rooms disponibles) */
.room-card-clickable {
    cursor: pointer;
}

.room-card-clickable:not(.preparing):not(.closing):not(.occupied):hover {
    transform: translateY(-12px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(238, 242, 255, 0.95) 100%);
}

.room-card-clickable:not(.preparing):not(.closing):not(.occupied):active {
    transform: translateY(-6px) scale(1.01);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

/* Modern Icon with gradient */
.room-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 
        0 8px 20px -4px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.room-card:hover .room-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 12px 30px -4px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.room-delete-btn {
    background: rgba(239, 68, 68, 0.08);
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.room-card:hover .room-delete-btn {
    opacity: 1;
}

.room-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.room-card-body {
    margin-bottom: 1.5rem;
}

.room-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.room-info-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.room-info-item i {
    color: #8b5cf6;
    font-size: 0.85rem;
}

.room-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.room-stats-row .room-info-item {
    flex: 1;
}

/* Aligner le deuxième élément (auditeurs) à droite */
.room-stats-row .room-info-item:last-child {
    justify-content: flex-end;
}

/* Modern Badge */
.room-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.75rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.room-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
}

.room-actions {
    display: flex;
    gap: 0.875rem;
    width: 100%;
}

/* Modern Action Buttons */
.room-speak-btn,
.room-listen-btn {
    flex: 1;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    font-weight: 700;
    padding: 0.875rem 1rem;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.room-speak-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.room-speak-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.room-speak-btn:hover::before {
    left: 100%;
}

.room-speak-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(139, 92, 246, 0.2);
}

.room-listen-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.room-listen-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.room-listen-btn:hover::before {
    left: 100%;
}

.room-listen-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(16, 185, 129, 0.4),
        0 0 30px rgba(5, 150, 105, 0.2);
}

.room-speak-btn span,
.room-listen-btn span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .room-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .room-speak-btn,
    .room-listen-btn {
        width: 100%;
    }
}

.room-join-btn {
    pointer-events: none;
}

/* Messages - Modern Glass Style */
.loading-message,
.empty-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.loading-message i,
.empty-message i,
.error-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.loading-message i {
    animation: spinGlow 1.5s linear infinite;
}

@keyframes spinGlow {
    0% { transform: rotate(0deg); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)); }
    100% { transform: rotate(360deg); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
}

.empty-subtitle {
    opacity: 0.8;
    margin-top: 0.75rem;
    font-weight: 400;
}

/* Modal - Ultra Modern Glass Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 24px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 
        0 50px 100px -20px rgba(0, 0, 0, 0.25),
        0 30px 60px -30px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

/* Decorative gradient at top of modal */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    border-radius: 24px 24px 0 0;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.75rem 1.75rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header h3 i {
    -webkit-text-fill-color: #6366f1;
    font-size: 1.5rem;
}

.modal-close {
    background: rgba(241, 245, 249, 0.8);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    padding: 1.25rem 1.75rem 1.75rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer .btn {
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modal-footer .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.modal-footer .btn-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-primary);
}

.modal-footer .btn-secondary:hover {
    background: rgba(100, 116, 139, 0.2);
}

/* Form Input - Modern Style */
.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
    background: white;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.1),
        0 4px 12px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Form Select - Modern Style */
.modal .form-select {
    padding: 0.9rem 2.5rem 0.9rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: rgba(248, 250, 252, 0.5);
}

.modal .form-select:focus {
    border-color: #8b5cf6;
    background-color: white;
    box-shadow: 
        0 0 0 4px rgba(139, 92, 246, 0.1),
        0 4px 12px rgba(99, 102, 241, 0.1);
}

.input-hint {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.control-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.control-group label i {
    color: #8b5cf6;
}

/* ========================================
   STYLES ROOM PAGE (room.html)
   ======================================== */

.room-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-badge-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
}

.room-name-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.room-name-display .room-badge-header {
    margin: 0;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--border-light);
    color: var(--text-primary);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--border);
    transform: translateX(-2px);
}

.btn-back.btn-delete-room {
    background: #dc3545;
    color: white;
    width: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.btn-back.btn-delete-room:hover {
    background: #c82333;
    transform: translateX(-2px);
}

.btn-back .btn-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   GROS BOUTON AUDIO TOGGLE - ULTRA MODERN
   (Page Listener)
   ======================================== */

.big-audio-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    padding: 2rem;
}

.big-audio-toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3.5rem 5rem;
    border: none;
    border-radius: 32px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

/* Shine effect */
.big-audio-toggle-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.big-audio-toggle-btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

/* Ripple effect container */
.big-audio-toggle-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 36px;
    background: inherit;
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.big-audio-toggle-btn:hover::after {
    opacity: 0.5;
}

/* Sound OFF State */
.big-audio-toggle-btn.sound-off {
    background: linear-gradient(145deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 
        0 20px 40px -10px rgba(100, 116, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.big-audio-toggle-btn.sound-off:hover {
    background: linear-gradient(145deg, #475569 0%, #334155 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(100, 116, 139, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Sound ON State */
.big-audio-toggle-btn.sound-on {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 
        0 20px 40px -10px rgba(16, 185, 129, 0.4),
        0 0 60px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: soundOnPulse 2s ease-in-out infinite;
}

.big-audio-toggle-btn.sound-on:hover {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(16, 185, 129, 0.5),
        0 0 80px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

@keyframes soundOnPulse {
    0%, 100% {
        box-shadow: 
            0 20px 40px -10px rgba(16, 185, 129, 0.4),
            0 0 60px rgba(16, 185, 129, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 20px 40px -10px rgba(16, 185, 129, 0.5),
            0 0 80px rgba(16, 185, 129, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.big-audio-toggle-btn i {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.big-audio-toggle-btn:hover i {
    transform: scale(1.1);
}

.big-audio-toggle-btn.sound-on i {
    animation: iconBounce 1s ease-in-out infinite;
}

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

.big-audio-toggle-label {
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .big-audio-toggle-container {
        margin: 2rem 0;
        padding: 1rem;
    }
    
    .big-audio-toggle-btn {
        padding: 2.5rem 3rem;
        min-width: 280px;
        min-height: 200px;
        border-radius: 28px;
    }
    
    .big-audio-toggle-btn i {
        font-size: 4rem;
    }
    
    .big-audio-toggle-label {
        font-size: 1.15rem;
    }
}

/* ========================================
   LISTENER PAGE - TRANSLATION CENTERED
   ======================================== */
.listener-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    max-width: 1000px;
}

.listener-translation-section {
    width: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

/* Gradient accent at top */
.listener-translation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

.listener-translation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(52, 211, 153, 0.04) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.listener-translation-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    margin: 0;
}

.listener-translation-header h3 i {
    color: #10b981;
    font-size: 1.35rem;
}

.listener-controls {
    display: flex;
    gap: 0.6rem;
}

.listener-translation-text {
    min-height: 300px;
    padding: 2.5rem;
    font-size: 1.75rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 60vh;
}

.listener-translation-text:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
}

/* Responsive for listener page */
@media (max-width: 768px) {
    .listener-main {
        padding: 1rem 0.75rem;
    }
    
    .listener-translation-section {
        border-radius: 24px;
    }
    
    .listener-translation-header {
        padding: 1.25rem 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .listener-translation-header h3 {
        font-size: 1.1rem;
    }
    
    .listener-translation-text {
        min-height: 250px;
        padding: 1.5rem;
        font-size: 1.35rem;
        line-height: 1.7;
    }
    
    .listener-translation-text:empty::before {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .listener-translation-text {
        font-size: 1.15rem;
        padding: 1.25rem;
        min-height: 200px;
    }
    
    .listener-translation-header {
        padding: 1rem;
    }
}

/* ========================================
   RESPONSIVE - ULTRA MODERN MOBILE
   ======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .home-main {
        padding: 1rem 0.75rem 3rem;
    }
    
    .hero-section {
        padding: 2.5rem 1rem 2rem;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .rooms-section {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .room-card {
        padding: 1.5rem;
        border-radius: 18px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .section-header h3 {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    .section-header .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .room-info-header {
        order: -1;
        margin-bottom: 0.5rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .home-container .logo {
        font-size: 1.25rem;
    }
    
    .home-container .logo i {
        font-size: 1.5rem;
    }
    
    .home-container .status-indicator {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        border-radius: 10px;
    }
    
    /* Animated background - simplified for mobile */
    .home-container::before {
        opacity: 0.7;
    }
    
    .home-container::after {
        width: 400px;
        height: 400px;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .modal-footer {
        padding: 1rem 1.25rem 1.25rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Room actions responsive */
    .room-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .room-speak-btn,
    .room-listen-btn {
        width: 100%;
        padding: 1rem;
    }
}

/* Status Badges - Modern Glass Pills */
.status-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.status-badge.preparing {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    animation: badgePulse 2s ease-in-out infinite;
}

.status-badge.ready {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.status-badge.closing {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

/* Room Card States - Modern Styles */
.room-card.preparing {
    opacity: 0.95;
    border: none;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9) 25%, rgba(254, 243, 199, 0.5) 25%, rgba(254, 243, 199, 0.5) 50%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.9) 75%, rgba(254, 243, 199, 0.5) 75%, rgba(254, 243, 199, 0.5) 100%);
    background-size: 20px 20px;
    animation: stripesMove 1s linear infinite;
}

@keyframes stripesMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.room-card.closing {
    opacity: 0.85;
    border: none;
    background: linear-gradient(145deg, rgba(254, 226, 226, 0.8) 0%, rgba(254, 202, 202, 0.6) 100%);
    pointer-events: none;
}

.room-card.closing .room-delete-btn {
    display: none;
}

.room-card.occupied {
    opacity: 0.9;
    border: none;
    background: linear-gradient(145deg, rgba(254, 243, 199, 0.7) 0%, rgba(253, 230, 138, 0.5) 100%);
}

.room-card.occupied .room-join-btn {
    pointer-events: none;
    cursor: not-allowed !important;
}

/* Preparation & Closing Messages - Modern Style */
.preparation-message {
    text-align: center;
    color: #92400e;
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(180, 83, 9, 0.3);
}

/* ========== Startup Progress Bar ========== */
.startup-progress-container {
    width: 100%;
    margin-bottom: 0.75rem;
}

.startup-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.startup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    transition: width 0.5s ease-out;
    animation: progressShimmer 2s linear infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

@keyframes progressShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.startup-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.startup-progress-percent {
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}

.startup-progress-elapsed {
    color: #92400e;
    font-weight: 600;
}

.startup-message {
    font-size: 0.85rem;
    color: #78350f;
    margin-top: 0.25rem;
    font-weight: 600;
}

@keyframes preparePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.2); }
    50% { opacity: 0.9; box-shadow: 0 0 20px 5px rgba(245, 158, 11, 0.1); }
}

.closing-message {
    text-align: center;
    color: #dc2626;
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Room Header Right */
.room-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Inactivity Timer - Modern Style */
.status-badge.inactivity-timer {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.4);
    animation: timerPulse 1s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.status-badge.inactivity-timer .timer-text {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

@keyframes timerPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    }
    50% { 
        opacity: 0.85;
        transform: scale(1.03);
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.35);
    }
}

.room-card.inactive {
    border: none;
}

/* Inactivity Warning - Modern Glass Style */
.inactivity-warning {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(248, 113, 113, 0.08) 100%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    color: #dc2626;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    height: 54px; /* Hauteur fixe pour éviter les sauts */
    overflow: hidden;
}

.inactivity-warning span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.inactivity-warning i {
    font-size: 1.1rem;
    animation: warningShake 0.5s ease-in-out infinite;
}

@keyframes warningShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* ========================================
   STYLES POUR LA PAGE translator
   ======================================== */

.translator-body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    min-height: 100vh;
    position: relative;
}

.translator-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.translator-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.translator-main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Layout en deux colonnes */
.translator-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Panneaux gauche/droite - Style moderne glassmorphism */
.translator-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.translator-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.translator-panel:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.translator-panel:hover::before {
    opacity: 1;
}

/* Panneau gauche - accent bleu */
.translator-panel[data-side="left"]::before {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

/* Panneau droit - accent violet */
.translator-panel[data-side="right"]::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
}

.translator-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
}

.translator-panel-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-title i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-radius: 12px;
    color: #6366f1;
    font-size: 1.25rem;
}

.language-select,
.voice-select {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.language-select label,
.voice-select label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-select label i,
.voice-select label i {
    color: #6366f1;
}

.language-select .form-select,
.voice-select .form-select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    /* Custom arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 14px;
}

.language-select .form-select:hover,
.voice-select .form-select:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background-color: rgba(255, 255, 255, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.language-select .form-select:focus,
.voice-select .form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.translator-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Bouton d'enregistrement - Style moderne */
.record-btn {
    position: relative;
    width: 100%;
    min-height: 90px;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.35),
        0 4px 8px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.record-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.record-btn:hover:not(:disabled)::before {
    left: 100%;
}

.record-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 12px 32px rgba(99, 102, 241, 0.4),
        0 6px 12px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.record-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(0.99);
}

.record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.record-btn.recording {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    color: white !important;
    animation: pulse-recording-modern 1.5s ease-in-out infinite;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.4),
        0 4px 8px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.record-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.record-btn.recording .record-indicator {
    background: white;
    animation: pulse-dot-modern 1s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.record-label {
    user-select: none;
    letter-spacing: 0.3px;
}

@keyframes pulse-recording-modern {
    0%, 100% {
        box-shadow: 
            0 8px 24px rgba(16, 185, 129, 0.4),
            0 4px 8px rgba(16, 185, 129, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 32px rgba(16, 185, 129, 0.5),
            0 6px 12px rgba(16, 185, 129, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes pulse-dot-modern {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.9;
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15);
    }
}

/* Conserver les anciennes animations pour compatibilité */
@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(134, 239, 172, 0.4), 0 2px 4px -1px rgba(134, 239, 172, 0.3);
    }
    50% {
        box-shadow: 0 10px 15px -3px rgba(134, 239, 172, 0.5), 0 4px 6px -2px rgba(134, 239, 172, 0.4);
    }
}

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

/* Texte d'aide - Style moderne */
.audio-helper-text {
    text-align: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.audio-helper-text p {
    margin: 0;
}

/* Zone de transcription - Style moderne */
.transcription-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
}

.transcription-box label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transcription-box label i {
    color: #6366f1;
}

.transcription-textarea {
    flex: 1;
    width: 100%;
    min-height: 200px;
    padding: 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.7);
    resize: vertical;
    transition: all 0.3s ease;
}

.transcription-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.transcription-textarea:read-only {
    background: rgba(248, 250, 252, 0.8);
    cursor: default;
}

/* Audio controls - Style moderne */
.audio-controls .btn-secondary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.audio-controls .btn-secondary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Section info - Style moderne */
.translator-info {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.translator-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 3px;
}

.translator-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.translator-info p:first-child {
    margin-top: 0;
}

.translator-info p:last-child {
    margin-bottom: 0;
}

.translator-info code {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85em;
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.translator-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Header actions - Style moderne pour translator */
.translator-body .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.translator-body .header-actions .btn-secondary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.translator-body .header-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.translator-body .header-actions .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.translator-body .header-actions .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

/* Section de suppression mobile - cachée par défaut */
.mobile-delete-section {
    display: none;
}

/* Section de langues mobile - cachée par défaut */
.mobile-language-section {
    display: none;
}

/* Indicateurs utilisateurs - cachés par défaut */
.user-indicator {
    display: none;
}

/* Indicateur central mobile - caché par défaut */
.mobile-user-indicator-central {
    display: none;
}

/* Classe pour forcer le mode mobile même sur desktop */
.translator-body.force-mobile-view {
    /* Appliquer les styles mobile même sur desktop */
}

.translator-body.force-mobile-view .app-header {
    position: relative;
    top: auto;
}

.translator-body.force-mobile-view .status-indicator,
.translator-body.force-mobile-view .header-actions {
    display: none;
}

.translator-body.force-mobile-view .mobile-delete-section {
    display: block;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.translator-body.force-mobile-view .mobile-delete-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.translator-body.force-mobile-view .mobile-delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.translator-body.force-mobile-view .mobile-language-section {
    display: block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem;
    margin: 0 0.5rem 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    max-width: calc(100vw - 1rem);
    box-sizing: border-box;
}

.translator-body.force-mobile-view .mobile-language-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.translator-body.force-mobile-view .mobile-language-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
}

.translator-body.force-mobile-view .mobile-language-item label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #6366f1;
    text-align: center;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.translator-body.force-mobile-view .mobile-language-select {
    font-size: 0.7rem;
    padding: 0.4rem 1.5rem 0.4rem 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    /* Custom arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
    background-size: 10px;
}

.translator-body.force-mobile-view .mobile-language-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.translator-body.force-mobile-view .translator-panel-header {
    display: none;
}

.translator-body.force-mobile-view .translator-panel {
    padding: 0.25rem;
    box-shadow: none;
    border: none;
    background: transparent;
}

.translator-body.force-mobile-view .translator-panel::before {
    display: none;
}

.translator-body.force-mobile-view .translator-columns {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
}

.translator-body.force-mobile-view .translator-panel[data-side="left"] .translator-panel-body {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.25rem;
}

.translator-body.force-mobile-view .translator-panel[data-side="left"] .record-btn,
.translator-body.force-mobile-view .translator-panel[data-side="left"] .transcription-box,
.translator-body.force-mobile-view .translator-panel[data-side="left"] .user-indicator {
    transform: none;
}

.translator-body.force-mobile-view .translator-panel[data-side="right"] .translator-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.translator-body.force-mobile-view .translator-panel[data-side="right"] .record-btn,
.translator-body.force-mobile-view .translator-panel[data-side="right"] .transcription-box,
.translator-body.force-mobile-view .translator-panel[data-side="right"] .user-indicator {
    transform: rotate(180deg);
}

/* Cacher les indicateurs individuels en mode mobile forcé */
.translator-body.force-mobile-view .user-indicator {
    display: none !important;
}

/* Afficher l'indicateur central en mode mobile forcé */
.translator-body.force-mobile-view .mobile-user-indicator-central {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.translator-body.force-mobile-view .mobile-user-indicator-central .user-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.translator-body.force-mobile-view .mobile-user-indicator-central .user-2-half {
    background: #3b82f6;
}

.translator-body.force-mobile-view .mobile-user-indicator-central .user-2-half .user-label {
    transform: rotate(180deg);
}

.translator-body.force-mobile-view .mobile-user-indicator-central .user-1-half {
    background: #8b5cf6;
}

/* Couleur du bouton User 2 (panneau droit, en haut) - Bleu */
.translator-body.force-mobile-view .translator-panel[data-side="right"] .record-btn {
    background: #3b82f6;
}

.translator-body.force-mobile-view .translator-panel[data-side="right"] .record-btn:hover {
    background: #2563eb;
}

/* Couleur du bouton User 1 (panneau gauche, en bas) - Violet */
.translator-body.force-mobile-view .translator-panel[data-side="left"] .record-btn {
    background: #8b5cf6;
}

.translator-body.force-mobile-view .translator-panel[data-side="left"] .record-btn:hover {
    background: #7c3aed;
}

/* État recording (vert) - toujours vert pour les deux boutons */
.translator-body.force-mobile-view .translator-panel[data-side="right"] .record-btn.recording,
.translator-body.force-mobile-view .translator-panel[data-side="left"] .record-btn.recording {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    color: white !important;
}

.translator-body.force-mobile-view .audio-helper-text {
    display: none;
}

.translator-body.force-mobile-view .record-btn {
    min-height: 60px;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--primary-color);
}

.translator-body.force-mobile-view .record-btn.recording {
    background: linear-gradient(135deg, #86efac 0%, #6ee7b7 100%) !important;
    color: #065f46 !important;
}

.translator-body.force-mobile-view .record-indicator {
    display: none;
}

.translator-body.force-mobile-view .record-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.translator-body.force-mobile-view .transcription-box label {
    display: none;
}

.translator-body.force-mobile-view .transcription-box {
    min-height: 35vh;
    flex: 1;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.translator-body.force-mobile-view .transcription-textarea {
    min-height: 35vh;
    height: 100%;
    font-size: 2.5rem;
    padding: 1rem;
    line-height: 1.6;
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: all 0.3s ease;
}

.translator-body.force-mobile-view .transcription-textarea:active {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.translator-body.force-mobile-view .audio-controls {
    display: none !important;
}

.translator-body.force-mobile-view .translator-info {
    display: none;
}

.translator-body.force-mobile-view .translator-main {
    padding: 0.5rem;
}

.translator-body.force-mobile-view .translator-columns {
    gap: 0;
}

.translator-body.force-mobile-view .header-content {
    padding: 0 0.75rem;
}

.translator-body.force-mobile-view .logo h1 {
    font-size: 1rem;
}

.translator-body.force-mobile-view .logo i {
    font-size: 1.25rem;
}

.translator-body.force-mobile-view .room-badge-header {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
}

.translator-body.force-mobile-view .mobile-switch-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.translator-body.force-mobile-view .mobile-switch-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Cacher le bouton "Version mobile" quand on est en mode mobile forcé */
.translator-body.force-mobile-view #switchToMobileBtn {
    display: none;
}

/* Afficher le bouton "Revenir à la version ordinateur" uniquement en mode mobile forcé */
.mobile-switch-btn {
    display: none;
}

.translator-body.force-mobile-view .mobile-switch-btn {
    display: flex;
}

/* Cacher le bouton "Version mobile" sur les vrais mobiles (media query) */
@media (max-width: 640px) {
    #switchToMobileBtn {
        display: none;
    }
}

/* Responsive pour translator */
@media (max-width: 968px) {
    .translator-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .translator-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .language-select,
    .voice-select {
        width: 100%;
    }
    
    .translator-main {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    /* Header ne reste pas fixé sur mobile */
    .translator-body .app-header {
        position: relative;
        top: auto;
    }
    
    /* Cacher les éléments inutiles sur mobile */
    .translator-body .status-indicator,
    .translator-body .header-actions {
        display: none;
    }
    
    /* Afficher la section de suppression mobile */
    .mobile-delete-section {
        display: block;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .mobile-delete-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1rem;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 16px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        border: none;
        color: white;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
    
    /* Afficher la section de langues mobile */
    .mobile-language-section {
        display: block;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.75rem;
        margin: 0 0.5rem 1rem;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.1);
        max-width: calc(100vw - 1rem);
        box-sizing: border-box;
    }
    
    .mobile-language-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .mobile-language-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        min-width: 0;
        overflow: hidden;
    }
    
    .mobile-language-item label {
        font-size: 0.6rem;
        font-weight: 700;
        color: #6366f1;
        text-align: center;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .mobile-language-select {
        font-size: 0.7rem;
        padding: 0.4rem 1.5rem 0.4rem 0.5rem;
        border: 1px solid rgba(99, 102, 241, 0.15);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        /* Custom arrow */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.35rem center;
        background-size: 10px;
    }
    
    /* Cacher les headers des panneaux (avec les langues) sur mobile */
    .translator-panel-header {
        display: none;
    }
    
    .translator-panel {
        padding: 0.25rem;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    .translator-panel::before {
        display: none;
    }
    
    /* Inverser l'ordre : panneau droit (2) en premier */
    .translator-columns {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
    }
    
    /* Layout pour panneau gauche (1) : ordre normal, PAS de rotation */
    .translator-panel[data-side="left"] .translator-panel-body {
        display: flex;
        flex-direction: column-reverse;
        gap: 0.25rem;
    }
    
    /* Pas de rotation pour le panneau gauche (1) */
    .translator-panel[data-side="left"] .record-btn,
    .translator-panel[data-side="left"] .transcription-box,
    .translator-panel[data-side="left"] .user-indicator {
        transform: none;
    }
    
    /* Layout pour panneau droit (2) : ordre normal */
    .translator-panel[data-side="right"] .translator-panel-body {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* Rotation à 180° pour le bouton 2, le texte 2 et l'indication 2 */
    .translator-panel[data-side="right"] .record-btn,
    .translator-panel[data-side="right"] .transcription-box,
    .translator-panel[data-side="right"] .user-indicator {
        transform: rotate(180deg);
    }
    
    /* Cacher les indicateurs utilisateurs individuels sur mobile */
    .user-indicator {
        display: none !important;
    }
    
    /* Afficher l'indicateur central sur mobile */
    .mobile-user-indicator-central {
        display: flex;
        align-items: stretch;
        justify-content: center;
        margin: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    }
    
    .mobile-user-indicator-central .user-half {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.75rem;
        font-weight: 700;
        font-size: 0.75rem;
        color: white;
    }
    
    .mobile-user-indicator-central .user-2-half {
        background: #3b82f6;
    }
    
    .mobile-user-indicator-central .user-2-half .user-label {
        transform: rotate(180deg);
    }
    
    .mobile-user-indicator-central .user-1-half {
        background: #8b5cf6;
    }
    
    /* Couleur du bouton User 2 (panneau droit, en haut) - Bleu */
    .translator-panel[data-side="right"] .record-btn {
        background: #3b82f6 !important;
    }
    
    .translator-panel[data-side="right"] .record-btn:hover {
        background: #2563eb !important;
    }
    
    /* Couleur du bouton User 1 (panneau gauche, en bas) - Violet */
    .translator-panel[data-side="left"] .record-btn {
        background: #8b5cf6 !important;
    }
    
    .translator-panel[data-side="left"] .record-btn:hover {
        background: #7c3aed !important;
    }
    
    /* État recording (vert) - toujours vert pour les deux boutons */
    .translator-panel[data-side="right"] .record-btn.recording,
    .translator-panel[data-side="left"] .record-btn.recording {
        background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
        color: white !important;
    }
    
    /* Cacher les textes d'aide */
    .audio-helper-text {
        display: none;
    }
    
    /* Simplifier les boutons : texte uniquement */
    .record-btn {
        min-height: 60px;
        padding: 1rem;
        font-size: 1.125rem;
        font-weight: 700;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        border-radius: 16px;
        box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
    }
    
    .record-btn.recording {
        background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
        color: white !important;
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    }
    
    .record-indicator {
        display: none;
    }
    
    .record-label {
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Cacher les labels des textarea */
    .transcription-box label {
        display: none;
    }
    
    .transcription-box {
        min-height: 30vh;
        flex: 1;
        gap: 0;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.1);
    }
    
    .transcription-textarea {
        min-height: 30vh;
        height: 100%;
        font-size: 1.1rem;
        border: 2px solid rgba(99, 102, 241, 0.15);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
        cursor: pointer;
    }
    
    .transcription-textarea:active {
        background: rgba(99, 102, 241, 0.05);
        border-color: rgba(99, 102, 241, 0.3);
    }
    
    /* Cacher les boutons "Lire" */
    .audio-controls {
        display: none !important;
    }
    
    /* Cacher la section info */
    .translator-info {
        display: none;
    }
    
    /* Ajuster l'espacement */
    .translator-main {
        padding: 0.25rem;
    }
    
    .translator-columns {
        gap: 0;
    }
    
    /* Simplifier le header */
    .header-content {
        padding: 0 0.75rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .logo i {
        font-size: 1.25rem;
    }
    
    .room-badge-header {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Agrandir l'icône de loading sur mobile */
    .loading-spinner i {
        font-size: 3rem;
        margin: 0;
    }
}

/* Très petits écrans (moins de 380px) */
@media (max-width: 380px) {
    .mobile-language-section {
        padding: 0.5rem;
        margin: 0 0.25rem 0.75rem;
    }
    
    .mobile-language-row {
        gap: 0.35rem;
    }
    
    .mobile-language-item label {
        font-size: 0.55rem;
        letter-spacing: 0.2px;
    }
    
    .mobile-language-select {
        font-size: 0.65rem;
        padding: 0.35rem 1.25rem 0.35rem 0.4rem;
        border-radius: 8px;
        background-position: right 0.25rem center;
        background-size: 8px;
    }
    
    .translator-body.force-mobile-view .mobile-language-section {
        padding: 0.5rem;
        margin: 0 0.25rem 0.75rem;
    }
    
    .translator-body.force-mobile-view .mobile-language-row {
        gap: 0.35rem;
    }
    
    .translator-body.force-mobile-view .mobile-language-item label {
        font-size: 0.55rem;
    }
    
    .translator-body.force-mobile-view .mobile-language-select {
        font-size: 0.65rem;
        padding: 0.35rem 1.25rem 0.35rem 0.4rem;
        border-radius: 8px;
        background-position: right 0.25rem center;
        background-size: 8px;
    }
}

/* Mode Selection Section - Ultra Modern Design */
.mode-selection-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    position: relative;
    z-index: 1;
}

.mode-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

/* Mode Card - Ultra Modern 3D Glass Design */
.mode-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Animated gradient line at top */
.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #ec4899, #6366f1);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

/* Shine effect */
.mode-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.mode-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 
        0 40px 80px -20px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.3);
}

.mode-card:hover::before {
    transform: scaleX(1);
    animation: gradientMove 2s linear infinite;
}

.mode-card:hover::after {
    transform: translateX(100%) rotate(45deg);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Mode Card Icon - Modern Gradient */
.mode-card-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2.75rem;
    box-shadow: 
        0 15px 35px -5px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mode-card-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 31px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.mode-card:hover .mode-card-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 20px 50px -5px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mode-card:hover .mode-card-icon::before {
    opacity: 1;
}

.mode-card-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.mode-card-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 400px;
    font-weight: 400;
}

.mode-card-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2.25rem;
    width: 100%;
    align-items: flex-start;
    padding: 0 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.feature-item i {
    color: #10b981;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
}

/* Mode Card Button - Ultra Modern */
.mode-card-btn {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-card:hover .mode-card-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    transform: scale(1.03);
    box-shadow: 
        0 12px 35px rgba(99, 102, 241, 0.45),
        0 0 30px rgba(139, 92, 246, 0.2);
}

/* Responsive pour mode selection */
@media (max-width: 768px) {
    .mode-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mode-card {
        padding: 2.25rem 1.75rem;
        border-radius: 24px;
    }
    
    .mode-card-icon {
        width: 85px;
        height: 85px;
        font-size: 2.25rem;
        border-radius: 22px;
    }
    
    .mode-card-title {
        font-size: 1.6rem;
    }
    
    .mode-card-description {
        font-size: 0.95rem;
    }
    
    .mode-card-btn {
        padding: 1rem 1.5rem;
    }
}