/* Conference Addon - Design intégré sans overlay - Position bas-droite */
.conf-container {
    position: fixed;
    bottom: 20px;  /* Position en bas */
    right: 20px;   /* Position à droite */
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff;
    pointer-events: none;
    /* Caché par défaut */
    display: none;
}

/* Visible quand activé */
.conf-container.active {
    display: block;
}

.conf-container * {
    pointer-events: auto;
}

/* Boutons principaux */
.conf-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.conf-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.conf-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.conf-btn-sec {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conf-btn-sec:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Contrôles */
.conf-controls {
    display: none;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.conf-controls.active {
    display: flex;
}

.conf-ctrl {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 18px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.conf-ctrl:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.conf-ctrl.active {
    background: rgba(74, 222, 128, 0.3);
    border-color: rgba(74, 222, 128, 0.5);
    color: rgb(74, 222, 128);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.conf-ctrl.danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: rgb(239, 68, 68);
}

/* Vidéos */
.conf-videos {
    display: none;
    gap: 8px;
    max-width: 320px;
    margin-bottom: 8px;
}

.conf-videos.active {
    display: flex;
    flex-wrap: wrap;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.video-wrapper video {
    width: 150px;
    height: 110px;
    object-fit: cover;
    display: block;
}

.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px 8px 6px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Placeholder audio pour iOS */
.audio-placeholder {
    width: 150px;
    height: 110px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.audio-icon {
    font-size: 24px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.audio-name {
    font-size: 12px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.audio-status {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* Statut */
.conf-status {
    display: none;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conf-status.active {
    display: block;
}

/* Modal de configuration */
.conf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.conf-modal.active {
    display: flex;
}

.conf-modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.conf-modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.conf-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.conf-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.conf-input:focus {
    outline: none;
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.conf-input:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Notifications */
.conf-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    animation: slideUp 0.3s ease;
    max-width: 280px;
}

@keyframes slideUp {
    from { 
        transform: translate(-50%, 100px); 
        opacity: 0; 
    }
    to { 
        transform: translate(-50%, 0); 
        opacity: 1; 
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .conf-container {
        bottom: 10px;  /* Position en bas pour mobile aussi */
        right: 10px;   /* Position à droite pour mobile aussi */
        left: auto;    /* Annuler le left si présent */
    }
    
    .conf-videos.active {
        max-width: 100%;
    }
    
    .video-wrapper video {
        width: 120px;
        height: 90px;
    }
    
    .audio-placeholder {
        width: 120px;
        height: 90px;
    }
    
    .conf-modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* Animation d'apparition depuis le bas */
.conf-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);  /* Vient du bas */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États actifs avec animation pulse */
.conf-ctrl.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(74, 222, 128, 0.3), rgba(34, 197, 94, 0.3));
    border-radius: 20px;
    z-index: -1;
    animation: pulse 2s infinite;
}

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

/* SUPPRESSION TOTALE de l'overlay */
.video-overlay,
#video-overlay {
    display: none !important;
}